• Resolved winnewoerp

    (@joschi81)


    Hi,

    when I try to activate the plugin, I get the following error message:

    Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 71 bytes) in /xxx/xxx/xxx/wp-includes/wp-db.php on line 1292

    What’s wrong?

    Edit: The plugin had been installed since very long time. I just desactivated it for system testing reasons. Now I can’t re-activate it. Other plugins are not causing the error (no conflict with other plugins), because it also doesn’t work with WTI Like Post as the only plugin activated.

    Thanks and best regards
    joschi81

    http://ww.wp.xz.cn/extend/plugins/wti-like-post/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author webtechideas

    (@webtechideas)

    I don’t see this problem caused by WTI Like Post plugin as the error you have put is not plugin specific. Your server is running out of memory while trying to activate the plugin. May be your site has become huge with lot of data.

    Try increasing the memory limit inside wp-config.php file and see whether you still get the error or not. Another approach will be set up the same system on your local and try repeating the same thing and see whether you are still having the problem or not.

    Thanks

    Thread Starter winnewoerp

    (@joschi81)

    Thank you! Changing the memory limit by putting
    php_value memory_limit 200M
    to the .htaccess file did the trick.

    Sorry for supposing it was caused by your plugin!

    Hi

    I had this plugin installed previously then uninstalled. I re-installed but I get the following error when attempting to activate…
    Fatal error: Cannot redeclare class MostLikedPosts in /home/content/37/11200237/html/dbi/wp-content/plugins/wti-like-post/wti_like_post_widgets.php on line 81

    and if I try and unistall completely I get…
    Fatal error: Cannot redeclare class MostLikedPosts in /home/content/37/11200237/html/dbi/wp-content/plugins/wti-like-post/wti_like_post_widgets.php on line 81

    Plugin Author webtechideas

    (@webtechideas)

    I assume you are checking with 1.4.1 version now. There may be 2 reasons here.

    1. Earlier the plugin was not uninstalled cleanly.
    2. You are using some other plugin which has a class as MostLikedPosts

    Please approach as below in above cases.

    1. Try removing the plugin files from ftp. This will automatically disable the plugin and you can uninstall the plugin now. Download a fresh copy from wordpress and try installing that.
    2. In this case try modifying the wti_like_post_widgets.php file as below.
    – Line 80, change class MostLikedPosts to class WtiMostLikedPosts
    – Line 82, change function MostLikedPosts() to function WtiMostLikedPosts()
    – Line 148, change new MostLikedPosts() to new WtiMostLikedPosts()

    Do let me know if this helped you in fixing your issue or not.

    Thanks

    Thanks,that worked! I deleted through FTP and made the class and function name changes and was able to re-install.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Fatal error when trying to activate plugin’ is closed to new replies.