Advanced search  

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

Pages: [1]   Go Down

Author Topic: Fatal error when uploading pics (Flash-Uploader)  (Read 13016 times)

0 Members and 1 Guest are viewing this topic.

pictureproject.me.ly

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Fatal error when uploading pics (Flash-Uploader)
« on: December 20, 2015, 12:21:12 am »

Hi guys,

since some hours, I have big problems with uploading photos.
After selecting and uploading, I receive following error:

Code: [Select]
Fatal error:  Out of memory (allocated 3932160) (tried to allocate 786432 bytes) in /home/www/galerie/lang/german.php on line 2361
How can I fix that issue?
Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: Fatal error when uploading pics (Flash-Uploader)
« Reply #1 on: December 20, 2015, 12:33:32 am »

How large are the photos you are uploading? 
You are exceeding the memory limit set by your ISP. This is not a Coppermine limitation.
You can ask them to increase the limit (can be specified in php.ini if your host allows) - or you can reduce the size of the images you are uploading...

My camera takes 20+MP images - I always downsize to a more reasonable size before uploading (and CPG builds the intermediate and thumb images).
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
Re: Fatal error when uploading pics (Flash-Uploader)
« Reply #2 on: December 20, 2015, 09:18:38 am »

  Fatal error: Allowed memory size of X bytes exhausted http://forum.coppermine-gallery.net/index.php/topic,76445.0.html
Logged

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Fatal error when uploading pics (Flash-Uploader)
« Reply #3 on: December 20, 2015, 05:07:38 pm »

Also, you can check for the value of user_ini.filename in your phpinfo. If set, it will likely most often be .user.ini .
If you create a file by the configured name in the root of your CPG install, you can set php.ini type items there.
Example:

.user.ini
Code: [Select]
[php]
upload_max_filesize = 200M
post_max_size = 200M

max_execution_time = 300
memory_limit = 256M
Logged

pictureproject.me.ly

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Re: Fatal error when uploading pics (Flash-Uploader)
« Reply #4 on: January 31, 2016, 11:57:12 am »

Sorry for the late reply quys.


Code: [Select]
user_ini.filename .user.ini

upload_max_filesize 1024M
post_max_size 1024M

max_execution_time 30
memory_limit 512M[b]*[/b]

Do you think I should rise the "max_execution_time" up to your suggested value of "300"?


*
I checked that problem also with my hoster.
On the gallery server, I'm also running a cloud software - maybe both togehter consumed too much memory?
Maybe the error occured because of reaching the RAM limit.
Now I upgraded my server RAM to 512MB.
Do you think this already will solve the problem for the future?


The file size limit I already changed right after installing CPG for the first time - that was in 2011 I think.

Greez.

Logged

gmc

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 785
    • GMC Design Photo Gallery
Re: Fatal error when uploading pics (Flash-Uploader)
« Reply #5 on: January 31, 2016, 01:13:06 pm »

hmmm... after a little more searching I would go back to your hoster...

You are getting an 'Out of Memory' message and not the more typical 'Allowed memory size of X bytes exhausted'...
Some quick searching (Google Is Your Friend - GIYF) - two possibilities seem to be an Apache level memory limit or physical memory.

Apache level:
http://stackoverflow.com/questions/13955914/php-out-of-memory-error-even-though-memory-limit-not-reached
Look for RLimitMEM in http.config (apache conf file) - I'm thinking this is more likely.
Either an unreasonably low limit - or you are running too many other parallel processes.

System level:
http://stackoverflow.com/questions/8808125/random-php-fatal-error-out-of-memory-errors
Look at Apache's error log for errors/crashes - as it wouldn't have survived the encounter:
'zend_mm_heap corrupted' as an example.
Virtual servers should have sufficient virtual memory to handle far more requests that the physical memory on the machine - especially in a shared hosting environment... though wouldn't surprise me with some of the hosts I have run into.

You didn't say how large the photos are - but looking at the bytes allocated and requested - they aren't that large...
"(allocated 3932160) (tried to allocate 786432 bytes)" - only 3.9M allocated - and only requesting 786K (0.786M)
Logged
Thanks!
Greg
My Coppermine Gallery
Need a web hosting account? See my gallery for an offer for CPG Forum users.
Send me money

ron4mac

  • Administrator
  • Coppermine addict
  • *****
  • Country: us
  • Offline Offline
  • Posts: 2026
Re: Fatal error when uploading pics (Flash-Uploader)
« Reply #6 on: January 31, 2016, 01:52:40 pm »

Try using the HTML5Uploader Plugin.
It can be set in its configuration (by groups) to upload files larger than what your server normally allows by 'chunking' the upload.
Rename your .user.ini file so it is not effective, install the HTML5Upload plugin and set the plugin's upload size to something large. Try to upload a large file and see what happens.
Logged

pictureproject.me.ly

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 41
Re: Fatal error when uploading pics (Flash-Uploader)
« Reply #7 on: March 09, 2016, 07:53:05 pm »

Sorry again for the late reply.

Due to further errors with other software, I upgraded to 512MB RAM.
Since the upgrade I never got this error again.
Meanwhile, I installed the HTML5-Uploader.

Many thanks for your great supporting.
Logged

phill104

  • Administrator
  • Coppermine addict
  • *****
  • Country: gb
  • Offline Offline
  • Gender: Male
  • Posts: 4885
    • Windsurf.me
Re: Fatal error when uploading pics (Flash-Uploader)
« Reply #8 on: March 09, 2016, 09:31:24 pm »

Excellent stuff. For reference as to just how much memory can be used by even small images check out this old but still good post - http://forum.coppermine-gallery.net/index.php/topic,24088.0.html
Logged
It is a mistake to think you can solve any major problems just with potatoes.

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Logged
Pages: [1]   Go Up
 

Page created in 0.031 seconds with 20 queries.