Question Cần giúp lỗi Database !!!

Thảo luận trong 'Troubleshoot & Other Questions' bắt đầu bởi hieukd94, 17/11/15.

  1. hieukd94

    hieukd94 New Member

    Bài viết:
    1
    Likes :
    0
    Diễn đàn của e đang hoạt động bình thường tự dưng hôm nọ vào thì tự dưng bị lỗi ''An unexpected database error occurred. Please try again later.''
    E bật chế độ Developer nó báo thế này ạ

    An exception occurred: The Mysqli extension is required for this adapter but the extension is not loaded in /home/diendannetvn/public_html/library/Zend/Db/Adapter/Mysqli.php on line 291
    1. Zend_Db_Adapter_Mysqli->_connect() in Zend/Db/Adapter/Abstract.php at line 315
    2. Zend_Db_Adapter_Abstract->getConnection() in XenForo/Application.php at line 727
    3. XenForo_Application->loadDb()
    4. call_user_func_array() in XenForo/Application.php at line 970
    5. XenForo_Application->lazyLoad() in XenForo/Application.php at line 1001
    6. XenForo_Application::get() in XenForo/Application.php at line 1571
    7. XenForo_Application::getDb() in XenForo/Model.php at line 161
    8. XenForo_Model->_getDb() in XenForo/Model/DataRegistry.php at line 138
    9. XenForo_Model_DataRegistry->_getMultiFromDb() in XenForo/Model/DataRegistry.php at line 97
    10. XenForo_Model_DataRegistry->getMulti() in XenForo/Dependencies/Abstract.php at line 147
    11. XenForo_Dependencies_Abstract->preLoadData() in XenForo/FrontController.php at line 127
    12. XenForo_FrontController->run() in /home/diendannetvn/public_html/index.php at line 13
    Còn đây là Mysqli.php line 291 :

    protected function _connect()
    {
    if ($this->_connection) {
    return;
    }
    if (!extension_loaded('mysqli')) {
    /**
    * @see Zend_Db_Adapter_Mysqli_Exception
    */
    require_once 'Zend/Db/Adapter/Mysqli/Exception.php';
    throw new Zend_Db_Adapter_Mysqli_Exception('The Mysqli extension is required for this adapter but the extension is not loaded');
    }
    if (isset($this->_config['port'])) {
    $port = (integer) $this->_config['port'];
    } else {
    $port = null;
    }
    $this->_connection = mysqli_init();
    if(!empty($this->_config['driver_options'])) {
    foreach($this->_config['driver_options'] as $option=>$value) {
    if(is_string($option)) {
    // Suppress warnings here
    // Ignore it if it's not a valid constant
    $option = @constant(strtoupper($option));
    if($option === null)
    continue;
    }
    mysqli_options($this->_connection, $option, $value);
    }
    }

    các pro vào giúp e với ạ ,e đã upload lại database và source những vẫn bị lỗi này

     
    Đang tải...
  2. layer

    layer Verified User

    Bài viết:
    22
    Likes :
    5
    Bạn restart mysql lai đi
     
comments powered by Disqus

Chia sẻ trang này

Đang tải...