Home Forums Basel support forum Fatal Memory errors despite more memory allocated

Fatal Memory errors despite more memory allocated

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #6971

    tjcham
    Participant

    Hi,

    No idea where this is coming from but the Shop pages are getting Fatal Errors for 128MB (134217728 bytes) yet the php.ini and define memory in the config files are set to 256MB (and confirmed in Woocommerce page). We can allocate even more memory, but if something is blocking it at 128MB there is not point.

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 5060695 bytes) in …/wp-includes/wp-db.php on line 1166

    Any ideas?

    Site is using Polylang for multi-language and site is live so difficult to test although have tried turning on and off various modules.

    Thanks,

    #6982

    Artem Temos
    Keymaster

    Hello,

    All you need to do is increase your PHP memory limit on the server. Here is an article that should help you. If no then contact your hosting providers for help https://docs.woocommerce.com/document/increasing-the-wordpress-memory-limit/

    Regards

    #6996

    tjcham
    Participant

    Thanks for the reply.

    Memory Limit IS 256MB on the server is set as confirmed by the php.ini file output and the define memory setting just like article above says is also set to 256MB.

    The error is saying only 128 MB is allowed.

    #7001

    Artem Temos
    Keymaster

    You need to check are your changes for PHP memory limit applied in WooCommere -> System Status.

    #7006

    tjcham
    Participant

    Hi,

    See above from opening post. “define memory in the config files are set to 256MB (and confirmed in Woocommerce page).”

    The reason I opened the ticket is because the memory limit IS set 256MB (please see screenshot), but the error says it is blocked at 128MB.

    This is a theme related issue, because when we set to another theme (Twenty Sixteen) with all the same plugins activated we do not have this problem.

    Attachments:
    You must be logged in to view attached files.
    #7012

    Artem Temos
    Keymaster

    Hello,

    Sorry, we missed that you already wrote about WooCommerce system report. But the error says that allowed memory size is 128 MB and this is the main problem. Of course, our theme requires a bit more memory than Twenty Sixteen but it is not a problem. Something wrong with your server since you defined 256MB memory limit and it can’t allocate more than 128 MB. Our theme can’t influence this anyhow and it doesn’t depend on any PHP scripts at all (themes, plugins, core etc..). Are you able to contact your server providers for help in this issue?

    Kind Regards

    #7036

    tjcham
    Participant

    Hi,

    Thanks for the info about the theme. It eliminates one area of searching.

    We contacted the client’s host and they said it was not from their end as the php.ini was set for 256MB, however I insisted that it must be server side, AND after they kept us on the phone for 20 minutes doing something they said try again and I cannot reproduce the error for the moment, so perhaps it was a server side problem.

    Thanks again.

    #7044

    Artem Temos
    Keymaster

    Great, we are glad to help you.

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)

The topic ‘Fatal Memory errors despite more memory allocated’ is closed to new replies.