WSOD after insert of Wiki Page
- Status
- Closed
- Subject
- WSOD after insert of Wiki Page
- Version
- 9.x
- Category
- Error
- Less than 30-minutes fix
- Feature
- Wiki (page view, edit, history, rename, etc)
- Resolution status
- Out of Date
- Submitted by
- zulyzami
- Lastmod by
- Ushindi Gedeon
- Rating
- Description
When saving a new Wiki page, you get a white Screen of Death.
PHP Fatal error: Call-time pass-by-reference has been removed in ... on line 97
In PHP version 5.4 >
There is no reference sign on a function call - only on function definitions. Function definitions alone are enough to correctly pass the argument by reference. As of PHP 5.3.0, you will get a warning saying that "call-time pass-by-reference" is deprecated when you use & in foo(&$a);.For example, use:
// Right way!
function myFunc(&$arg) { }
myFunc($var);Rather than:
// Wrong way!
function myFunc($arg) { }
myFunc(&$arg);- Solution
Remove the & from line 97 in:
lib\core\Reports\Manager.php
public function addToCache(&$watches, $data)
{
$users = $this->reportsUsers->getAllUsers();
$this->reportsCache->add($watches, $data, $users);
}- Workaround
- Priority
- 25
- Demonstrate Bug on Tiki 19+
-
This bug has been demonstrated on show2.tiki.org
Please demonstrate your bug on show2.tiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show2.tiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Demonstrate Bug (older Tiki versions)
-
This bug has been demonstrated on show.tikiwiki.org
Please demonstrate your bug on show.tikiwiki.org
Show.tiki.org is not configured properlyThe public/private keys configured to connect to show.tikiwiki.org were not accepted. Please make sure you are using RSA keys. Thanks.
- Ticket ID
- 4283
- Created
- Monday 27 August, 2012 15:26:57 UTC
by zulyzami - LastModif
- Monday 26 May, 2025 08:01:03 UTC