Viewing 16 posts - 1 through 16 (of 16 total)
  • Author
    Posts
  • #1317584

    Hi Support

    We have an error on our site. This happens when we edit a page and then click on Mailchimp Signin or Page Content to edit it’s settings.

    [20-Aug-2021 06:42:33 UTC] PHP Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 57344 bytes) in /home/michanicco/public_html/wp-includes/wp-db.php on line 2022

    The PHP Memory Limit: 4000M
    The PHP Version: 7.4.19
    Enfold Version: 4.8.6.2
    Total Pages: 2888
    Total Posts: 56
    .htaccess: php_value memory_limit 4000M
    .user.ini: memory_limit = 4000M
    php.ini: memory_limit = 4000M
    wp-config.php: define( ‘WP_MEMORY_LIMIT’, ‘4000M’ );

    Please advise what more we need to do here to get this to work ?

    Thank you.

    • This topic was modified 3 years, 3 months ago by Rustum.
    #1317720

    Hi Rustum,

    You’ll need to increase your memory limit, even though in .htacccess, php.ini, user.ini, wp-config.php it’s defined to have higher memory since there’s a finite amount that has been allocated to your account by the hosting provider, it will not go beyond it. You’ll probably need to upgrade your account for it to have a higher memory allocation.

    Best regards,
    Nikko

    #1317729

    hi,

    thank you. We are not on a shared server and have 16GB memory on our server. We have access to the entire resource pool of our server.

    If you look at the allocation, it seems to be 256M it seems like all our config is ignored.

    Please assist

    #1317805

    Hi. This is urgent.

    CN you please assist?

    #1317808

    Hi Rustum,

    I see, can you try to create a stage/dev site for us? so we can check on it further without affecting your live site.
    Then please post the credentials in private content.
    Also, please enable the WP_DEBUG in the stage site.

    Best regards,
    Nikko

    #1317928

    Hi
    the credentials have been provided and WP-Debug enabled

    #1317992

    hi support, do you have any feedback?

    Thanks

    #1318017

    Hi,

    I could not see why memory limit is still set to 256M. Could you please contact your hosting provider and ask them to check why it is ignored?

    Best regards,
    Yigit

    #1318031

    But this seems to only happen when trying to edit the special heading. There is sufficient memory and it is not a shared server.

    There must be some configuration. We ran the memory test script and it goes all the way to 5g when running the script therefore it is not server related

    #1318039

    Hi Support

    What average response time should I expect as this is highly urgent?

    Thank you

    #1318104

    I see this was posted here https://kriesi.at/support/topic/allowed-memory-exhausted/

    Wanted know if this was resolved and if so how..

    Thanks

    #1318123

    Hi,

    I checked php.ini, .htaccess and wp-config.php files but I cannot see any rule which would override the one you set. 268435456 B equals to 256M so clearly there is some configuration and that configuration must be on your server as the theme cannot change or modify memory limit. Your hosting providers would be able to shed a light on that so please contact them :)

    Best regards,
    Yigit

    #1318140

    Hi Yigit

    The issue was on the core theme files. We changed the hard coded 256M to our server limit. Please check the below files for your next update

    config-layerslider\LayerSlider\assets\classes\class.ls.importutil.php
    config-layerslider\LayerSlider\assets\templates\tmpl-revisions-history.php
    config-layerslider\LayerSlider\assets\views\slider_edit.php
    config-layerslider\LayerSlider\assets\views\system_status.php
    config-templatebuilder\avia-template-builder\php\class-html-helper.php

    @ini_set( ‘memory_limit’, ‘256M’ );

    We changed the 256M to a greater value and all is working now.

    Thanks !

    #1318146

    Hi,

    Glad you figured it out and thanks for sharing! I am sorry, I was not aware of that line. I reported it to our devs and will inform LayerSlider team as well :)

    Best regards,
    Yigit

    #1318193

    Hi Rustum, the question you asked here
    https://kriesi.at/support/topic/allowed-memory-exhausted/#post-1318100
    regarding whether it was resolved. The answer is no. The support kept saying the hosting is wrong, but the hosting provider proved that the memory limit was 2Gb. Unfortunately, we had to abandon this plugin.

    #1318435

    Hi Kongpob,

    Sorry you had to abandon the theme due to this issue. Increasing value in files mentioned above by @Rustum would work as a temporary solution. We have informed our devs already so in upcoming versions issue should be fixed :)

    Best regards,
    Yigit

Viewing 16 posts - 1 through 16 (of 16 total)
  • You must be logged in to reply to this topic.