Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Fatal Error – memory size

  • @thewomaninus

    Member

    When I go to my “Plugin’s” on wordpress and hit “Activate” on Buddypress I get this error

    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home/pixelmom/thewoaninus/wp-admin/includes/upgrade.php on line 884

    what does it mean and how can I fix it? I just upgraded wordpress to the current available version and tried again and still I’m getting it.

    Thanks.

Viewing 19 replies - 1 through 19 (of 19 total)
  • @mercime

    Participant

    @thewomaninus

    Member

    I don’t understand the directions. I am not finding define(‘WP_MEMORY_LIMIT’, ’32M’); to change to 64M

    @aces

    Participant

    If it doesn’t already exist you can just add

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

    to the wp-config.php in the wordpress root directory.

    It needs to go somewhere above

    /* That's all, stop editing! Happy blogging. */

    There are situations where this won’t have any effect, so you could try asking your host to increase your wordpress memory limit, or do a search on that subject as there are other ways to do it yourself…

    If that doesn’t work, and for some shared server hosts it won’t, then have a look at the suggestions here and here.

    Or find a host that offers more memory – which could be difficult as all the other shared hosting services, that I’ve found, don’t quote the memory available in their advertising….

    @thewomaninus

    Member

    Urg now I do that and I’m getting this error

    Parse error: syntax error, unexpected T_STRING in /home/pixelmom/thewoaninus/wp-config.php on line 3

    @gunju2221

    Participant

    You put it in the wrong place, or didn’t copy it correctly because the define line should go there correctly. Make sure you didn’t delete the “;” or any characters.

    @thewomaninus

    Member

    I posted it just like this

    define(‘WP_MEMORY_LIMIT’, ’64M’); and I posted above the /* That’s all, stop editing! Happy blogging. */

    @mercime

    Participant

    What’s on lines 3 and 4 of your wp-config.php file? If you’re on webhosting server, have you contacted tech support?

    @4ella

    Participant

    You should try to change it in php.ini , this is the file for all your domains provided by your hosting company (in my case bluehost.com ) , otherwise i had the same problem and I have added this in wp.config.php on the line 36.

    @thewomaninus

    Member

    When I save the config it bunches it all up and then I get that error… and when it bunches together this is what I get on line 3

    wp-config.php} Codex page. You can get the MySQL settings from your web host. * * This file is used by the wp-config.php creation script during the *

    This domain is an addon domain and one of my good friends hosts me, I can contact him and see if he might can help me… I just really find this strange, I think my issues is why the config bunches us.

    @aces

    Participant

    I don’t understand what you mean by ‘bunches’….

    If you look at the wp-config-sample.php it should have a text block at the beginning like the following (quoted from wp 3.1.2)
    `
    <?php
    /**
    * The base configurations of the WordPress.
    *
    * This file has the following configurations: MySQL settings, Table Prefix,
    * Secret Keys, WordPress Language, and ABSPATH. You can find more information
    * by visiting { @link https://codex.wordpress.org/Editing_wp-config.php Editing
    * wp-config.php} Codex page. You can get the MySQL settings from your web host.
    *
    * This file is used by the wp-config.php creation script during the
    * installation. You don’t have to use the web site, you can just copy this file
    * to “wp-config.php” and fill in the values.
    *
    * @package WordPress
    */
    `
    those /* and */signs mark the beginning and end of text blocks that should be ignored in a .php type file…. ( this also true for single lines beginning // )

    Make sure that is the case with your config file.

    To edit php files you should use a text editor such as notepad++ rather than a wordprocessor such as MS Word.

    @thewomaninus

    Member

    This is what I mean by bunched up
    http://i52.tinypic.com/n4d4lj.jpg

    This is how it should be
    http://i52.tinypic.com/2nlbfon.png

    I blurred it out but you can see what I mean… I am good friends with my host, he’ll give me what ever I need, I just am wondering if its something I can fix without bugging him lol.

    @aces

    Participant

    Yeah, that certainly looks a mess.

    If you have a new install then maybe you need to do it again, unless you can reconstruct the wp-config.php file….

    It is probably not a good idea to use any host’s ‘automated’ install (if there is one) as so many people have problems afterwards.

    What might be simpler, quicker and less work is to talk to your friend/host as he may have a better idea what’s going on… including the available memory and ways to increase it if still necessary….

    @thewomaninus

    Member

    So instead of installing wordpress through my cpanel install it manually? Is that what you mean?

    @aces

    Participant

    Yes…. with the ‘world famous’ wordpress 5 minute installer and not cpanel – although I’ve never used cpanel or any host’s wordpress installer….

    If you have the necessary information to hand, it should be a simple and reliable process…

    If the wordpress files are ok and all present then it should be possible just to delete the wp-config.php file (or rename it to something like wp-config.php.bak in case you neet to refer to it again), and go to your web address.

    Ideally you should delete all the wordpress files, get the latest versions from wordpress.org and then re-upload them via ftp ( using a ‘client’ program such as filezilla ) to make sure that they are all uploaded correctly. Delete the WordPress database user and table through cPanel control panel.

    Sometimes there are problems when not all the files have been uploaded, or have been corrupted, but I haven’t had any problems using filezilla….

    @thewomaninus

    Member

    Is Core FTP ok?

    @aces

    Participant

    I don’t know as I don’t think i’ve ever used it…..

    @thewomaninus

    Member

    Thanks for your help, I finally got it to install. I uninstalled it through cpanel and then I manually installed it by downloading wordpress and following your directions and used the define(‘WP_MEMORY_LIMIT’, ’64M’); in my config and it worked. Thank you so very much :)

    @aces

    Participant

    phew…. panic over!

    @mercime

    Participant

    @aces great assist :-)

Viewing 19 replies - 1 through 19 (of 19 total)
  • The topic ‘[Resolved] Fatal Error – memory size’ is closed to new replies.
Skip to toolbar