[0] Exception in Image.php line 66

Failed to create image resources!

  1. if ('gif' == $this->info['type']) {
  2. $this->gif = new Gif($file->getPathname());
  3. $this->im = @imagecreatefromstring($this->gif->image());
  4. } else {
  5. $fun = "imagecreatefrom{$this->info['type']}";
  6. $this->im = @$fun($file->getPathname());
  7. }
  8. if (empty($this->im)) {
  9. throw new ImageException('Failed to create image resources!');
  10. }
  11. }
  12. public static function open($file){
  13. if (is_string($file)) {
  14. $file = new \SplFileInfo($file);
  15. }
  16. if (!$file->isFile()) {

Call Stack

  1. in Image.php line 66
  2. at Image->__construct(object(SplFileInfo)) in Image.php line 78
  3. at Image::open(object(SplFileInfo)) in common.php line 174
  4. at goods_thum_images(11906, 220, 220) in 8dc0d0092653012806414d06ed8af8ac.php line 33
  5. at include('D:\eplatform\runtime...') in File.php line 50
  6. at File->read('D:\eplatform\runtime...', ['action' => 'goodslist', 'goods_category_tree' => [['id' => 6, 'name' => '电脑办公', 'mobile_name' => '电脑办公', ...], ['id' => 574, 'name' => '文体耗材', 'mobile_name' => '文体耗材', ...], ['id' => 7, 'name' => '通讯数码', 'mobile_name' => '通讯数码', ...], ...], 'brand_list' => [['id' => 5, 'name' => '得印', 'parent_cat_id' => 1, ...], ['id' => 6, 'name' => '国际', 'parent_cat_id' => 1, ...], ['id' => 7, 'name' => 'OEM (befon中性)', 'parent_cat_id' => 1, ...], ...], ...]) in Template.php line 175
  7. at Template->fetch('./template/pc/goods\...', ['action' => 'goodslist', 'goods_category_tree' => [['id' => 6, 'name' => '电脑办公', 'mobile_name' => '电脑办公', ...], ['id' => 574, 'name' => '文体耗材', 'mobile_name' => '文体耗材', ...], ['id' => 7, 'name' => '通讯数码', 'mobile_name' => '通讯数码', ...], ...], 'brand_list' => [['id' => 5, 'name' => '得印', 'parent_cat_id' => 1, ...], ['id' => 6, 'name' => '国际', 'parent_cat_id' => 1, ...], ['id' => 7, 'name' => 'OEM (befon中性)', 'parent_cat_id' => 1, ...], ...], ...], []) in Think.php line 71
  8. at Think->fetch('./template/pc/goods\...', ['action' => 'goodslist', 'goods_category_tree' => [['id' => 6, 'name' => '电脑办公', 'mobile_name' => '电脑办公', ...], ['id' => 574, 'name' => '文体耗材', 'mobile_name' => '文体耗材', ...], ['id' => 7, 'name' => '通讯数码', 'mobile_name' => '通讯数码', ...], ...], 'brand_list' => [['id' => 5, 'name' => '得印', 'parent_cat_id' => 1, ...], ['id' => 6, 'name' => '国际', 'parent_cat_id' => 1, ...], ['id' => 7, 'name' => 'OEM (befon中性)', 'parent_cat_id' => 1, ...], ...], ...], []) in View.php line 158
  9. at View->fetch('', ['action' => 'goodslist', 'goods_category_tree' => [['id' => 6, 'name' => '电脑办公', 'mobile_name' => '电脑办公', ...], ['id' => 574, 'name' => '文体耗材', 'mobile_name' => '文体耗材', ...], ['id' => 7, 'name' => '通讯数码', 'mobile_name' => '通讯数码', ...], ...], 'brand_list' => [['id' => 5, 'name' => '得印', 'parent_cat_id' => 1, ...], ['id' => 6, 'name' => '国际', 'parent_cat_id' => 1, ...], ['id' => 7, 'name' => 'OEM (befon中性)', 'parent_cat_id' => 1, ...], ...], ...], [], []) in Controller.php line 125
  10. at Controller->fetch() in Goods.php line 188
  11. at Goods->goodsList()
  12. at ReflectionMethod->invokeArgs(object(Goods), []) in App.php line 227
  13. at App::invokeMethod([object(Goods), 'goodslist'], []) in App.php line 394
  14. at App::module(['home', 'goods', 'goodslist'], ['app_namespace' => 'app', 'app_debug' => true, 'app_trace' => false, ...], true) in App.php line 133
  15. at App::run() in start.php line 18
  16. at require('D:\eplatform\thinkph...') in index.php line 42