Support » Fixing WordPress » Fatal Memory Error on Activation (bbPress Plugin)

  • Hello there, every time I attempt to activate the bbPress plugin it throws this error at me.

    Plugin could not be activated because it triggered a fatal error. Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 4480 bytes) in /mypool/web/vhosts/PR01088/infpunite.org/www/wp-content/plugins/bbpress/includes/replies/functions.php on line 213

    How can I fix this? I’ve been really wanting to use bbPress for a while and still can’t get it to work. I also seem to not have any problems with any other plugins but this one only.

    Appreciate any help given, and thank you for your time!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    It doesn’t necessarily mean that bbPress is causing it. You may have already gotten close to your memory limit, and adding bbPress was just enough to push it over the edge.

    If you’re seeing this error either suddenly (no specific task was done to cause the error) or frequently, try deactivating all plugins to rule-out a plugin-specific issue and try switching themes to rule-out a theme-specific issue.

    Otherwise, here are three ways to increase PHP’s memory allocation:

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    2. If you cannot edit or override the system php.ini file, add php_value memory_limit 128M to your .htaccess file.

    3. If neither of these work, it’s time to ask your hosting provider to temporarily increase PHP’s memory allocation on your account. Keep in mind that most decent hosting providers allocate 64 MB to PHP under each account, and most decent hosting providers allow users to temporarily increase the memory allocation. If your hosting provider won’t accommodate you, perhaps it’s time to find a new hosting provider.

    (in the above examples, the limit is set to 128MB)

    Thread Starter ty505

    (@ty505)

    Alright, I tried doing number 2 but I ended up messing up my site. I installed this plugin here: https://wordpress.org/plugins/wp-htaccess-control/ and entered in that php_value memory_limit 128M code into the “custom” field, saved it, and then now get this error:

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator at webmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

    More information about this error may be available in the server error log.

    Not sure what to do…

    After seeing the problem, I removed the plugin from my database/directory via FTP but the problem is still present.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    Access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and edit the .htaccess file with a plain text editor to remove the line that was added.

    Thread Starter ty505

    (@ty505)

    Not sure where to find the .htaccess file, I have it open in a program called “WinSCP”

    I’ve also already deleted the folder that held the plugin and its contents, and it still seems to not be working.

    Maybe it generated files into other places in my database/directory that I need to remove to fix it?

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    It added the line to the .htaccess file, and your server configuration didn’t like that. The problem is now in the .htaccess file.

    You might need to configure your file manager to view hidden/invisible files.

    If you still can’t find it, contact your hosting provider’s support for direct assistance.

    Thread Starter ty505

    (@ty505)

    I have fixed it! Thank you!
    The problem was I was looking for the .htaccess file and the “show hidden files” option was not selected.

    I just removed that line and it worked as you said, now my site is back up and running. 🙂

    Thread Starter ty505

    (@ty505)

    Also, quick question…

    How would you typically go about doing method 1 as described above?

    1. If you can edit or override the system php.ini file, increase the memory limit. For example, memory_limit = 128M

    Where would you typically find that file to do so as well? Is it something done directly through FTP or a special setting through the web hosting providers site? Because I see an option to increase to 128M on my providers site under my site settings but I’d have to pay a bit more I believe.

    I also just tried this here, to see if it’d fix the problem but it didn’t seem to work.

    Moderator James Huff

    (@macmanx)

    Volunteer Moderator

    The location of php.ini varies greatly depending on server configuration, so I recommend checking your hosting provider’s documentation for that, or contacting their support for details.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Fatal Memory Error on Activation (bbPress Plugin)’ is closed to new replies.