后台(appadmin)保存分类报错 'Call to undefined function fecshop\services\iconv()'

bug问题 · pjzero · 于 10天前 发布 · 59 次阅读

登录到后台管理界面后,选择添加分类,填写好必要的信息后点击保存分类结果。界面弹出如下的错误信息:

Http status: 500 Internal Server Error
ajaxOptions: error
thrownError: Internal Server Error
Exception 'Error' with message 'Call to undefined function fecshop\services\iconv()' 

in /home/pj/project/microsApps/fecshop/vendor/fancyecommerce/fecshop/services/Url.php:359

Stack trace:
#0 /home/pj/project/microsApps/fecshop/vendor/fancyecommerce/fecshop/services/Url.php(73): fecshop\services\Url->generateUrlByName('\xE6\xB5\x8B\xE8\xAF\x95\xE4\xBA\xA7\xE5\x93\x81')
#1 [internal function]: fecshop\services\Url->actionSaveRewriteUrlKeyByStr('\xE6\xB5\x8B\xE8\xAF\x95\xE4\xBA\xA7\xE5\x93\x81', '/catalog/catego...', '')
#2 /home/pj/project/microsApps/fecshop/vendor/fancyecommerce/fecshop/services/Service.php(49): call_user_func_array(Array, Array)
#3 /home/pj/project/microsApps/fecshop/vendor/fancyecommerce/fecshop/services/category/CategoryMongodb.php(167): fecshop\services\Service->__call('saveRewriteUrlK...', Array)
#4 /home/pj/project/microsApps/fecshop/vendor/fancyecommerce/fecshop/services/Category.php(144): fecshop\services\category\CategoryMongodb->save(Array, '')
#5 [internal function]: fecshop\services\Category->actionSave(Array, 'catalog/categor...')
#6 /home/pj/project/microsApps/fecshop/vendor/fancyecommerce/fecshop/services/Service.php(49): call_user_func_array(Array, Array)
#7 /home/pj/project/microsApps/fecshop/vendor/fancyecommerce/fecshop/app/appadmin/modules/Catalog/block/category/Index.php(141): fecshop\services\Service->__call('save', Array)
#8 /home/pj/project/microsApps/fecshop/vendor/fancyecommerce/fecshop/app/appadmin/modules/Catalog/block/category/Index.php(177): fecshop\app\appadmin\modules\Catalog\block\category\Index->saveCategory()
#9 /home/pj/project/microsApps/fecshop/vendor/fancyecommerce/fecshop/app/appadmin/modules/Catalog/controllers/CategoryController.php(35): fecshop\app\appadmin\modules\Catalog\block\category\Index->getLastData()
#10 [internal function]: fecshop\app\appadmin\modules\Catalog\controllers\CategoryController->actionIndex()
#11 /home/pj/project/microsApps/fecshop/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array)
#12 /home/pj/project/microsApps/fecshop/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array)
#13 /home/pj/project/microsApps/fecshop/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('index', Array)
#14 /home/pj/project/microsApps/fecshop/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('catalog/categor...', Array)
#15 /home/pj/project/microsApps/fecshop/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request))
#16 /home/pj/project/microsApps/fecshop/appadmin/web/index.php(76): yii\base\Application->run()
#17 {main}

其他信息:

共收到 1 条回复 问题提问
pjzero#110天前 1 个赞

解决了,原来是没有开php的扩展(菜鸡脸~

修改php.ini 取消iconv扩展的注释

添加回复 (需要登录)
需要 登录 后方可回复, 如果你还没有账号请点击这里 注册
Your Site Analytics