Forums

Fatal error with screwed up wp-settings.php (4 posts)

  1. Green Archers
    Member
    Posted 3 months ago #

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 7680 bytes) in /home/vol2/xtreemhost.com/xth_10113117/archersandanime.co.cc/htdocs/wp-includes/media.php on line 258

    That's what's showing up in my blog and I don't know how to solve it. I tried searching through cases with similar problems but the problem is I can't edit my wp-settings file since I can't find the 32M that everyone is talking about.

    To have a better understanding what I mean by this, I posted a link to the pic of my wp-settings file when I open it through text.

    http://i246.photobucket.com/albums/gg105/thefourkingdoms/wp-settings.png

    I can't find the line where to edit the memory limit. I downloaded a fresh settings file in the site but it still shows the same. Any help please.

  2. Don't edit wp-settings.php, that's never the right thing to do. It's part of the core WordPress files so please put that back the way it was.

    The file you want to edit is wp-config.php but make a backup before doing so just in case.

    http://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP

    Try adding this to wp-config.php

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

    If that doesn't work, see if can make a backup copy of your .htaccess file and try adding this line up top.

    php_value memory_limit 64M

    If you can't get into your WordPress install after editing the .htaccess file, put the backup copy back.

    Many shared hosts prevent that, so if these two steps don't work contact your host provider and ask to increase the php.ini memory limit.

    memory_limit = 64M

    Make sure you have a backup of any file you edit and you are prepared to restore those files just in case. A typo in any of them will bring down your site.

  3. Green Archers
    Member
    Posted 3 months ago #

    Oh! Sorry, didn't know that. Thanks, I'll try that and post back.

  4. Green Archers
    Member
    Posted 3 months ago #

    Sorry all didn't work, I couldn't ask for the php.ini file since I'm just a free user. I just moved hosts and was able to upload files again.

Reply

You must log in to post.

About this Topic

Tags

No tags yet.