Fatal error: Cannot re-assign $this

GRC41

Avatar: GRC41

2011-03-24 21:34

Recently changed servers and am receiving the following error message:
Fatal error: Cannot re-assign $this in /home/cowtemp/public_html/ckids.php on line 207

This is line 207 in the ckids.php file:

204 $catr=mysql_query($catq);
205 $catf=mysql_fetch_array($catr);
206 $locationname=$catf["name"];
207 $this="location ($locationname)";

I understand that this can be caused by PHP5. Is there a solution to this?

» Quick.Cms v2.x

Makaron

Avatar: Makaron

2011-03-25 16:25

I think You have to use another variable name instead of $this because this name is PHP predefined variable.

Mak-Web.pl - Modyfikacje skryptów Q.Cart i Q.Cms

Back to top
about us | contact