The previous file could not be placed.You have successfully placed all the files The previous file could not be placed.You have successfully placed all the files
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

The previous file could not be placed.You have successfully placed all the files

Started by DarX, September 25, 2004, 09:56:46 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

DarX

Hi all,

First I'd like to thanks the Coppermine team because their gallery system is really nice! Unfortunately, it's not working on my website. :(
here are the errors I've got after uploading pics  (***** stands for my username)

this is at the top of the page :

Warning: getimagesize(): Unable to access albums/userpics/10001/thumb_DSCN4280.JPG in /var/www/free.fr/a/0/*****/photos2/include/picmgmt.inc.php on line 226

Warning: getimagesize(albums/userpics/10001/thumb_DSCN4280.JPG): failed to open stream: No such file or directory in /var/www/free.fr/a/0/*****/photos2/include/picmgmt.inc.php on line 226

and this is in the information box in the middle of the page:

"The previous file could not be placed.
You have successfully placed all the files"  :s :s :s

My pics are 1600*1200 and I haven't changed the default uploading options..  Can anyone help me ?
By the way, is there a possibility to upload the files with a ftp client like FileZilla (quicker)

DarX

ps: if I am not posting in the good forum, I am sorry in advance  ;)

Nibbler

1) Shrink the pics first, 1600*1200 is probably too large for your server to handle.

2) Batch upload exists for this very reason.

DarX

but the problem is, it doesn't depend of the size of the pic :

why try to upload a 300x500 (jpeg) here are the errors


Warning: getimagesize(): Unable to access ./albums/edit/preview_d26c95f4.jpg in /var/www/free.fr/a/0/*****/photos2/include/picmgmt.inc.php on line 226

Warning: getimagesize(./albums/edit/preview_d26c95f4.jpg): failed to open stream: No such file or directory in /var/www/free.fr/a/0/*****/photos2/include/picmgmt.inc.php on line 226

and then after hitting continue

Warning: getimagesize(): Unable to access albums/userpics/10001/thumb_aaa.jpg in /var/www/free.fr/a/0/*****/photos2/include/picmgmt.inc.php on line 226

Warning: getimagesize(albums/userpics/10001/thumb_aaa.jpg): failed to open stream: No such file or directory in /var/www/free.fr/a/0/*****/photos2/include/picmgmt.inc.php on line 226

The previous file could not be placed.
You have successfully placed all the files.

i don't understand where these errors are coming from ...
any idea ?

thanks in advance

DarX

Joachim Müller

afaik free.fr is a free webhost - although people have been reporting in the past that they managed to set up coppermine on free.fr, I could imagine that they changed their policy and disabled getimagesize for some obscure reason. Please post a link and test user account (non-admin) with upload privileges, so we can test for ourselves.

Joachim

Joachim Müller

I didn't ask to be sent a PM, I was asking you to post a link and test account - you're meant to reply to this thread.

Joachim

DarX

sorry about that...

here is the website http://inzesun.free.fr/coppermine/

user  test_copper
pass   testing

thanks for your help

Joachim Müller

make sure that the albums dir and everything within it (including the edit folder) is CHMODed correctly (as suggested in the docs) - usually you need to CHMOD 777 or 755. Don't trust any status pages, re-CHMOD in any case.

Joachim

DarX

Well finally I couldn't manage to use chmod on my server because it seems that Free has desactivated the chmod command :-(
anyway I moved it to another server but I still can't upload large pics (more than 400*500). I have already changed the sizes in the config panel like this:
Max width or height of an intermediate picture/video **       2048
Max size for uploaded files (KB)                                         4096
Max width or height for uploaded pictures/videos (pixels)      4096

and the result is always: 0 files uploaded.
any idea ?  I don't know what to do... 400*500 is really small I think

DarX

Joachim Müller

both size and dimensions of the files you can/can't upload are not dependant on coppermine settings, but only on your server configuration. As you can't change those settings when you're webhosted, you have to run with what you have. Setting the max width , height and filesize attributes in coppermine can only be within the limitations that are set in server config for you, setting them on a higher value than the one that is technically possible is just whishfull thinking. As a rule of thumb: if you pay more for webhosting, you are usually hosted on more performant servers with less virtual hosts on the same machine, resulting in less restrictive server settings. Another option (if you really need big pics) is to have a dedicated server, but that will cost you a bit. I can't recommend self-hosting though, as you really need to have in-depth understanding of server configuration if you want to do so.
For details, read the stickies (the threads with pic icons) on this sub-board.

Joachim

DarX

well
here are the news
I finally managed to create my coppermine gallery but using the 1.3.1 version. I can upload big images without any problems now. So basically it wasn't a server problem... or perhaps both combined (server&new version of coppermine)
Thanks for your help, I really appreciated
DarX

Joachim Müller

Please post what you actually did to resolve your issue to let others benefit from your insight.

Joachim

DarX

ok
i did nothing but changing my version of coppermine back to 1.3.1
I find it strange that a previous version works better than the new one   ???

DarX

Joachim Müller

same with me - hard to believe. I guess your cpg1.3.2 files somehow have been corrupted.

Joachim

bchecketts

I am having this same problem on my new installation of CPG 1.3.2.  Here is what I am doing, and noticing.


Click on the "upload file" button at the top.  Under File Uploads -> 1, I browse to an image on my PC, then hit the "Continue" button

I then get a page that says "1 uploads were successful... Please click continue to add the file to albums".   Also, I notice that in the albums/edit/ directory, there is a file names mHTTP_temp_xxxxxxxx.JPG

I hit continue, this screen has an image that doesn't appear.  The image that it is looking for is supposed to be named "albums/edit/preview_xxxxxxx.jpg", but that file is not in place, I still have the mHTTP_temp_xxxxxxxx.JPG file in albums/edit.


I fill out the title, description, etc for my picture, and hit "continue" to get the message that started this thread (The previous file could not be placed.  You have successfully placed all the files).


It looks like something is going wrong between uploading the file (with the mHTTP_temp_xxxxxxx.JPG name), and creating the "preview_xxxxxxxx.jpg" file out of it.  Does anybody know what is happening at this point?

bchecketts

Ah, I just noticed that this is happening only to JPG files.  I uploaded a couple of GIFs with no problem.  Any ideas?

Thanks,
Brandon

Joachim Müller

if your GD library compiled with jpeg support? In coppermine, go to "admin tools", choose "display phpinfo" and search the page that fires up for the "GD module" section (that look similarly to the one from http://coppermine.sourceforge.net/faq.php#VersionGD ). You will need a line in this section that says "JPG Support   enabled". Post the whole GD section in your reply here.

Joachim

bchecketts

Looks like JPG support is enabled in there.  Here is the GD section from phpinfo()

GD Support  enabled  
GD Version  bundled (2.0.12 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  


I don't think I am using the GD Library though.  I compiled Image Magick and have it set to use that in the config section.   I changed it to GD version 2.x, and now it seems to be working fine.    Does this setup seem okay?  Is there any advantage to Image Magick over GD2.x?  

Joachim Müller

link and test user account (non-admin) with upload privileges please.

Joachim

Matt22

I HAVE EXACLTY THE SAME PROBLEM as bchecketts !!

When I upload images it has that "The previous file could not be placed.You have successfully placed all the files"
Error message.

Although in my FTP webserver all the files are just SITTING there in the album folder.

I have made no restrictions on file widths/heights or sizes in config.

What could be wrong?

Joachim Müller

If you have exactly the same problem, then you surely have read my reply, so you should have known what piece of information I need to help bchecketts or you  - did you expect any other reply?

I'm saying this for the last time (you have been told so before on other threads): writing in capital letters means shouting at people on the internet. I don't like to be shouted at - nobody does. I can read just fine (nothing wrong with my eyes), there's no need to emphasize parts of your posting with capital letters, bold text or asterisks.

Joachim