Viewing 26 posts - 1 through 26 (of 26 total)
  • Author
    Posts
  • #1192550

    Dear support,

    whenever we try to create a new Layer slider or edit an existing one, we get this error

    Allowed memory size of 268435456 bytes exhausted (tried to allocate 61440 bytes)

    Using query monitor, I can see our allowed memory is 1024Mb

    Wordpress version 5.2

    I’ve disabled all plugins, but the problem remains the same

    #1192603

    Hey Pongsavorn,

    Please refer to the following:

    https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/

    Best regards,
    Jordan Shannon

    #1192642

    thanks for your prompt reply. however, our memory limit is 4 times that of what LayerSlider is trying to allocate:

    Using query monitor, I can see our allowed memory is 1024Mb

    #1192659

    Hi,

    Could you please post a link to your website? It seems like setting it to 512M should work.

    Regards,
    Yigit

    #1192815

    Our hosting supports says that it seems like the theme gets its memory limit from somewhere else.

    wpconfig and htaccess both have 512mb.

    In the Status page of the LayerSlider, it still says:
    PHP Memory Limit: 256M

    can I attached a screenshot somehow to provide more details?

    #1192838

    Hi,

    You can upload screenshots to Google Drive, Dropbox or a similar service, then link to them here.

    If we could have access to your site and FTP then that would help as well. You can post the details in private.

    Best regards,
    Rikard

    #1192843
    This reply has been marked as private.
    #1193033

    Hi,

    Thanks for that, this is what I see in your wp-config.php file:

    define( 'WP_MEMORY_LIMIT', '512M' );

    You have it defined twice in there, I’m not sure if that might be causing a problem or not but there’s no point of having two lines of code which are the same. Please remove one of them and try to increase the value to see if that changes anything. If not then please include WordPress login details in private as well.

    Best regards,
    Rikard

    #1193721
    This reply has been marked as private.
    #1195126

    Hi,
    Sorry for the late reply, I took a look at your wp-config.php file, and the second define( 'WP_MEMORY_LIMIT', '512M' ); is gone and I found no error messages on your site, so is this topic solved?

    Best regards,
    Mike

    #1195174
    This reply has been marked as private.
    #1195259

    Hi,
    Your MonsterInsights seems to load slowly on your dashboard, have you tried disabling your plugins to find which one is hogging the resources?
    Have you asked your web host for help changing the memory limit?
    I have not seen any sites having trouble with the layerslider with a Memory Limit of 256M.

    Best regards,
    Mike

    #1195327

    Dear support,

    I’ve disabled all plugins, but the problem still persists.
    The web hosting support has helped us ensure that a standard php_info in the root of our public_html shows the correct memory limit (512Mb).
    Still, the Options page in the LayerSlider menu is stuck on 256Mb memory limit and it’s not enough to load some of our large sliders.

    Thanks
    Eric

    #1197673

    Hi,
    I see that you are using Enfold v4.2.4, I believe you are going to need to update to v4.7.3, but to update from this old version you will have to update via FTP.
    The easiest and safest way to update is to download the newest version from Theme Forest and rename your current theme folder to “enfold-old” via ftp then upload the new “enfold” folder and check that your site is working correctly.
    Should for some reason you wish to roll-back to the old version, it’s easy to do, simply rename the new “enfold” folder to “enfold-new” via ftp and then rename “enfold-old” to “enfold” then refresh your page.
    Once you are happy you can delete the “enfold-old” folder via ftp, (not the WP theme page)
    Please don’t try to overwrite the theme folder, as this will leave old files behind and cause errors.

    Best regards,
    Mike

    #1197914

    Hi Mike,

    I’ve updated the Enfold theme to 4.7.3.

    The problem still persists though.

    Layer slider still says it’s outdated

    #1199255

    Hi,

    Having the latest version of the theme doesn’t necessarily mean that it will contain the latest version of the layer slider plugin, but it should work just fine.

    It’s possible that your server limits the memory to 256MB, so you should ask your hosting provider if it’s actually allowed to increase the limit in the root directory via .htaccess or the wp-config file. Though it may reflect that the limit is increased, but under the hood it’s still set to the imposed maximum memory limit. Is the site on a shared hosting?

    You should also set the installation to debug mode so that we can check for errors in the log files.

    // https://wordpress.org/support/article/debugging-in-wordpress/#example-wp-config-php-for-debugging

    Best regards,
    Ismael

    #1201116
    This reply has been marked as private.
    #1203227

    Hi,

    Sorry for the delay. We enabled the error logs in the wp-config.php file, but we can’t check or test the layer slider because the WP account above is invalid. Please post another account in the private field including the login URL.

    Best regards,
    Ismael

    #1203241
    This reply has been marked as private.
    #1203947

    Hi,

    We found this error in the log file.

    [13-Apr-2020 02:14:11 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/vnu/public_html/horti-asia.com/wp-content/plugins/email-before-download/includes/class-email-before-download-db.php on line 56
    [13-Apr-2020 02:57:16 UTC] PHP Warning:  count(): Parameter must be an array or an object that implements Countable in /home/vnu/public_html/horti-asia.com/wp-content/plugins/email-before-download/includes/class-email-before-download-db.php on line 56
    

    It’s an error generated by the email-before-download plugin, so we disabled the plugin temporarily but the layer slider is still not working because. It’s still an issue with the memory limit, which is still set to 268435456 Bytes or 268 Megabytes.

    This looks like a limitation in your server. You should contact your hosting provider about this or consider transferring to a different server that allows higher PHP memory allocation.

    You should also update the outdated plugins when you have the time.

    Best regards,
    Ismael

    #1203999
    This reply has been marked as private.
    #1204611

    Hi,

    checking the memory limit with our hosting provider was the first thing we did, months ago before raising this ticket with you.

    Yes, we are aware of that but according to the error logs the limit is still set to 268435456 Bytes or 268 MB, so the defined limit is not applied. Please forward it to your hosting provider. Did you update the plugins?

    Best regards,
    Ismael

    #1204616
    This reply has been marked as private.
    #1204658

    Hi,

    Please see the link in private content field below. Debug.log is inside /wp-content/ folder.

    Best regards,
    Yigit

    #1318100

    Was this resolved? I am having the same issue and have a lot of memory. we have also ran the memory allocation test script and we could go up to 5G memory allocation on the script meaning the memory is sufficient.

    #1318130

    Hi,

    @Rustum hosting providers must have corrected it. Please contact your hosting providers as well :)

    Best regards,
    Yigit

Viewing 26 posts - 1 through 26 (of 26 total)
  • The topic ‘Allowed memory exhausted’ is closed to new replies.