WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top
 Fatal error: Out of memory (allocated 47185920) (tried to allocate 1922682 bytes) in /homepages/35/d289582498/htdocs/reeks/wp-includes/post.php on line 2850

I have a Wordpress website, setup with a custom theme. I have approximately 29 posts published; and 2 pages; today I go to create a new post and the above error is resolving?

I have just tried adjust my memory limit via the htaccess file and it now looks like below; but I am still getting this error.

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

<IfModule mod_php5.c>
php_value memory_limit 64M

# END WordPress

I have ALSO; just tried using a 'Memory Increase' Wordpress plugin - increasing the memory to 100MB and still the above error appears; any suggestions?

share|improve this question
Disable all plugins and switch to Twenty Twelve. Does it still happen? – toscho Jul 7 '13 at 20:15
PHP configuration via .htaccess is not supported in all configurations. Had you asked hosting support for their information and recommendation on configuring PHP memory limit? – Rarst Jul 7 '13 at 22:48

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.