【问题标题】:Magento Error : SQLSTATE[42S02]: Base table or view not found: 1146 Table 'shoukatt_mgnt1.captcha_log' doesn't existMagento 错误:SQLSTATE [42S02]:未找到基表或视图:1146 表 'shoukatt_mgnt1.captcha_log' 不存在
【发布时间】:2014-05-27 15:54:42
【问题描述】:

我是 Magento 的新手,没有太多的编码想法。 我安装了 Magento,然后用一个新的 sql 文件安装了我的示例数据,这使我的 Magento 管理面板的用户名和密码消失了,所以我通过 sql 数据库创建了我的用户名和密码。

但是现在当我登录管理面板时,我收到类似这样的错误“Magento:出于安全原因,默认情况下禁用异常打印”。但是当我刷新页面时,我可以访问我的管理面板

我在 var/errors 中打开了我收到的错误代码并将其更改为 xml 文件。

我提到了这个文件中写的每一件事,请任何人帮助我,否则我将不得不再次安装 magento,并且会丢失我的所有数据和配置

a:5:{i:0;s:100:"
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'shoukatt_mgnt1.captcha_log' doesn't exist";i:1;s:3388:"
#0 /home4/shoukatt/public_html/mag/includes/src/Varien_Db_Statement_Pdo_Mysql.php(110): Zend_Db_Statement_Pdo->_execute(Array)
#1 /home4/shoukatt/public_html/mag/includes/src/__default.php(63012): Varien_Db_Statement_Pdo_Mysql->_execute(Array)
#2 /home4/shoukatt/public_html/mag/includes/src/__default.php(52694): Zend_Db_Statement->execute(Array)
#3 /home4/shoukatt/public_html/mag/includes/src/__default.php(53730): Zend_Db_Adapter_Abstract->query('DELETE FROM `ca...', Array)
#4 /home4/shoukatt/public_html/mag/includes/src/__default.php(54566): Zend_Db_Adapter_Pdo_Abstract->query('DELETE FROM `ca...', Array)
#5 /home4/shoukatt/public_html/mag/includes/src/__default.php(52876): Varien_Db_Adapter_Pdo_Mysql->query('DELETE FROM `ca...')
#6 /home4/shoukatt/public_html/mag/includes/src/Mage_Captcha_Model_Resource_Log.php(100): Zend_Db_Adapter_Abstract->delete('captcha_log', Array)
#7 /home4/shoukatt/public_html/mag/includes/src/Mage_Captcha_Model_Observer.php(276): Mage_Captcha_Model_Resource_Log->deleteUserAttempts('usman')
#8 /home4/shoukatt/public_html/mag/includes/src/Mage_Captcha_Model_Observer.php(233): Mage_Captcha_Model_Observer->_resetAttempt('usman')
#9 /home4/shoukatt/public_html/mag/includes/src/__default.php(21045): Mage_Captcha_Model_Observer->resetAttemptForBackend(Object(Varien_Event_Observer))
#10 /home4/shoukatt/public_html/mag/includes/src/__default.php(21024): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Captcha_Model_Observer), 'resetAttemptFor...', Object(Varien_Event_Observer))
#11 /home4/shoukatt/public_html/mag/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('admin_session_u...', Array)
#12 /home4/shoukatt/public_html/mag/includes/src/Mage_Admin_Model_Session.php(104): Mage::dispatchEvent('admin_session_u...', Array)
#13 /home4/shoukatt/public_html/mag/includes/src/Mage_Admin_Model_Observer.php(69): Mage_Admin_Model_Session->login('usman', '86288844', Object(Mage_Core_Controller_Request_Http))
#14 /home4/shoukatt/public_html/mag/includes/src/__default.php(21045): Mage_Admin_Model_Observer->actionPreDispatchAdmin(Object(Varien_Event_Observer))
#15 /home4/shoukatt/public_html/mag/includes/src/__default.php(21024): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Admin_Model_Observer), 'actionPreDispat...', Object(Varien_Event_Observer))
#16 /home4/shoukatt/public_html/mag/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array)
#17 /home4/shoukatt/public_html/mag/includes/src/__default.php(13691): Mage::dispatchEvent('controller_acti...', Array)
#18 /home4/shoukatt/public_html/mag/includes/src/Mage_Adminhtml_Controller_Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch()
#19 /home4/shoukatt/public_html/mag/includes/src/__default.php(13571): Mage_Adminhtml_Controller_Action->preDispatch()
#20 /home4/shoukatt/public_html/mag/includes/src/__default.php(17927): Mage_Core_Controller_Varien_Action->dispatch('index')
#21 /home4/shoukatt/public_html/mag/includes/src/__default.php(17484): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http))
#22 /home4/shoukatt/public_html/mag/includes/src/__default.php(20061): Mage_Core_Controller_Varien_Front->dispatch()
#23 /home4/shoukatt/public_html/mag/app/Mage.php(683): Mage_Core_Model_App->run(Array)
#24 /home4/shoukatt/public_html/mag/index.php(87): Mage::run('', 'store')
#25 {main}";s:3:"url";s:6:"/admin";s:11:"script_name";s:10:"/index.php";s:4:"skin";s:5:"admin";}

【问题讨论】:

    标签: php mysql .htaccess magento error-handling


    【解决方案1】:

    错误告诉你问题到底出在哪里。

    Base table or view not found: 1146 Table 'shoukatt_mgnt1.captcha_log' doesn't exist
    

    一个扩展程序正在尝试将表 shoukatt_mgnt1 加载到您的数据库中,但由于它不存在,所以它失败了。您要么必须恢复表,要么重新安装扩展以重新创建表。

    【讨论】:

      【解决方案2】:

      要在屏幕上打印错误,将magento_root/errors/ 中的local.xml.sample 文件重命名为local.xml

      这些设置允许在屏幕上打印错误。

      【讨论】:

      • 将此更改保留在实时 Magento 电子商务服务器上是违反 PCI 的,因为让访问该站点的任何人都可以看到堆栈跟踪会打开一个安全漏洞。去看看文件吧……
      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-12-22
      • 2018-04-19
      相关资源
      最近更新 更多