Mình chạy trên localhost thì rất ok nhưng khi đưa lên host thì bị lỗi này PHP: An exception occurred: Mysqli prepare error: Table 'freev_13754127_xf.EWRporta_layouts' doesn't exist in /home/vol8_2/freevnn.com/freev_13754127/htdocs/library/Zend/Db/Statement/Mysqli.php on line 77Zend_Db_Statement_Mysqli->_prepare() in Zend/Db/Statement.php at line 115Zend_Db_Statement->__construct() in Zend/Db/Adapter/Mysqli.php at line 381Zend_Db_Adapter_Mysqli->prepare() in Zend/Db/Adapter/Abstract.php at line 478Zend_Db_Adapter_Abstract->query() in Zend/Db/Adapter/Abstract.php at line 753Zend_Db_Adapter_Abstract->fetchRow() in EWRporta/Model/Layouts.php at line 16EWRporta_Model_Layouts->getLayoutById() in EWRporta/Model/Blocks.php at line 29EWRporta_Model_Blocks->getBlocks() in EWRporta/ViewPublic/Custom.php at line 18EWRporta_ViewPublic_Custom->renderHtml() in XenForo/ViewRenderer/Abstract.php at line 227XenForo_ViewRenderer_Abstract->renderViewObject() in XenForo/ViewRenderer/HtmlPublic.php at line 67XenForo_ViewRenderer_HtmlPublic->renderView() in XenForo/FrontController.php at line 572XenForo_FrontController->renderView() in XenForo/FrontController.php at line 158XenForo_FrontController->run() in /home/vol8_2/freevnn.com/freev_13754127/htdocs/index.php at line 13 ko biết sửa thế nào ae giúp mình với, tks all
Lỗi này là do table "freev_13754127_xf.EWRporta_layouts" không tồn tại. Thực chất thì nó vẫn tồn tại nhưng đưa lên host thì chữ "EWR" đang là Viết Hoa nó thành viết thường nên diễn đàn báo lỗi. Bạn chỉ cần vào phpmyadmin đổi tên table là ok. Chú ý đổi hết tất cả các table có cụm từ "ewr" viết thường thành viết hoa. Chúc bạn thành công