开发者

Wordpress - Trying to edit post - "Fatal error: Out of memory"... but memory limit is high

开发者 https://www.devze.com 2023-01-17 11:35 出处:网络
Ah I\'m desperate, I so help someone can help me out! I have a domain: example.com. There are various WP installations for different languages, e.g. /en/, /fr/. I have duplicated the English language

Ah I'm desperate, I so help someone can help me out!

I have a domain: example.com. There are various WP installations for different languages, e.g. /en/, /fr/. I have duplicated the English language /en/ to make these other foreign language installations. The original /en/ installation still works great.

The other installations work on the front-end, it seems, however, when I try to edit a page, for example, I get this error, when updating/saving/submitting:

Fatal error: Out of memory (allocated 28835840) (tried to allocate 35 bytes) in /homepages/../wp-includes/wp-db.php on line 1371

This does not happen with the English开发者_开发知识库 language installation (/en/), and does not happen when I change other things in the other blog. For instance, I have managed to change the blog's name, widgets, menus, etc.

I have installed the Memory Booster plugin so PHP now has 256M to work with, but this seems to be running out of memory much earlier.

Does anyone know how to help? :(

So appreciative in advance!!!


Maybe a silly question, but did you restart your web server after adjusting the memory limit ?

Alternatively, maybe there is an override for the memory limit in a PHP file (ini_set('memory_limit', ...)) somewhere or in an Apache configuration file (php_value / php_admin_value).

You could try to print the effective memory limit by inserting e.g. an

echo '<h1>LIMIT: '.ini_get('memory_limit').'</h1>';

statement right before the line of error (if the error reproducibly occurs at the same location) and reload the offending page to see whether your limit is what you think it is (back up the original file before doing so).


This error can be a red-herring, i.e. suggests that the problem is to do with memory even when it is not.


The problem is that you're running multiple WP installs. Each takes at least 30 megs, and you're running out of it, esp. if your host is cheap and maxes out at 30 meg. Either run one install with the proper impletentation for multiple languages

http://codex.wordpress.org/Multilingual_WordPress

http://wpml.org/

or find a new web host.

0

精彩评论

暂无评论...
验证码 换一张
取 消