wersja skryptu MyBB: 1.8.7
adres forum: http://shihtzumaniak.pl/forum/
na czym polega problem (screen, opis, komunikaty):

Witam.
Chciałem dziś sobie zainstalować wtykę Mysupport i przed tą operacją skopiowałem sobie całe forum i bazę danych. Wtyka nie działała jak trzeba to przywróciłem starsze pliki i bazę. No i po tym wchodząc w pluginy wyświetla się takie coś
[b]Fatal error[/b]: Cannot redeclare class topStats in [b]/home/shihtzu1/public_html/forum/inc/plugins/topstats.php[/b] on line [b]104[/b]

cały kod

<?php
/**
* This file is part of Fast Quote plugin for MyBB.
* Copyright (C) Lukasz Tkacz <lukasamd@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with this program.  If not, see <http://www.gnu.org/licenses/>.
*
*/  

/**
* Disallow direct access to this file for security reasons
*
*/
if (!defined("IN_MYBB")) exit;

/**
* Add hooks
*
*/
$plugins->add_hook('parse_message_start', ['fastQuote', 'injectParser']);
$plugins->add_hook('postbit', ['fastQuote', 'addButton']);
$plugins->add_hook('showthread_start', ['fastQuote', 'checkQuickReplyStatus']);
$plugins->add_hook('pre_output_page', ['fastQuote', 'pluginThanks']);


/**
* Standard MyBB info function
*
*/
function fastQuote_info() {
   global $lang;

   $lang->load('fastQuote');
   $lang->fastQuoteDesc = '<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="float:right;">' .
       '<input type="hidden" name="cmd" value="_s-xclick">' .
       '<input type="hidden" name="hosted_button_id" value="3BTVZBUG6TMFQ">' .
       '<input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">' .
       '<img alt="" border="0" src="https://www.paypalobjects.com/pl_PL/i/scr/pixel.gif" width="1" height="1">' .
       '</form>' . $lang->fastQuoteDesc;

   return Array(
       'name' => $lang->fastQuoteName,
       'description' => $lang->fastQuoteDesc,
       'website' => 'https://tkacz.pro',
       'author' => 'Lukasz "LukasAMD" Tkacz',
       'authorsite' => 'https://tkacz.pro',
       'version' => '1.2.0',
       'compatibility' => '18*',
       'codename' => 'fast_quote'
   );
}

/**
* Standard MyBB installation functions
*
*/
function fastQuote_install() {
   require_once('fastQuote.settings.php');
   fastQuoteInstaller::install();

   rebuild_settings();
}

function fastQuote_is_installed() {
   global $mybb;

   return (isset($mybb->settings['fastQuoteStatus']));
}

function fastQuote_uninstall() {
   require_once('fastQuote.settings.php');
   fastQuoteInstaller::uninstall();

   rebuild_settings();
}

/**
* Standard MyBB activation functions
*
*/
function fastQuote_activate() {
   require_once('fastQuote.tpl.php');
   fastQuoteActivator::activate();
}

function fastQuote_deactivate() {
   require_once('fastQuote.tpl.php');
   fastQuoteActivator::deactivate();
}

/**
* Plugin Class
*
*/
class fastQuote
{
   private static $posts;
   private static $quick_reply_status = false;

   /**
    * Collect post data if full quote option is enabled
    *
    */
   public function injectParser($message) {
       global $mybb, $post;
       
       if (THIS_SCRIPT == 'showthread.php'
           && $mybb->user['uid'] > 0
           && $mybb->settings['fastQuoteStatus']
       ) {
           self::$posts[$post['pid']] = htmlspecialchars($post['message']);
       }
           
       return $message;
   }
   
   /**
    * Check is quick reply enabled
    *
    */
   public function checkQuickReplyStatus() {
       global $fid, $forum, $forumpermissions, $mybb, $thread;
       
       if ($forumpermissions['canpostreplys'] != 0
           && $mybb->user['suspendposting'] != 1
           && ($thread['closed'] != 1 || is_moderator($fid))
           && $mybb->settings['quickreply'] != 0
           && $mybb->user['showquickreply'] != '0'
           && $forum['open'] != 0
       ) {
           self::$quick_reply_status = true;
       }
   }
   
   /**
    * Add fast quote button to post data
    *
    */
   public function addButton(&$post) {
       global $lang, $db, $mybb, $templates;

       $post['button_quote_fast'] = '';
       if (!self::$quick_reply_status || !$mybb->settings['fastQuoteStatus']) {
           return;
       }
       else {
           $fastquote_data = array(
               'pid'           => $post['pid'],
               'username'      => str_replace(array('\'', '"'), '', $post['username']),
               'dateline'      => $post['dateline'],
               'title'         => $mybb->settings['fastQuoteText'],
               'style'         => $mybb->settings['fastQuoteImageStyle'],
               'message'       => self::$posts[$post['pid']],
           );
           
           eval("\$post['button_quote_fast'] .= \"" . $templates->get("fastQuote_button") . "\";");
       }
   }
   
   
   /**
    * Say thanks to plugin author - paste link to author website.
    * Please don't remove this code if you didn't make donate
    * It's the only way to say thanks without donate :)    
    */
   public function pluginThanks(&$content) {
       global $session, $lukasamd_thanks;
       
       if (!isset($lukasamd_thanks) && $session->is_spider) {
           $thx = '<div style="margin:auto; text-align:center;">This forum uses <a href="https://tkacz.pro">Lukasz Tkacz</a> MyBB addons.</div></body>';
           $content = str_replace('</body>', $thx, $content);
           $lukasamd_thanks = true;
       }
   }

}

O kurcze sorry. Jakiś przełom. Dałem nie ten plik bo zmienił się error. Spróbuję przegrać wszystkie pliki pluginów.

Ehhh pozamieniało mi litery przy kopiowaniu plików w tc. Szlag by to.
Matslom napisał 07.04.2016, 15:20:
Podaj adres forum. Wątki bez adresu będą wyrzucane do kosza.