Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#1996 PHP 5 and empty pages/reference errors

v1.9.1
open
nobody
PHP Error (166)
5
2012-12-08
2005-10-25
Bardioc
No

When using PHP 5.0.5 an error arises in the files

tiki-install.php
tiki-modules.php

the second one leads to a non-functioning tikwiki as it
is not shown to the user, but only empty pages arise.

tiki-install.php line 520:
.... array_shift(get_included_files())

is no longer possible, and when changed to

$include_files = get_included_files();
.... = array_shift($include_files);

it works again.

tiki-modules.php line 124ff
.. $smarty->assign_by_ref('user_title',
tra($info["title"]))

same problem as above, obviously more nasty to find
out.

$tra_title = tra($info["title"]);
$smarty->assign_by_ref("user_title", $tra_title);

fixes this.

Discussion