Can't upload pictures Can't upload pictures
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Can't upload pictures

Started by typomaniac, October 08, 2025, 08:05:07 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

typomaniac

Hi,
I'm running version 1.6.18 (stable) with MySQL Version: 5.7.44 & PHP Version: 7.4.10.
I had to go to 2 different browsers to get new folders but every time I try to upload pictures, everything is coming back with a 500 error after every file.
Is there something I need to do to fix this?
Thanx and you do have the best gallery (I've been using since 2011).

typomaniac

What I'm seeing when I try to upload  files. (I did not include actual image names)
Files queued: 0
image1.jpg
500
image2.jpg
500
image3.jpg
500

phill104

A 500 error could be many things. It is your server reporting that it has received a command that it cannot understand or process. For security reasons, most servers are setup to display a 500 error rather than the details of the actual error. Most hosts allow you to configure this, or will have logs available that detail the error. You may need to reach out to your hosting support to find out the actual error.
It is a mistake to think you can solve any major problems just with potatoes.

ron4mac

You should first update your gallery. When logging in as admin, you should see (at least once a day) a message stating that there are updates available. If you follow the provided link, you will be able to update your gallery with a couple clicks. If that is not working for you, you can use the installer-stub.

ron4mac

#4
Looking at your gallery, I see that you are using the water_drop theme that has been substantially modified. The gallery update methods mentioned above will overwrite your modified theme ... so you would have to do something to keep that from happening. You could rename or copy the theme folder and then after the gallery update, restore it. It is not a good idea to modify ANY files that are part of the CPG distribution. Custom themes should be in their own custom folder.

typomaniac

Hi, I just ran the installer-stub and things appeared to go smooth.

If I go to config to check the version it is showing  Coppermine Photo Gallery 1.6.27 (stable) however, when I try to upload images I'm now seeing the following after each image:

image_name.jpg
Error executing ImageMagick - Return value: 127

When I looked for installed pear modules, I didn't see ImageMagic although I see one as a perl module.
Do I need to contact the server host or can ImageMagic be installed to the Coppermine directory?
I'm not real good at this sort of thing but doing my best.

ron4mac

Maybe your host changed their configuration and ImageMagick is not available. If you go to Config->File settings->Method for resizing images .. you can select an alternate method for resizing uploaded images. That should solve your issue.

typomaniac

Thank you soooo much! I changed the method to GD version 2.x and everything went back to working. You guys are amazing, and to think you do it all out of the goodness of your heart.
Thanks again,
~Dave