fecshop手机端切换语言时出现An internal server error occurred.是我配置问题吗?

问题咨询 · Novice · 于 6年前 发布 · 3749 次阅读

共收到 11 条回复
Fecmall#16年前 0 个赞

你是product生产模式,你打开develop模式查看下报错,具体打开方式查看:

http://www.fecshop.com/topic/265

Novice#26年前 0 个赞

我切换了develop模式,没看到报错。

Fecmall#36年前 0 个赞

index.php文件很多的,你要找到对应的index.php文件,参考这个:

http://www.fecshop.com/topic/268

4楼 已删除.
5楼 已删除.
6楼 已删除.
Novice#76年前 0 个赞

An Error occurred while handling another error: exception 'ReflectionException' with message 'Method fecshop\services\page\Asset::register() does not exist' in /www/web/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php:195 Stack trace: #0 /www/web/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(195): ReflectionMethod->construct('fecshop\service...', 'register') #1 /www/web/fecshop/vendor/yiisoft/yii2/views/errorHandler/callStackItem.php(26): yii\web\ErrorHandler->addTypeLinks('fecshop\service...') #2 /www/web/fecshop/vendor/yiisoft/yii2/base/View.php(330): require('/www/web/fecsho...') #3 /www/web/fecshop/vendor/yiisoft/yii2/base/View.php(250): yii\base\View->renderPhpFile('/www/web/fecsho...', Array) #4 /www/web/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(249): yii\base\View->renderFile('@yii/views/erro...', Array, Object(yii\web\ErrorHandler)) #5 /www/web/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(304): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array) #6 /www/web/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(326): yii\web\ErrorHandler->renderCallStackItem('/www/web/fecsho...', 39, 'fecshop\service...', 'register', Array, 15) #7 /www/web/fecshop/vendor/yiisoft/yii2/views/errorHandler/exception.php(381): yii\web\ErrorHandler->renderCallStack(Object(yii\base\InvalidConfigException)) #8 /www/web/fecshop/vendor/yiisoft/yii2/base/View.php(330): require('/www/web/fecsho...') #9 /www/web/fecshop/vendor/yiisoft/yii2/base/View.php(250): yii\base\View->renderPhpFile('/www/web/fecsho...', Array) #10 /www/web/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(249): yii\base\View->renderFile('@yii/views/erro...', Array, Object(yii\web\ErrorHandler)) #11 /www/web/fecshop/vendor/yiisoft/yii2/web/ErrorHandler.php(116): yii\web\ErrorHandler->renderFile('@yii/views/erro...', Array) #12 /www/web/fecshop/vendor/yiisoft/yii2/base/ErrorHandler.php(111): yii\web\ErrorHandler->renderException(Object(yii\base\InvalidConfigException)) #13 [internal function]: yii\base\ErrorHandler->handleException(Object(yii\base\InvalidConfigException)) #14 {main} Previous exception: exception 'yii\base\InvalidConfigException' with message 'The directory is not writable by the Web process: /www/web/fecshop/apphtml5/web/cn/assets' in /www/web/fecshop/vendor/yiisoft/yii2/web/AssetManager.php:215 Stack trace: #0 /www/web/fecshop/vendor/yiisoft/yii2/base/Object.php(107): yii\web\AssetManager->init() #1 [internal function]: yii\base\Object->construct(Array) #2 /www/web/fecshop/vendor/yiisoft/yii2/di/Container.php(381): ReflectionClass->newInstanceArgs(Array) #3 /www/web/fecshop/vendor/yiisoft/yii2/di/Container.php(156): yii\di\Container->build('yii\web\AssetMa...', Array, Array) #4 /www/web/fecshop/vendor/yiisoft/yii2/BaseYii.php(348): yii\di\Container->get('yii\web\AssetMa...', Array, Array) #5 /www/web/fecshop/vendor/yiisoft/yii2/di/ServiceLocator.php(135): yii\BaseYii::createObject(Array) #6 /www/web/fecshop/vendor/yiisoft/yii2/base/Application.php(605): yii\di\ServiceLocator->get('assetManager') #7 /www/web/fecshop/vendor/yiisoft/yii2/web/View.php(225): yii\base\Application->getAssetManager() #8 /www/web/fecshop/vendor/yiisoft/yii2/base/Component.php(132): yii\web\View->getAssetManager() #9 /www/web/fecshop/vendor/fancyecommerce/fecshop/services/page/Asset.php(90): yii\base\Component->__get('assetManager') #10 [internal function]: fecshop\services\page\Asset->actionRegister(Object(yii\web\View)) #11 /www/web/fecshop/vendor/fancyecommerce/fecshop/services/Service.php(49): call_user_func_array(Array, Array) #12 /www/web/fecshop/vendor/fancyecommerce/fecshop/app/appfront/theme/base/front/layouts/home.php(39): fecshop\services\Service->__call('register', Array) #13 /www/web/fecshop/vendor/fancyecommerce/fecshop/app/appfront/theme/base/front/layouts/home.php(39): fecshop\services\page\Asset->register(Object(yii\web\View)) #14 /www/web/fecshop/vendor/yiisoft/yii2/base/View.php(330): require('/www/web/fecsho...') #15 /www/web/fecshop/vendor/yiisoft/yii2/base/View.php(250): yii\base\View->renderPhpFile('/www/web/fecsho...', Array) #16 /www/web/fecshop/vendor/yiisoft/yii2/base/Controller.php(396): yii\base\View->renderFile('/www/web/fecsho...', Array, Object(fecshop\app\appfront\modules\Cms\controllers\HomeController)) #17 /www/web/fecshop/vendor/fancyecommerce/fecshop/app/appfront/modules/AppfrontController.php(98): yii\base\Controller->renderContent('

Fecmall#86年前 0 个赞

无脑粘贴,有报错自己不看,还贴上来,鄙视!样式这么乱也不调整,继续鄙视!!!

自己看报错信息,我给你弄出来了

The directory is not writable by the Web process: /www/web/fecshop/apphtml5/web/cn/assets
Novice#96年前 0 个赞

谢谢

Novice#106年前 0 个赞

这个本地模板路径我定义的是apphtml5的模板,手机端跳转的页面却和appfront的模板一样,哪里还需要配置请教一下

Fecmall#116年前 0 个赞

@apphtml/config/fecshop_local_services/Store.php

Novice#126年前 0 个赞

我是配置的@apphtml/config/fecshop_local_services/Store.php这个文件,我想请教的是我跳转的url没问题,本地配置的模板路径也没问题,为什么跳转的中文页面却是appfront的模板了

Novice#136年前 0 个赞

是还有哪个地方需要配置吗

Fecmall#146年前 0 个赞

@Novice #12楼 自己解决吧,配置的问题,自己去梳理解决,我只能给你思路。

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