-
AuthorPosts
-
August 24, 2015 at 6:13 pm #492410
Hello Team Kriesi,
After attempting to update to version 3.3.1 of Enfold, I was faced with a fatal memory error:
Fatal error: Out of memory (allocated 77332480) (tried to allocate 65484 bytes) in /xxxxx/htdocs/data/plugins/sitepress-multilingual-cms/sitepress.class.php on line 213
This error is trigged by WPML and it only happens on the secondary language (the site is in English and French and it happens in the French version, which is not the default language). The English version of the site works perfectly normally and there don’t appear to be any problems in the admin.
Although this error relates to WPML, it is happening only after the Enfold upgrade. Reverting Enfold back to the previous version we had (v3.1.3) makes the error disappear.
The PHP memory limit on the server is 120M by default and I’ve tried increasing it to 512M in wp-config but it doesn’t seem to have any effect on this error.
Are you able to suggest any fixes or give a clue as to what changed in the recent versions of Enfold? I understand that new versions might require more memory but it seems that error is occurring below our default limit of 120M and even still when it is increased to 512M.
Any help is greatly appreciated!
August 24, 2015 at 6:24 pm #492414Hey jfcastel!
Can you please post the link to your website?
Have you tried de-activating all active plugins except for WPML and check if that helps?Cheers!
YigitAugust 25, 2015 at 10:13 am #492738Hi Yigit,
I’ve included the link and more details in the private section. I have also tried disabling all other plugins except WPML and the error remains. Reverting to the old version of the theme immediately fixes it so there is something in the update that is triggering this error.
Any other suggestions?
Thanks!
August 25, 2015 at 1:17 pm #492891Hey!
Memory limit still seems to be set to 120M. Can you please contact your service provider and have them increase the limit for you?
Best regards,
YigitAugust 26, 2015 at 11:40 am #493449Hi Yigit,
If the memory limit is 120M, do you know why it seems to be hitting a limit around 74M (77332480 bytes allocated)? It doesn’t seem like that is the PHP limit…
Previously I tried setting this in wp-config.php:
define( 'WP_MAX_MEMORY_LIMIT' , '512M' ); define( 'WP_MEMORY_LIMIT' , '512M' );
But that didn’t seem to change anything and I was still getting the error so I also tried doing this in wp-config.php:
@ini_set( 'memory_limit', '512M' );
Testing with ini_get(‘memory_limit’), it looks like the new memory_limit is being accepted by the host and I can even get it to show correctly in phpinfo() – see the private message for a link proving this.
In summary: even when the memory limit is set much higher (512M), the error still occurs. It seems to be directly related to something that has changed in Enfold because changing the theme back to the old version immediately fixes the error.
So the question remains, what has changed in Enfold that might be triggering this error?
August 27, 2015 at 12:02 pm #494048Hey!
maybe there are some corrupted theme files and in this case you need to delete all of them via FTP before getting a fresh copy from your themeforest account.
Hope this will help!
Regards,
AndySeptember 3, 2015 at 3:24 pm #497693Hi Andy,
I completely replaced the Enfold theme folder from a fresh copy that I downloaded from ThemeForest (v3.3.2) – the error still remains, so corrupt files are not the cause.
Same error, same limit number, same characteristics, just a different line:
Fatal error: Out of memory (allocated 77332480) (tried to allocate 20 bytes) in /xxxxx/htdocs/data/plugins/sitepress-multilingual-cms/sitepress.class.php on line 10467
Do you have any other ideas? I don’t know where the 77332480 figure comes from as it doesn’t seem to be related to any limits in our config. It absolutely seems to be related to the recent changes in Enfold. This is quite frustrating…
September 4, 2015 at 2:43 pm #498413Hi!
did you delete all theme files before getting a a fresh copy (instead of just overwriting them)?
What happens if you activate a default WordPress theme?
Please also contact WPML support, as they know their plugin best.
Cheers!
Andy -
AuthorPosts
- You must be logged in to reply to this topic.