生成缩略图 提示文件目录不存在

bug问题 · ccpro · 于 5年前 发布 · 2073 次阅读

Yii::$service->product->image->getResize($main_img,[150,150],false) 下面是报错 有的时候会出现 但是根目录权限是777

Exception 'Imagine\Exception\RuntimeException' with message 'imagejpeg(/data/srv/fecshop/appimage/common/media/catalog/product/cache/bd935443df1c50537d4edaab4af5d446/100/100/0/52/0522qws0exoepoe1524905337.jpg): failed to open stream: No such file or directory'

in /data/srv/fecshop/vendor/imagine/imagine/lib/Imagine/Gd/Image.php:697

Stack trace: #0 [internal function]: Imagine\Gd\Image->Imagine\Gd{closure}(2, 'imagejpeg(/data...', '/data/srv/fecsh...', 580, Array) #1 [internal function]: imagejpeg(Resource id #261, '/data/srv/fecsh...') #2 /data/srv/fecshop/vendor/imagine/imagine/lib/Imagine/Gd/Image.php(580): call_user_func_array('imagejpeg', Array) #3 /data/srv/fecshop/vendor/imagine/imagine/lib/Imagine/Gd/Image.php(233): Imagine\Gd\Image->saveOrOutput('jpeg', Array, '/data/srv/fecsh...') #4 /data/srv/fecshop/vendor/fancyecommerce/fec/helpers/CImage.php(140): Imagine\Gd\Image->save('/data/srv/fecsh...') #5 /data/srv/fecshop/vendor/fancyecommerce/fecshop/services/product/Image.php(130): fec\helpers\CImage::saveResizeMiddleWaterImg('/data/srv/fecsh...', '/data/srv/fecsh...', Array, '') #6 [internal function]: fecshop\services\product\Image->actionGetResize('/0/52/0522qws0e...', Array, false) #7 /data/srv/fecshop/vendor/fancyecommerce/fecshop/services/Service.php(49): call_user_func_array(Array, Array) #8 /data/srv/fecshop/vendor/fancyecommerce/fecshop/app/appadmin/theme/base/default/sales/activity/manageredit.php(347): fecshop\services\Service->__call('getResize', Array) #9 /data/srv/fecshop/vendor/yiisoft/yii2/base/View.php(332): require('/data/srv/fecsh...') #10 /data/srv/fecshop/vendor/yiisoft/yii2/base/View.php(250): yii\base\View->renderPhpFile('/data/srv/fecsh...', Array) #11 /data/srv/fecshop/vendor/fancyecommerce/fecshop/app/appadmin/modules/AppadminController.php(64): yii\base\View->renderFile('/data/srv/fecsh...', Array, Object(fecshop\app\appadmin\modules\Sales\controllers\ActivityController)) #12 /data/srv/fecshop/vendor/fancyecommerce/fecshop/app/appadmin/modules/Sales/controllers/ActivityController.php(38): fecshop\app\appadmin\modules\AppadminController->render('manageredit', Array) #13 [internal function]: fecshop\app\appadmin\modules\Sales\controllers\ActivityController->actionManageredit() #14 /data/srv/fecshop/vendor/yiisoft/yii2/base/InlineAction.php(57): call_user_func_array(Array, Array) #15 /data/srv/fecshop/vendor/yiisoft/yii2/base/Controller.php(157): yii\base\InlineAction->runWithParams(Array) #16 /data/srv/fecshop/vendor/yiisoft/yii2/base/Module.php(528): yii\base\Controller->runAction('manageredit', Array) #17 /data/srv/fecshop/vendor/yiisoft/yii2/web/Application.php(103): yii\base\Module->runAction('sales/activity/...', Array) #18 /data/srv/fecshop/vendor/yiisoft/yii2/base/Application.php(386): yii\web\Application->handleRequest(Object(yii\web\Request)) #19 /data/srv/fecshop/appadmin/web/index.php(72): yii\base\Application->run() #20 {main}

共收到 2 条回复
Fecmall#15年前 0 个赞

搜一下,应该有帖子,放假休息

Terry#25年前 0 个赞

你的fecshop是否是最新版本?

最新版本已经修复了这个问题:http://www.fecshop.com/topic/394

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