Post by biohazard » Tue Feb 23, 2010 6:49 pm

OpenCart V 1.4.0
上傳不到圖片出了甚麼錯誤

http://www.1312.com.hk/img.jpg

按甚麼都沒有反應

唔該

Newbie

Posts

Joined
Tue Feb 23, 2010 6:43 pm

Post by mmk7821 » Tue Feb 23, 2010 10:15 pm

經過我的測試

open cart

圖片檔案附檔名

不能大寫

如.JPG

實驗無法通過

.jpg

測試OK!

Hoount網路獵人


Newbie

Posts

Joined
Tue Feb 23, 2010 9:27 pm

Post by SSJ » Tue Feb 23, 2010 10:18 pm

你用的IE7?用Firefox就没问题了,原因可能是Ckeditor或其相关程序迷路了,官方只是让换浏览器避过,可能是ckeditor是第三方代码,不好查。谁有工夫可以详细看看代码,估计就能找到原因了。

SSJ
Newbie

Posts

Joined
Wed Feb 03, 2010 1:05 am

Post by mmk7821 » Tue Feb 23, 2010 10:22 pm

SSJ wrote:你用的IE7?用Firefox就没问题了,原因可能是Ckeditor或其相关程序迷路了,官方只是让换浏览器避过,可能是ckeditor是第三方代码,不好查。谁有工夫可以详细看看代码,估计就能找到原因了。
恩,這是IE7測試.
新的問題 wrote:哈,我還想說,

對資料夾搜尋jpg

尋找

附加檔名限制的code

然後增加大寫,JPG

這樣說不定就ok,只是沒去測試.


另外我發現open cart

商品要先下架,才可以移除圖片.

否則前台,會出問題.

什麼壓縮不支援,然後空白畫面.

估計是前台圖片縮圖code有問題.

測試,Firefox,ie (前台縮圖找不到圖片會出現錯誤)

Hoount網路獵人


Newbie

Posts

Joined
Tue Feb 23, 2010 9:27 pm

Post by SSJ » Tue Feb 23, 2010 10:29 pm

看看Bug Reports http://forum.opencart.com/viewforum.php?f=31就知道了,V1.4.0版本有许多地方有些问题,估计下个版本就好多了。

SSJ
Newbie

Posts

Joined
Wed Feb 03, 2010 1:05 am

Post by biohazard » Wed Feb 24, 2010 12:58 pm

唔該各位

解決了

用mozilla firefox成功了

Newbie

Posts

Joined
Tue Feb 23, 2010 6:43 pm

Post by landices » Tue Nov 09, 2010 10:14 am

关于opencart 图片上传问题,在此分享下,希望对大家有所帮助:
找到opencart\system\library\image.php
找到第38行,既public function save($file, $quality = 100){}这个方法改成如下:
public function save($file, $quality = 100) {
$info = pathinfo($file);
$extension = $info['extension'];
if (strcmp($extension,'jpeg') || strcmp($extension,'jpg')) {
imagejpeg($this->image, $file, $quality);
} elseif(strcmp($extension,'png')) {
imagepng($this->image, $file, 0);
} elseif(strcmp($extension,'gif')) {
imagegif($this->image, $file);
}
imagedestroy($this->image);
刷新浏览器,OK

Newbie

Posts

Joined
Tue Nov 09, 2010 10:06 am

Post by loring » Wed Nov 10, 2010 12:13 am

landices wrote:关于opencart 图片上传问题,在此分享下,希望对大家有所帮助:
找到opencart\system\library\image.php
找到第38行,既public function save($file, $quality = 100){}这个方法改成如下:
public function save($file, $quality = 100) {
$info = pathinfo($file);
$extension = $info['extension'];
if (strcmp($extension,'jpeg') || strcmp($extension,'jpg')) {
imagejpeg($this->image, $file, $quality);
} elseif(strcmp($extension,'png')) {
imagepng($this->image, $file, 0);
} elseif(strcmp($extension,'gif')) {
imagegif($this->image, $file);
}
imagedestroy($this->image);
刷新浏览器,OK
opencart一年改好幾次版本,真不知如何是好,舊的就很好用,新版的有新功能,真不知如何是好...
感謝分享,造福舊版使用者... :D

OpenCart 中文資源 Blog.Dnono.com


User avatar
New member

Posts

Joined
Mon Jul 26, 2010 2:21 pm

Who is online

Users browsing this forum: No registered users and 2 guests