Hello,
I got the following error, after updating PHP4 to PHP5:
Fatal error: Class PHPTAL_DBResultIterator must implement interface Traversable as part of either Iterator or IteratorAggregate in Unknown on line 0
MediaWiki Version: 1.3.0beta5
bye Daniel Nolte
phpbar@webvector.de wrote:
Hello,
I got the following error, after updating PHP4 to PHP5:
Fatal error: Class PHPTAL_DBResultIterator must implement interface Traversable as part of either Iterator or IteratorAggregate in Unknown on line 0
MediaWiki Version: 1.3.0beta5
This is a PHPTAL bug, it's not really our responsibility. Quoting http://sourceforge.net/mailarchive/forum.php?thread_id=5198753&forum_id=...
Regarding PHP5 --------------
As you spotted, PHPTAL doesn"t work with PHP5, it is a known problem related to many ref tricks I used to make it work as expected under PHP4. I am obligated to rewrite many things and I will release a first beta version within the month of August.
(end quote)
Although it hasn't been thoroughly tested, it may be possible to use MediaWiki in PHP5 by disabling PHPTAL. This means you won't be able to use the new monobook skin, or any other PHPTAL skin. Add the following line to LocalSettings.php:
$wgUsePHPTal = false;
If Laurent Bedubourg comes through with his promise and releases a PHP5-compatible version of PHPTAL some time in August 2004, then we'd expect to have a PHP5-compatible version of MediaWiki released in the month or so after that, depending on the vagaries of our release cycle.
-- Tim Starling
Tim Starling wrote:
Although it hasn't been thoroughly tested, it may be possible to use MediaWiki in PHP5 by disabling PHPTAL. This means you won't be able to use the new monobook skin, or any other PHPTAL skin. Add the following line to LocalSettings.php:
$wgUsePHPTal = false;
As of current CVS, this mode will automatically be used when PHP 5.0 or higher is detected for hassle-free installation.
As far as I know everything _else_ should work on PHP5, just the PHPTal templates don't (yet). This is an annoyance, but PHP 5.0.0 was only very recently released and isn't in general circulation yet, so it shouldn't hit most people.
-- brion vibber (brion @ pobox.com)
Brion Vibber wrote:
Tim Starling wrote:
Although it hasn't been thoroughly tested, it may be possible to use MediaWiki in PHP5 by disabling PHPTAL. This means you won't be able to use the new monobook skin, or any other PHPTAL skin. Add the following line to LocalSettings.php:
$wgUsePHPTal = false;
As of current CVS, this mode will automatically be used when PHP 5.0 or higher is detected for hassle-free installation.
As far as I know everything _else_ should work on PHP5, just the PHPTal templates don't (yet). This is an annoyance, but PHP 5.0.0 was only very recently released and isn't in general circulation yet, so it shouldn't hit most people.
Hi, thanks for the hint. After deactivating PHPTal everything is back to normal apart from the skin, but this is kinda logical. I install MediaWiki under PHP 4.x, so I guess that's why PHPTal was not disabled. :-)
bye Daniel
wikitech-l@lists.wikimedia.org