forum.coppermine-gallery.net

Support => cpg1.5.x Support => cpg1.5 miscellaneous => Topic started by: rachelstoolbox on May 01, 2014, 02:40:58 am

Title: Fatal error: Allowed memory size of exhausted (functions.inc.php)
Post by: rachelstoolbox on May 01, 2014, 02:40:58 am
Fatal error: Allowed memory size of 94371840 bytes exhausted (tried to allocate 80 bytes) in include/functions.inc.php on line 291

The above error occurs anytime an image is selected in the 'Recent Uploads' section, regardless of whether the image is clicked on the homepage or via to menu to specifically display recent uploads. The same images work fine if traced back and opened via the user album. Files upload fine and resize successfully. Thumbnails display properly for uploaded files in the recent upload zones, but clicking to bring up the page always ends in the above error.

I've tried searching the forums but can not find anyone else receiving the same error referring to the same file. Never the less, I have attempted steps from the following without success:


I am currently operating a v1.5.28 (upgraded from v1.4.27) bridged to SMF 1.1 (to be replaced by SMF 2.0 within a week) and have the following plugins in operation:

Title: Re: Fatal error: Allowed memory size of exhausted (functions.inc.php)
Post by: rachelstoolbox on May 01, 2014, 02:44:44 am
Unable to attempt editing php.ini as the host currently has it inaccessible.
Title: Re: Fatal error: Allowed memory size of exhausted (functions.inc.php)
Post by: gmc on May 01, 2014, 02:21:42 pm
A link to your gallery would help in us being able to recreate/view the issue...
(Debug being on would be nice to see the difference in the queries issued between the 2 paths...)

While always a chance there is something unique wrong here, in most cases, additional memory will be required. If your ISP doesn't make php.ini available, you may want to ask them to raise your memory limit. 90M sounds small (90*1024*1024 = 94371840 reported in your message).  I'd expect over 128M... My largest gallery is running with 250M.
greggallery.gmcdesign.com (http://greggallery.gmcdesign.com)
Title: Re: Fatal error: Allowed memory size of exhausted (functions.inc.php)
Post by: rachelstoolbox on May 08, 2014, 08:13:48 am
Got it working for a short time after getting my host to release php.ini for my domain but it required 625mb to do it. Seems awfully high to load a single image and 5 thumbs on the strip since the page of thumbnails loads just fine. 1.4.x always ran fine on the 90mb

The gallery is attached to an adult content site so I can't really link it. Is there anything I can run and post the results to that might help determine what's going on?
Title: Re: Fatal error: Allowed memory size of exhausted (functions.inc.php)
Post by: Αndré on May 08, 2014, 09:10:00 am
My gallery (83,904 files in 1,302 albums and 157 categories with 26,676 comments) runs fine with a memory limit of 128M. I use a couple of plugins (but none of which you use), don't use the film strip and my gallery is not bridged.

Please post a link to your gallery and add a [NSFW] tag next to it, so we can get an idea how your gallery is structured/set-up and test ourselves.