-
AuthorPosts
-
March 12, 2020 at 11:35 am #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
March 12, 2020 at 2:04 pm #1192603Hey Pongsavorn,
Please refer to the following:
https://www.wpbeginner.com/wp-tutorials/fix-wordpress-memory-exhausted-error-increase-php-memory/
Best regards,
Jordan ShannonMarch 12, 2020 at 3:00 pm #1192642thanks 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
March 12, 2020 at 3:23 pm #1192659Hi,
Could you please post a link to your website? It seems like setting it to 512M should work.
Regards,
YigitMarch 13, 2020 at 3:33 am #1192815Our 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: 256Mcan I attached a screenshot somehow to provide more details?
March 13, 2020 at 8:21 am #1192838Hi,
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,
RikardMarch 13, 2020 at 9:10 am #1192843This reply has been marked as private.March 14, 2020 at 4:29 am #1193033Hi,
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,
RikardMarch 17, 2020 at 4:51 am #1193721This reply has been marked as private.March 21, 2020 at 7:13 pm #1195126Hi,
Sorry for the late reply, I took a look at your wp-config.php file, and the seconddefine( 'WP_MEMORY_LIMIT', '512M' );
is gone and I found no error messages on your site, so is this topic solved?Best regards,
MikeMarch 22, 2020 at 4:24 am #1195174This reply has been marked as private.March 22, 2020 at 5:05 pm #1195259Hi,
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,
MikeMarch 23, 2020 at 2:19 am #1195327Dear 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
EricMarch 25, 2020 at 1:43 pm #1197673Hi,
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,
MikeMarch 26, 2020 at 4:40 am #1197914Hi Mike,
I’ve updated the Enfold theme to 4.7.3.
The problem still persists though.
Layer slider still says it’s outdated
March 31, 2020 at 5:15 am #1199255Hi,
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,
IsmaelApril 6, 2020 at 4:52 am #1201116This reply has been marked as private.April 13, 2020 at 7:02 am #1203227Hi,
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,
IsmaelApril 13, 2020 at 7:50 am #1203241This reply has been marked as private.April 15, 2020 at 12:39 pm #1203947Hi,
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,
IsmaelApril 15, 2020 at 2:58 pm #1203999This reply has been marked as private.April 17, 2020 at 7:15 am #1204611Hi,
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,
IsmaelApril 17, 2020 at 7:44 am #1204616This reply has been marked as private.April 17, 2020 at 9:42 am #1204658Hi,
Please see the link in private content field below. Debug.log is inside /wp-content/ folder.
Best regards,
YigitAugust 24, 2021 at 11:04 am #1318100Was 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.
August 24, 2021 at 1:31 pm #1318130 -
AuthorPosts
- The topic ‘Allowed memory exhausted’ is closed to new replies.