進入 OSCommerce 後台碰到 Fatal error: Cannot re-assign $this
幫朋友將 osc 購物車系統移轉到虛擬主機上所碰到的錯誤訊息如下Fatal error: Cannot re-assign $this in /var/www/html/osc/admin/includes/classes/upload.php on line 31[code]
if ( ($this->parse() == true) && ($this->save() == true) ) {
return true;
} else {
// self destruct
$this = null;
return false;
}
[/code]Line 31 就是 $this = null 這一行,改成[code]
//$this = null;
unset($this);
[/code]這樣就過關了
頁:
[1]