Questions tagged «error»

有关PHP错误消息和错误日志的问题

3
在magento2中创建自定义模块显示致命错误
我正在magento 2中创建自定义模块,但无法正常工作。你能建议我哪里出问题了吗? 我的模块代码: app / etc / config.php: 'modules' => array ( 'Ramesh_Sample' => 1, ), app / code / Ramesh / Sample / etc / module.xml <?xml version="1.0"?> <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd"> <module name="Ramesh_Sample" schema_version="2.0.0"> </module> </config> app / code / Ramesh / Sample / etc / frontend / routes.xml …

3
Magento 1.9.0.1 Paypal错误购物车项目金额总计与订单金额不符(#10413:
是使用magento 1.9.0.1集成了box expres paypal,除此之外,您还拥有插件pro奖励积分作为购买一些产品的奖励积分,当它成为集成产品并在不使用recompesa积分的情况下购买产品时,通过paypal付款nigun可以毫无问题地完成,但是当客户使用奖励积分时,确认订单时会出错,这是 PayPal的网关拒绝了该请求。购物车项目的总计金额不匹配订单(#10413:由于参数无效而导致交易被拒绝。有关详细信息,请参见其他错误消息。) 搜索网络以尝试解决此错误,我建议您可以修改文件Nav.php paypal,并添加以下两个代码: 第一个代码 //开始 $totalValue = $request['TAXAMT'] + $request['ITEMAMT']; $finalValue = $totalValue - $request['AMT']; if($request['SHIPPINGAMT'] > 0) { $request['SHIPPINGAMT'] = ($request['AMT'] - ($request['TAXAMT'] + $request['ITEMAMT'])); $totalValue = $request['TAXAMT'] + $request['ITEMAMT'] + $request['SHIPPINGAMT']; $finalValue = $totalValue - $request['AMT']; } if($request['AMT'] != $totalValue) { if($totalValue > $request['AMT']) …
9 error  paypal 


5
MySQL访问被拒绝错误
我有一个常见的问题,但是通常的解决方案都无法正常工作,因此对于首次出现的问题表示歉意。 尝试在本地查看我的网站时出现以下错误 Access denied for user 'sitename'@'localhost' (using password: YES) 凭据使用有误,但我不知道它们来自何处。我已经检查了app / etc / local.xml,它具有所有正确的凭据。我已经从目录(config.xml除外)中删除了所有其他xml文件。我已删除var文件夹的内容(无数次) 我在本地工作其他magento网站,因此服务器设置应该可以。我真的为此感到困惑,不知道下一步该怎么做。任何帮助,将不胜感激。
9 database  error  mysql 

14
Magento迁移产品错误:UiComponentFactory-> argumentsResolver('created_by',NULL)
我正在尝试使用data-migration-tool将我的Magento 1.9.3.4迁移到Magento 2.2.2。 我做到了,商店在本地主机上工作了;我有客户,销售,静态页面和产品。 当我尝试编辑一种产品时,我收到此致命错误: 致命错误:未捕获的TypeError:传递给Magento \ Framework \ View \ Element \ UiComponentFactory :: argumentsResolver()的参数2必须为数组类型,给定为null,在D:\ xampp \ htdocs \ magento2 \ vendor \ magento \ framework中调用212行上的\ View \ Element \ UiComponentFactory.php,并在D:\ xampp \ htdocs \ magento2 \ vendor \ magento \ framework \ View \ Element \ UiComponentFactory.php:164中定义:堆栈跟踪: 0 …

1
magento2的编译中上下文对象中已经存在不正确的依赖项ScopeConfigInterface
<?php /** * Copyright © 2015 Magento. All rights reserved. * See COPYING.txt for license details. */ namespace Ortho\Featuredproduct\Helper; use Magento\Framework\App\Helper\AbstractHelper; /** * Search helper */ class Data extends AbstractHelper { /** * @var \Magento\Framework\App\Config\ScopeConfigInterfac */ protected $_scopeConfig; protected $_config; protected $_storeManager; protected $_productFactory; CONST FEATURED_ENABLE = 'featured_settings/general/isenable'; CONST FEATURED_TITLE …


1
是什么导致以下错误:警告:字符串偏移量'is_in_stock'非法…在第87行的AdvancedInventory.php
在模块开发期间,我一直在编写一个插件,该插件在加载产品选项集合之前会对其进行修改(添加描述字段)。就这个: 等/ di.xml <type name="Magento\Catalog\Model\ResourceModel\Product\Option\Collection"> <plugin name="addOptionDescription" type="Vendor\Module\Plugin\Product\Option\Collection" sortOrder="10" disabled="false"/> </type> 码: <?php namespace Vendor\Module\Plugin\Product\Option; use Vendor\Module\Model\OptionDescription; use Magento\Catalog\Model\ResourceModel\Product\Option\Collection as OptionCollection; class Collection { /** * @var \Vendor\Module\Helper\Data */ protected $helper; public function __construct( \Vendor\Module\Helper\Data $helper ) { $this->helper = $helper; } /** * @param OptionCollection $subject * @param bool …

6
Magento 1.9.2.1 SUPEE-7405管理员无法正常工作
我今天从该站点通过FTP安装了新补丁-SUPEE-7405。 https://magentary.com/kb/install-supee-7405-without-ssh/ 现在,看来我的前端存储仍在工作,但是当我尝试登录/ admin时,它会将我带到登录名/密码页面...登录后,我得到一个错误。 Invalid method Mage_Core_Model_Session::validateFormKey(Array ( [0] => y6h9TjgvchV8hCZT ) ) Trace: #0 /home/a0cegcom/public_html/app/code/core/Mage/Admin/Model/Observer.php(73): Varien_Object->__call('validateFormKey', Array) #1 /home/a0cegcom/public_html/app/code/core/Mage/Admin/Model/Observer.php(73): Mage_Core_Model_Session->validateFormKey('y6h9TjgvchV8hCZ...') #2 /home/a0cegcom/public_html/app/code/core/Mage/Core/Model/App.php(1357): Mage_Admin_Model_Observer->actionPreDispatchAdmin(Object(Varien_Event_Observer)) #3 /home/a0cegcom/public_html/app/code/core/Mage/Core/Model/App.php(1336): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Admin_Model_Observer), 'actionPreDispat...', Object(Varien_Event_Observer)) #4 /home/a0cegcom/public_html/app/Mage.php(448): Mage_Core_Model_App->dispatchEvent('controller_acti...', Array) #5 /home/a0cegcom/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(527): Mage::dispatchEvent('controller_acti...', Array) #6 /home/a0cegcom/public_html/app/code/core/Mage/Adminhtml/Controller/Action.php(160): Mage_Core_Controller_Varien_Action->preDispatch() #7 /home/a0cegcom/public_html/app/code/core/Mage/Core/Controller/Varien/Action.php(407): Mage_Adminhtml_Controller_Action->preDispatch() #8 /home/a0cegcom/public_html/app/code/core/Mage/Core/Controller/Varien/Router/Standard.php(254): Mage_Core_Controller_Varien_Action->dispatch('index') #9 /home/a0cegcom/public_html/app/code/core/Mage/Core/Controller/Varien/Front.php(172): Mage_Core_Controller_Varien_Router_Standard->match(Object(Mage_Core_Controller_Request_Http)) #10 …


2
错误日志中的“ SQLSTATE [HY000] [2002]没有这样的文件或目录”是什么意思?
该页面刚刚开始出现: 处理您的请求时出错 a:4:{i:0;s:48:"SQLSTATE[HY000] [2002] No such file or directory";i:1;s:2075:"#0 /home/dtacolle/public_html/lib/Zend/Db/Adapter/Pdo/Mysql.php(96): Zend_Db_Adapter_Pdo_Abstract->_connect() #1 /home/dtacolle/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(313): Zend_Db_Adapter_Pdo_Mysql->_connect() #2 /home/dtacolle/public_html/lib/Zend/Db/Adapter/Abstract.php(459): Varien_Db_Adapter_Pdo_Mysql->_connect() #3 /home/dtacolle/public_html/lib/Zend/Db/Adapter/Pdo/Abstract.php(238): Zend_Db_Adapter_Abstract->query('SET NAMES utf8', Array) #4 /home/dtacolle/public_html/lib/Varien/Db/Adapter/Pdo/Mysql.php(419): Zend_Db_Adapter_Pdo_Abstract->query('SET NAMES utf8', Array) #5 /home/dtacolle/public_html/app/code/core/Mage/Core/Model/Resource.php(169): Varien_Db_Adapter_Pdo_Mysql->query('SET NAMES utf8') #6 /home/dtacolle/public_html/app/code/core/Mage/Core/Model/Resource.php(110): Mage_Core_Model_Resource->_newConnection('pdo_mysql', Object(Mage_Core_Model_Config_Element)) #7 /home/dtacolle/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(320): Mage_Core_Model_Resource->getConnection('core_write') #8 /home/dtacolle/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(350): Mage_Core_Model_Resource_Db_Abstract->_getConnection('write') #9 /home/dtacolle/public_html/app/code/core/Mage/Core/Model/Resource/Db/Abstract.php(335): Mage_Core_Model_Resource_Db_Abstract->_getWriteAdapter() #10 /home/dtacolle/public_html/app/code/core/Mage/Core/Model/Resource/Config.php(55): Mage_Core_Model_Resource_Db_Abstract->_getReadAdapter() …

3
Cron使MySQL崩溃
转移到新服务器后,我每天收到一次MySQL crash [1]问题,这是我收到的电子邮件,烦人的是,其潜在的影响是。关于如何调试此问题的任何提示? 显然崩溃发生了,$schedule->save()所以我尝试用try ... catch来包装它,但这没有帮助 SQLSTATE[HY000]: General error: 2006 MySQL server has gone away Trace: #0 /var/www/vhosts/site/store/lib/Zend/Db/Adapter/Pdo/Abstract.php(305): PDO->beginTransaction() #1 /var/www/vhosts/site/store/lib/Zend/Db/Adapter/Abstract.php(495): Zend_Db_Adapter_Pdo_Abstract->_beginTransaction() #2 /var/www/vhosts/site/store/lib/Varien/Db/Adapter/Pdo/Mysql.php(219): Zend_Db_Adapter_Abstract->beginTransaction() #3 /var/www/vhosts/site/store/app/code/core/Mage/Core/Model/Resource/Abstract.php(76): Varien_Db_Adapter_Pdo_Mysql->beginTransaction() #4 /var/www/vhosts/site/store/app/code/core/Mage/Core/Model/Abstract.php(313): Mage_Core_Model_Resource_Abstract->beginTransaction() #5 /var/www/vhosts/site/store/app/code/core/Mage/Cron/Model/Observer.php(125): Mage_Core_Model_Abstract->save() #6 /var/www/vhosts/site/store/app/code/core/Mage/Core/Model/App.php(1338): Mage_Cron_Model_Observer->dispatch(Object(Varien_Event_Observer)) #7 /var/www/vhosts/site/store/app/code/core/Mage/Core/Model/App.php(1317): Mage_Core_Model_App->_callObserverMethod(Object(Mage_Cron_Model_Observer), 'dispatch', Object(Varien_Event_Observer)) #8 /var/www/vhosts/site/store/app/Mage.php(447): Mage_Core_Model_App->dispatchEvent('default', Array) #9 /var/www/vhosts/site/store/cron.php(46): Mage::dispatchEvent('default') #10 …
8 database  error 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.