• Resolved Andy Barlow

    (@drubarlow)


    Hello, I recently tried to install the plug-in GD Star Rating to try and get some feedback from my readers on the quality of the content posted to my blog. However, when I try to activate the plug-in, I get this message:

    “Plug in could not be activated because it triggered a fatal error.
    Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home1/andybarl/public_html/wp-content/plugins/gd-star-rating/code/t2/render.php on line 1271″

    I get a similar “fatal error” message when I try to upgrade any of my existing plug ins, like this:

    “Fatal error: Allowed memory size of 33554432 bytes exhausted (tried to allocate 122880 bytes) in /home1/andybarl/public_html/wp-admin/menu-header.php on line 90”

    Can someone help me interpret so I can begin to see how I might overcome these fatal errors, or point me in the right direction? Thanks in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 1. Try adding this line to your wp-config.php file:
    define('WP_MEMORY_LIMIT', '64M');
    
    2. If you have access to your PHP.ini file, change the line in PHP.ini
    If your line shows 32M try 64M:
    memory_limit = 64M ; Maximum amount of memory a script may consume (64MB)
    
    3. If you don't have access to PHP.ini try adding this to an .htaccess file:
    php_value memory_limit 64M
    
    4. Talk to your host.
    Thread Starter Andy Barlow

    (@drubarlow)

    Thank you samboll for your reply. ??

    I had come across this page earlier today, but it does not say where to insert the code from Line 1. Does it matter or can I simply insert it anywhere?

    anywhere after the opening
    <?php

    Thread Starter Andy Barlow

    (@drubarlow)

    Thanks again. Working like a charm now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Fatal errors when activating plug ins’ is closed to new replies.