[TYPO3] [Typo3] VTS extension: strange fatal error
Jeppe Vesterbæk
jhve02 at control.aau.dk
Sat Feb 18 14:04:59 CET 2006
>I've got the same problem in PHP4.
>On some servers VTS work, on others it doesn't.
>
>
I compile problems with VTS using php5 as well. In October 2005, I
emailed carlos with a fix, but it seems he has not incorporated the
changes in the extension.
From my email:
There is a compile error in de_phpot/mod1/class.tx_dephpot_Summary.php
on line 324 when using php5. The error:
[Fri Oct 14 13:12:41 2005] [error] PHP Fatal error: Non-static method
tx_dephpot_Summary::makeCero() cannot be called statically in
/usr/dana/data/www.anybodytech.com/docs/typo3conf/ext/de_phpot/mod1/class.tx_dephpot_Summary.php
on line 324
The solution: Move the function "makeCero" out of function
"writeContent", and change all calles to "makeCero" in "writeContent"
from "makeCero" to "$this->makeCero".
Same problem in mod1/class.tx_dephpot_Visitors.php:
[Fri Oct 14 14:05:12 2005] [error] PHP Fatal error: Non-static method
tx_dephpot_Visitors::makeZero() cannot be called statically in
/usr/dana/data/www.anybodytech.com/docs/typo3conf/ext/de_phpot/mod1/class.tx_dephpot_Visitors.php
on line 318
I've put the fixed files here (temporarily):
http://vesterbaek.org/fileadmin/_temp_/class.tx_dephpot_Visitors.php.txt
http://vesterbaek.org/fileadmin/_temp_/class.tx_dephpot_Summary.php.txt
See if that helps you.
/Jeppe
More information about the TYPO3-english
mailing list