bestlong 怕失憶論壇

 

 

搜索
bestlong 怕失憶論壇 論壇 EC 進入 OSCommerce 後台碰到 Fatal error: Cannot re-assi ...
查看: 3638|回復: 0
go

進入 OSCommerce 後台碰到 Fatal error: Cannot re-assign $this

Rank: 9Rank: 9Rank: 9

發表於 2010-9-19 02:24 |顯示全部帖子
幫朋友將 osc 購物車系統移轉到虛擬主機上所碰到的錯誤訊息如下

Fatal error: Cannot re-assign $this in /var/www/html/osc/admin/includes/classes/upload.php on line 31
  1.         if ( ($this->parse() == true) && ($this->save() == true) ) {
  2.           return true;
  3.         } else {
  4. // self destruct
  5.           $this = null;

  6.           return false;
  7.         }
複製代碼
Line 31 就是 $this = null 這一行,改成
  1. //$this = null;
  2. unset($this);
複製代碼
這樣就過關了
我是雪龍
http://blog.bestlong.idv.tw
http://www.bestlong.idv.tw

Archiver|怕失憶論壇

GMT+8, 2024-4-19 07:59 , Processed in 0.009654 second(s), 10 queries .

Powered by Discuz! X1.5

© 2001-2010 Comsenz Inc.