1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Some server error - please help

Discussion in 'Troubleshooting and Problems' started by Sunka, May 2, 2014.

  1. Sunka

    Sunka Well-Known Member

    What to do?

    Code:
    Server Error Log
    Error Info
    Zend_Db_Statement_Mysqli_Exception: Mysqli prepare error: Table 'pijanitv_xenforo.xf_statistics' doesn't exist - library/Zend/Db/Statement/Mysqli.php:77
    Generated By: Unknown Account, A moment ago
    Stack Trace
    
    #0 /home/pijanitv/public_html/library/Zend/Db/Statement.php(115): Zend_Db_Statement_Mysqli->_prepare('???SELECT field...')
    #1 /home/pijanitv/public_html/library/Zend/Db/Adapter/Mysqli.php(381): Zend_Db_Statement->__construct(Object(Zend_Db_Adapter_Mysqli), '???SELECT field...')
    #2 /home/pijanitv/public_html/library/Zend/Db/Adapter/Abstract.php(478): Zend_Db_Adapter_Mysqli->prepare('???SELECT field...')
    #3 /home/pijanitv/public_html/library/Zend/Db/Adapter/Abstract.php(734): Zend_Db_Adapter_Abstract->query('???SELECT field...', Array)
    #4 /home/pijanitv/public_html/library/Andy/Statistics/Model.php(11): Zend_Db_Adapter_Abstract->fetchAll('???SELECT field...')
    #5 /home/pijanitv/public_html/library/Andy/Statistics/ControllerPublic/Forum.php(31): Andy_Statistics_Model->getStatistics()
    #6 /home/pijanitv/public_html/library/XenForo/FrontController.php(347): Andy_Statistics_ControllerPublic_Forum->actionIndex()
    #7 /home/pijanitv/public_html/library/XenForo/FrontController.php(134): XenForo_FrontController->dispatch(Object(XenForo_RouteMatch))
    #8 /home/pijanitv/public_html/index.php(13): XenForo_FrontController->run()
    #9 {main}
    
    Request State
    
    array(3) {
      ["url"] => string(35) "http://www.pijanitvor.com/index.php"
      ["_GET"] => array(0) {
      }
      ["_POST"] => array(0) {
      }
    }
    
    
     
  2. Chris D

    Chris D XenForo Developer Staff Member

    It appears as though you have a table missing, that table is:

    xf_statistics

    That is not a default XenForo table.

    The add-on that is calling it is Statistics by AndyB.

    You should consult AndyB for assistance.

    In the interim, you may want to try reinstalling the add-on (assuming you can access the Admin CP) as that may re-add the table.
     
  3. Chris D

    Chris D XenForo Developer Staff Member

    If you can't access the Admin CP, open up the file library/config.php and add this line:

    PHP:
    $config['enableListeners'] = false;
    That will disable all add-on listeners. You should then be able to get into the Admin CP, remove or disable the AndyB add-on and remove the above line from Config to get everything working.
     
    Sunka likes this.

Share This Page