magento2常见问题
yuanzelin8
yuanzelin8
展开
-
magneto2错误提示Warning Invalid argument supplied for foreach() 的解决方法
问题:php下foreach()错误提示Warning: Invalid argument supplied for foreach()Warning: Invalid argument supplied for foreach() in /www/wwwroot/m2.xxx.com/app/code/Zemez/ThemeOptions/Helper/ColorScheme.php 102解决办法:错误提示 Warning:Invalid argument supplied for fo原创 2021-01-11 17:19:30 · 3457 阅读 · 0 评论 -
magento2 system.log 错误处理
第一个问题:main.ERROR: Warning: session_start(): Failed to read session data: user (path: /www/wwwroot/www.broadout.com/var/session/) in /www/wwwroot/www.broadout.com/vendor/magento/framework/Session/SessionManager.php on line 206解决办法:错误:警告:session_start(原创 2020-11-26 18:22:38 · 624 阅读 · 0 评论 -
windows在php7.3下安装magento2.4报错问题处理
一、Invalid template file: 'D:/wwwroot/magento1.broadout.com/vendor/magento/module-theme/view/frontend/templates/page/js/require_js.phtml' in module: '' block's name: 'require.js'1 exception(s):Exception #0 (Magento\Framework\Exception\ValidatorException原创 2020-09-22 11:00:27 · 1103 阅读 · 0 评论 -
ON DELETE CASCADE update a parent row aforeign key constraint fails
DROP TABLE IF EXISTS `triallist`;CREATE TABLE `triallist` ( `triallist_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'Triallist ID', `customer_id` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Customer ID', `shared` smallint(5) unsigned...原创 2020-07-15 13:50:06 · 184 阅读 · 0 评论 -
magento2后台订单状态显示P
payment reviewWebsite Payments Pro Hosted Solution支付完成之后,后台的订单状态应该是processing,这说明订单已经确认收款了,但却出现payment review,这时需要到登录paypal商家帐号,在收到的订单中点确认收款,然后magento2的订单才会转为processing。在案例中可能有两个原因:在sandbox帐号里有Payment Review选择,这个需要设为No 可能你的项目中使用的支付货币是英磅,而商家帐号默认是港币..原创 2020-07-06 15:15:16 · 823 阅读 · 0 评论 -
如何从Magento 2中的URL中删除SID(会话ID)
如何从Magento 2(前端)中的URL中删除会话ID。这是SIDURL中的查询参数。例如:https://example.com/contact/?SID = sfl317buq8ru4uf4a ...从2.3.3https://github.com/magento/magento2/issues/25663开始删除转到商店>配置>常规> Web>会话验证设置>在店面中使用SID并将其值设置为否SID是“会话ID”。Magento使用它来跟踪用户在同一M..原创 2020-06-24 11:00:49 · 337 阅读 · 0 评论 -
Warning!symlink() has been disabled for security reasons
A symlink for "/www/wwwroot/www.atepaoutdoors.com/lib/web/mage/requirejs/mixins.js" can't be created and placed to "/www/wwwroot/www.atepaoutdoors.com/pub/static/frontend/Zemez/theme115/en_US/mage/requirejs/mixins.js". Warning!symlink() has been disabled .原创 2020-06-24 10:56:38 · 1087 阅读 · 0 评论 -
magento2.3.2 用户支付成功后台没有生成订单 丢单问题处理
tail -f 实时查看日志文件 tail -f 日志文件logtail - 100f 实时查看日志文件 后一百行tail -f -n 100 catalina.out linux查看日志后100行搜寻字符串grep ‘搜寻字符串’ filename按ctrl+c 退出原创 2020-07-06 15:28:49 · 2179 阅读 · 0 评论 -
AH01075: Error dispatching request to
AH01075: Error dispatching request to[proxy_fcgi:error] [pid 10550:tid 139819984324352] [client 108.162.215.94:42834] AH01067: Failed to read FastCGI header[proxy_fcgi:error] [pid 10550:tid 139819984324352] (104)Connection reset by peer: [client 108.16原创 2020-06-20 11:25:44 · 4062 阅读 · 0 评论 -
magento2中PHP 警告 Warning: Unknown: Input variables exceeded 1000. 解决方法
警告全文是这样的:AH01071: Got error 'PHP message: PHP Warning: Unknown: Input variables exceeded 1000. To increase the limit change max_input_vars in php.ini. in Unknown on line 0\n'意思就是输入(提交)的变量超过默认1000个了,如果需要变更限制,戳开php.ini搜索max_input_vars,把前面的分号;...原创 2020-06-20 09:32:30 · 314 阅读 · 0 评论 -
magento2 Fatal error: Uncaught Error: Call to a member function setActive() on boolean in
本地运行php bin/magento setup:upgradephp bin/magento setup:di:compilephp bin/magento setup:static-content:deploy -f出现如下问题Fatal error: Uncaught Error: Call to a member function setActive() on boolean in /var/www/html/vendor/magento/module-backend/Model.原创 2020-06-17 12:09:23 · 1736 阅读 · 0 评论 -
Magento2 配置完HTTPS后突然登录不了了
问题现象:Magento2 加了HTTPS的配置,然后后台输入用户名密码提交后,不提示任何错误,又返回到了登录的初始状态中。直接清理浏览器缓存后再登陆或换个新浏览器就可以登陆了数据库配置SSL配置...原创 2020-06-03 16:27:53 · 446 阅读 · 0 评论