Increase Maximum Upload Size Increase Maximum Upload Size
 

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

Increase Maximum Upload Size

Started by nowordneeded, May 03, 2019, 06:56:53 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

nowordneeded

Hello. I'm running the latest stable version in 1.6.06 on this gallery http://lauramennell.org/gallery.

What I'm wanting to know is, I'm trying to upload some HI RES images to the gallery with dimensions of 5790x3870. All of these images in the screengrab below are the same size, yet some uploaded while others didn't. I've also increased the upload size in both my .htaccess and php.ini files. What can I do to get these images added?

Thanks.
Sometimes my musings are too confusing for someone not inside my head.

phill104

We need to determine what is causing the problem. It could be limits on your server or you have limited image sizes in your config. Please follow the troubleshooting guidelines from the docs so we can test some uploads.
It is a mistake to think you can solve any major problems just with potatoes.

nowordneeded

This is a screengrab for what I have in the config file settings:

Sometimes my musings are too confusing for someone not inside my head.

nowordneeded

I set up the test account and activated debug mode. Here are the deets:

user: test
password: testuser

I received this error when uploading:

Error executing ImageMagick - Return value: 9

Cmd line :
/usr/bin/convert -quality 100 -antialias -resize 150 -crop 150x150+0+8 'albums/userpics/10002/07192018_-_2018_Comic_Con_Los_Angeles_Times_012.jpg' 'albums/userpics/10002/thumb_07192018_-_2018_Comic_Con_Los_Angeles_Times_012.jpg'

The convert program said:
#0 /home/obscurad/public_html/lauramennell.org/gallery/uniload.php @498


Sometimes my musings are too confusing for someone not inside my head.

ron4mac

You should look at how much memory is allowed for the php process (phpinfo).

nowordneeded

Ron:

Where would I find that? When I look at the phpinfo file all it has in it is coding, no ways to change memory.
Sometimes my musings are too confusing for someone not inside my head.

ron4mac

Quote from: nowordneeded on May 04, 2019, 03:51:28 AM
Where would I find that? When I look at the phpinfo file all it has in it is coding, no ways to change memory.
One of the admin menu items is phpinfo. It will show you all the PHP settings. Look for memory_limit. I recommend that it be at least 128M ... better is 256M. Depending on your system, it can be set either in a php.ini file or a .user.ini file.

nowordneeded

I just checked and it said "no value".
Sometimes my musings are too confusing for someone not inside my head.

nowordneeded

Sorry, wrong line. I does say 256M.
Sometimes my musings are too confusing for someone not inside my head.

ron4mac

I did not get any failure with a somewhat smaller file named like your problem files. Those are quite large files. Try increasing memory_limit to 384M.
You could also try using GD instead of ImageMagick as the image processor.

nowordneeded

Where would I increase that? In .htaccess or the php.ini file?
Sometimes my musings are too confusing for someone not inside my head.

phill104

That depends on your servers setup. There is also a problem with some hosts in that although you appear to have increased the memory limit, behind the scenes the host limits it elsewhere. Might be worth having a chat with them.
It is a mistake to think you can solve any major problems just with potatoes.

nowordneeded

Phill:

I will do that. As for the issue, I think Ron's solution to change from Imagemagick to GD worked. I'm able to upload all the images I had wanted to. So for now things appear to be working as it should. Thank you again for all your help.

Marked as solved.
Sometimes my musings are too confusing for someone not inside my head.