原來如此
網路開店購物系統 => ECShop 安裝、設定、使用 => 主題作者是: jayes 於 十一月 09, 2020, 03:09:42 上午
-
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/i7jxbuhyumcl/public_html/includes/cls_template.php on line 1055
Strict Standards: Only variables should be passed by reference in /home/i7jxbuhyumcl/public_html/includes/lib_main.php on line 1329
Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/i7jxbuhyumcl/public_html/includes/cls_template.php on line 288
Strict Standards: Only variables should be passed by reference in /home/i7jxbuhyumcl/public_html/includes/cls_template.php on line 406
-
請參考:
https://we-shop.net/article-374-ecshop273%E5%BE%9EPHP5%E5%8D%87%E7%B4%9A%E5%88%B0PHP73%E4%BF%AE%E6%94%B9%E6%96%B9%E6%B3%95%2820200629%E6%9B%B4%E6%96%B0%29.html (https://we-shop.net/article-374-ecshop273%E5%BE%9EPHP5%E5%8D%87%E7%B4%9A%E5%88%B0PHP73%E4%BF%AE%E6%94%B9%E6%96%B9%E6%B3%95%2820200629%E6%9B%B4%E6%96%B0%29.html)
-
感謝解答~
我虛擬主機是PHP5.6,想全新安裝ECShop V2.7.3 UTF-8 Beta2繁體中文版
請問需要修改哪些部份呢?
php5.2 升級到 php5.4 的部分?
還是php5.4 升級到 php5.6 的部分?
感恩~~
-
如果你參考這篇:https://we-shop.net/article-374-ecshop273%E5%BE%9EPHP5%E5%8D%87%E7%B4%9A%E5%88%B0PHP73%E4%BF%AE%E6%94%B9%E6%96%B9%E6%B3%95%2820200629%E6%9B%B4%E6%96%B0%29.html還有錯誤訊息,但是仍然可以操作,那表示還有相容性問題沒改到請經錯誤訊息貼出來...
-
您好,我按照這篇從頭到尾全部都修改了
https://we-shop.net/article-374-ecshop273%E5%BE%9EPHP5%E5%8D%87%E7%B4%9A%E5%88%B0PHP73%E4%BF%AE%E6%94%B9%E6%96%B9%E6%B3%95%2820200629%E6%9B%B4%E6%96%B0%29.html
再把includes/cls_mysql.php內容替換成如這篇教學的內容
https://we-shop.net/article-375-Ecshop273%E6%94%AF%E6%8F%B4PHP7%E4%BB%A5%E4%B8%8A%E7%9A%84mysqli%E8%B3%87%E6%96%99%E5%BA%AB%E9%A1%9E.html
再從cPanel把PHP從5.6改成7.3
結果管理後台進入正常,但網站首頁空白只出現一行錯訊息如下:
Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) in /home/gsprs/public_html/ec/includes/modules/integrates/ecshop.php on line 64
ecshop.php on line 64 我已經有改成 function __construct,還是沒用
請問應如何解決呢?感謝您~
-
另外您這篇教學
https://we-shop.net/article-374-ecshop273%E5%BE%9EPHP5%E5%8D%87%E7%B4%9A%E5%88%B0PHP73%E4%BF%AE%E6%94%B9%E6%96%B9%E6%B3%95%2820200629%E6%9B%B4%E6%96%B0%29.html
有提到如下這段:
480 找到
$out = "_echash . $k[\'name\'] . \'|\' . serialize($k) . $this->_echash;' . "\n?>";
約 541 找到
$val = preg_replace("/\[([^\[\]]*)\]/eis", "'.'.str_replace('$','\$','\\1')", $val);
改為
//$val = preg_replace("/\[([^\[\]]*)\]/eis", "'.'.str_replace('$','\$','\\1')", $val);
$val = preg_replace_callback("/\[([^\[\]]*)\]/is", function($r) { return '.'.$r[1]; }, $val);
請問是把480和541都改成以下這段對嗎?
//$val = preg_replace("/\[([^\[\]]*)\]/eis", "'.'.str_replace('$','\$','\\1')", $val);
$val = preg_replace_callback("/\[([^\[\]]*)\]/is", function($r) { return '.'.$r[1]; }, $val);
-
我剛才另外下載安裝 貴站修改的2.7.3繁體中文正式版
修改至PHP7.3之後首頁變成空白,出現錯誤訊息:
Parse error: syntax error, unexpected ';' in /home/gsprs/public_html/ec2/temp/compiled/page_header.lbi.php on line 11
-
剛才重新安裝 2.7.3繁體中文正式版,修改至7.3
最後首頁也是空白,顯示錯誤訊息:
Parse error: syntax error, unexpected '(', expecting variable (T_VARIABLE) in /home/gsprs/public_html/ec2/includes/modules/integrates/ecshop.php on line 64
目前line 64的程式碼是:
function __construct(array());
$this->user_table = 'users';
$this->field_id = 'user_id';
$this->ec_salt = 'ec_salt';
$this->field_name = 'user_name';
$this->field_pass = 'password';
$this->field_email = 'email';
$this->field_gender = 'sex';
$this->field_bday = 'birthday';
$this->field_reg_date = 'reg_time';
$this->need_sync = false;
$this->is_ecshop = 1;
}
求大大幫忙...Orz
-
line 64 應該是
function ecshop($cfg)
{
parent::__construct(array());
$this->user_table = 'users';
$this->field_id = 'user_id';
$this->field_name = 'user_name';
$this->field_pass = 'password';
$this->field_email = 'email';
$this->field_gender = 'sex';
$this->field_bday = 'birthday';
$this->field_reg_date = 'reg_time';
$this->need_sync = false;
$this->is_ecshop = 1;
}
-
感謝大大解答~可以正常進入首頁了(好像看到沒任何商品?)
(https://i.imgur.com/fjtirpY.jpg)
但註冊會員按送出會變成一片空白的網頁
然後打網址進入首頁,顯示已登入會員,按登出又變成一片空白的網頁
輸入帳號密碼按登入,變成一片空白的網頁
點會員中心,也變成一片空白的網頁
(網址列顯示 https://xxxx.com/ec2/user.php )
點購物車,顯示以下錯誤訊息:
Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 33554432 bytes) in /public_html/ec2/temp/compiled/flow.dwt.php on line 1
點匯款通知,顯示以下錯誤訊息:
Fatal error: Uncaught Error: Call to undefined function mysql_query() in /public_html/ec2/announcement.php:166 Stack trace: #0 {main} thrown in /public_html/ec2/announcement.php on line 166
把預設模板換顏色,或換成別的模板,首頁就會永遠變成一片空白,點清除緩存也沒用...
求大大幫忙~感謝您
-
你的主機似乎有記憶體限制Fatal error: Allowed memory size of 67108864 bytes exhausted (tried to allocate 33554432 bytes) in /public_html/ec2/temp/compiled/flow.dwt.php on line 1
匯款通知不能用於PHP7.3...
-
了解~謝謝
我主機記憶體上限1GB,試過把 PHP options 的記憶體限制設成512M或1024M
但還是發生一樣情形...
(https://i.imgur.com/H8FONSi.jpg)
(https://i.imgur.com/PJtqGnW.jpg)
-
主機限制不單指輸入或上傳限制很多還包刮CPU使用量但實際是如何計算的我也不懂如果只是 Allowed memory size of 67108864 bytes exhausted 錯誤那就應該請主機商協助...