Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

TopPosters Suddenly Starts Giving Error for All Discussions

aeryaery Gtricks Forum in 2.2 :) ✭✭✭
edited July 2012 in Vanilla 2.0 - 2.8

Everything was working fine untill evening, suddenly I started getting this error -

Fatal error: Cannot redeclare class TopPostersModule in /hermes/htdocs/forum/plugins/TopPosters/class.toppostersmodule.php on line 84

For now I have disabled the plugin and everything is working fine.

But how come did it happen so randomly?

There was an error rendering this rich post.

Comments

  • peregrineperegrine MVP
    edited July 2012

    Have you added other plugins recently? Perhaps one that was cloned from TopPosters.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • aeryaery Gtricks Forum in 2.2 :) ✭✭✭

    nope. I have done no activity in dashboard since last one month.

    There was an error rendering this rich post.

  • peregrineperegrine MVP
    edited July 2012

    so does that mean you have not updated version of topposters in July? :)

    or are you referring to an older version- just to clarify things.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • aeryaery Gtricks Forum in 2.2 :) ✭✭✭

    @peregrine the last update was in July 2011.

    I have the latest version.

    There was an error rendering this rich post.

  • I suspect yhe problem occurred when you downloade the updated plugin.

    look in your plugins directory and see if you have duplicates of the plugin.old versions of it even in directories you renamed, move the old version completely out of the plugin directory.

    disable the plugin thru config.php.

    enable it thriu the dashboard.

    if that doesn't work - download a previous version - doing all the same steps.

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

  • aeryaery Gtricks Forum in 2.2 :) ✭✭✭

    Okie, I will try these steps and let you know :)

    There was an error rendering this rich post.

  • you could also go into your plugin directory.
    erase the class.toppostersmodule.php.bak - you don't need it.

    go to your vanilla/plugins   directory
    
    grep -ri TopPostersModule 
    this will scan all plugins that have TopPostersModule in it.
    
    
    
    if you have more than one file that tries to create it
    
    with the following line - that is your culprit.
    
        $TopPostersModule = new TopPostersModule($Sender);
    
    theoretically the default.php file in TopPosters should be the only one that shows up with that line.
    

    I may not provide the completed solution you might desire, but I do try to provide honest suggestions to help you solve your issue.

Sign In or Register to comment.