修改产品信息报错,实际上是修改成功了的 Page: 404 !!!! ,页面找不到 /catalog/productinfo/managereditsave,,请先建立相应的module/controller/action,再访问该URL
http://www.fecshop.com/topic/624
报错信息写道title里面
@Fecshop #1楼 已更改
1.这个是后台的csrf安全机制的报错
2.如果你开了多个后台窗口,将会出现这个问题
3.出现这个问题的时候,将浏览器后台页面刷新一下,重新访问即可
我在后台对产品增删改都报这个错,怎么办
@qwzjoyr #4楼 测试了一下,不存在你说的这个问题。
第一次搭建,可以用linux宝塔搭建,可以屏蔽很多环境导致的问题
然后再慢慢研究环境。
Http status: 500 Internal Server Error ajaxOptions: error thrownError: Internal Server Error Exception 'XSErrorException' with message 'fsockopen(): unable to connect to xunsearch:8383 (Connection refused)' in /data/wwwroot/feccard/vendor/hightman/xunsearch/lib/XS.class.php:711 Stack trace: #0 [internal function]: xsErrorHandler(2, 'fsockopen(): un...', '/data/wwwroot/f...', 476, Array) #1 /data/wwwroot/feccard/vendor/hightman/xunsearch/lib/XSServer.class.php(476): fsockopen('xunsearch', 8383, 111, 'Connection refu...', 5) #2 /data/wwwroot/feccard/vendor/hightman/xunsearch/lib/XSServer.class.php(172): XSServer->connect() #3 /data/wwwroot/feccard/vendor/hightman/xunsearch/lib/XSServer.class.php(147): XSServer->open('xunsearch:8383') #4 /data/wwwroot/feccard/vendor/hightman/xunsearch/lib/XS.class.php(415): XSServer->__construct('xunsearch:8383', Object(XS)) #5 /data/wwwroot/feccard/vendor/hightman/xunsearch/lib/XS.class.php(186): XS->getIndex() #6 /data/wwwroot/feccard/vendor/hightman/xunsearch/wrapper/yii2-ext/Database.php(83): XSComponent->__get('index') #7 /data/wwwroot/feccard/vendor/hightman/xunsearch/wrapper/yii2-ext/ActiveRecord.php(297): hightman\xunsearch\Database->getIndex() #8 /data/wwwroot/feccard/vendor/yiisoft/yii2/db/BaseActiveRecord.php(670): hightman\xunsearch\ActiveRecord->insert(true, NULL) #9 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/services/helper/AR.php(108): yii\db\BaseActiveRecord->save() #10 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/services/search/XunSearch.php(85): fecshop\services\helper\AR->save(Object(fecshop\models\xunsearch\Search), Array, true) #11 [internal function]: fecshop\services\search\XunSearch->actionSyncProductInfo(Array, 20) #12 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/services/Service.php(54): call_user_func_array(Array, Array) #13 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/services/Search.php(63): fecshop\services\Service->__call('syncProductInfo', Array) #14 [internal function]: fecshop\services\Search->actionSyncProductInfo(Array) #15 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/services/Service.php(54): call_user_func_array(Array, Array) #16 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/services/product/ProductMongodb.php(344): fecshop\services\Service->__call('syncProductInfo', Array) #17 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/services/Product.php(381): fecshop\services\product\ProductMongodb->save(Array, '/17136974') #18 [internal function]: fecshop\services\Product->actionSave(Array, 'catalog/product...') #19 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/services/Service.php(54): call_user_func_array(Array, Array) #20 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/app/appadmin/modules/Catalog/block/productinfo/Manageredit.php(408): fecshop\services\Service->__call('save', Array) #21 /data/wwwroot/feccard/vendor/fancyecommerce/fecshop/app/appadmin/modules/Catalog/controllers/ProductinfoController.php(91): fecshop\app\appadmin\modules\Catalog\block\productinfo\Manageredit->save() #22 [internal function]: fecshop\app\appadmin\modules\Catalog\controllers\ProductinfoController->actionManagereditsave() #23 /data/wwwroot/feccard/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #24 /data/wwwroot/feccard/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #25 /data/wwwroot/feccard/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('managereditsave', Array)
我这边出现类似的问题是因为xunsearch没启动
注意打开这个就可以进行调试 defined('YII_DEBUG') or define('YII_DEBUG', false); defined('YII_ENV') or define('YII_ENV', 'prod');