Fatal error: Out of memory....

Backend won't even load. I have other sites on the same server with no issues...any help is appreciated.

Fatal error: Out of memory (allocated 6029312) (tried to allocate 170 bytes) in ....../zp-core/functions-basic.php on line 321

Comments

  • acrylian Administrator, Developer

    It's mostly the case of too large images for the sever to be processed: https://www.zenphoto.org/news/problems-with-albums-and-images/

    Are you talking about the albums page on the backend? Then also disable the album thumb display and specifically any random album thumb. If you have a lot albums and even list a lot sub levels, you get a lot images to be processed possibly.
    As you know Zenphoto processes sizes generally on request. Another way is to precache using the cacheManager.

  • n20capri2 Member
    edited June 2018

    Yeah it's weird - no issues for years and now this. I will check on cacheManager - but I haven't uploaded any new images in a while so idk what's going on.

    My host was no help either - even though the error was way less than the limit - he eventually said he updated my PHP version and it started working again. Thanks for the reply...

  • acrylian Administrator, Developer

    I missed looking at the actual line since I answered quickly inbetween. Actualy it is a php comment ;-) But the function next to it is getOption which loads all options if not already done. So this is probably not an image causing this. How large is your options table in the database?

  • I'm going to bring this back - as I said last time the host updated my php version and everything was good. Happened again the other day - same fix - however everything isn't loading this time. Same memory error...
    Fatal error: Out of memory (allocated 12058624) (tried to allocate 1024 bytes) in /home4/n20capri/public_html/zp-core/functions-db-MySQLi.php on line 163

    http://www.mikemartinelli.com/index.php?album=My-Car-Pics

    Any new thoughts with this new info? How do I see how large the options table is other than this?
    http://www.mikemartinelli.com/PiMP/Options.png

    Thanks

  • acrylian Administrator, Developer

    Sadly I cannot really help with this info. I see an incomple error on the site which is a different one than you site above. I cannot view it in the source as you seem to still use an old font replacement technique named cufon?
    Btw, I suggest to disable such error printing as that should not be visible to the public.

    So far it could mean a lot, from too large images for the server to corrupt meta data, too much of everything the server cannot handle. Not sure if this is again options. We didn't change anything in that regard. I also suggest to try the same album with a standard theme to see if it makes a difference.

    Any new thoughts with this new info? How do I see how large the options table is other than this?

    By looking into the database using a tool like phpmyadmin for example.

  • I'll check PhpMyAdmin thanks. How do I disable the error printing?
    Thanks

  • acrylian Administrator, Developer

    Via htaccess or via PHP http://php.net/manual/en/function.error-reporting.php. Probably ask your host as it might have a setting on its backend for this, too.

Sign In or Register to comment.