Stefan Ernst

Typo3: Cannot re-assign $this

Fatal error: Cannot re-assign $this in /typo3conf/ext/static_info_tables/class.t

If you are experiencing this error whenever you are editing or adding content in the Backend of your Typo3 site right after you upgraded PHP to 5.2.x

Fatal error: Cannot re-assign $this in
/document_root/typo3conf/ext/static_info_tables/class.tx_staticinfotables_syslanguage.php
on line: 41

there should normally be a fairly easy way to fix this, apart from bugfixing the
class.tx_staticinfotables_syslanguage.php file itself:

Go to the extension manager and check which version of Static Info Tables you have installed:

Cannot reassign $this solution

If it is, like in the screenshot, anything below version 2.0.5, you will have to update it with a recent version from the Extension Repository.

After that, you should be fine and dandy again. :)

Comments

For those of you still using

For those of you still using 3.8 I solved this by replacing the string $this with $this1 in /typo3conf/ext/static_info_tables/class.tx_staticinfotables_syslanguage.php.

It has only one occurrence in this file.

Don't forget to click "Clear FE cache" for change to take effect.

Cheers.

For those of you still using

For those of you still using 3.8 I solved this by replacing the string $this with $this1 in /typo3conf/ext/static_info_tables/class.tx_staticinfotables_syslanguage.php.

It has only one occurrence in this file.

Don't forget to click "Clear FE cache" for change to take effect.

Cheers.

That's the title of the

That's the title of the image!

Yep. I'd say it didn't help

Yep. I'd say it didn't help the whole way :D

http://takras.net/pics/2010-01-11_1354.png

Hi, Thanks for this tut. I

Hi,

Thanks for this tut. I had a nightmare of a time trying to figure out why our production machine suddenly stopped working. Updated the module and now everything is hunky-dory.

Cheers,

Bazmo

I had the same problem, but

I had the same problem, but the update did not help me.
Instead the solution was to change the language in "Setup" to something different, and then change it back again.
Somehow the recent update of my Linux distribution must have changed the way Typo3 "sees" my localization variables (I guess).

Thanks for the tip.

Thanks for the tip. Upgrading from TYPO3 3.7 to 4.2 is a bit tricky. :)

this solved my problem

this solved my problem thanks - even though it was on a fresh install on php 5.

Thanks!! :)

Thanks!! :)

Mike: Your problem is caused

Mike:

Your problem is caused by this file:
class.tx_cal_tcemain_processdatamap.php

Which has nothing to do with the Static Info Tables, you might try to check for updates for that extension (or disable it).

I tried this (upgraded to

I tried this (upgraded to version 2.0.7), but still didn\'t fix the problem.

Still get fatal error:

Fatal error: Cannot re-assign $this in /home/taolearn/public_html/typo3conf/ext/cal/hooks/class.tx_cal_tcemain_processdatamap.php on line 35

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <pre>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
Are you human?
                                                                                 

999999999
99:::::::::99
99:::::::::::::99
9::::::99999::::::9
9:::::9 9:::::9 rrrrr rrrrrrrrr nnnn nnnnnnnn ppppp ppppppppp
9:::::9 9:::::9 r::::rrr:::::::::r n:::nn::::::::nn p::::ppp:::::::::p
9:::::99999::::::9 r:::::::::::::::::r n::::::::::::::nn p:::::::::::::::::p
99::::::::::::::9 rr::::::rrrrr::::::r nn:::::::::::::::n pp::::::ppppp::::::p
99999::::::::9 r:::::r r:::::r n:::::nnnn:::::n p:::::p p:::::p
9::::::9 r:::::r rrrrrrr n::::n n::::n p:::::p p:::::p
9::::::9 r:::::r n::::n n::::n p:::::p p:::::p
9::::::9 r:::::r n::::n n::::n p:::::p p::::::p
9::::::9 r:::::r n::::n n::::n p:::::ppppp:::::::p
9::::::9 r:::::r n::::n n::::n p::::::::::::::::p
9::::::9 r:::::r n::::n n::::n p::::::::::::::pp
99999999 rrrrrrr nnnnnn nnnnnn p::::::pppppppp
p:::::p
p:::::p
p:::::::p
p:::::::p
p:::::::p
ppppppppp
Enter the code depicted in ASCII art style.