| Another bug: Fatal error: Cannot pass parameter 4 by reference -
12-01-2007, 02:01 AM
Fatal error: Cannot pass parameter 4 by reference in ...\modules\tickets\client_tickets.php on line 263
When adding to help desk ticket.
I replicated it on the general user side after creating a ticket then trying to post a reply.
I fixed it by “forcing” the variable.
Here is what I changed:
Path: ...\modules\tickets\client_tickets.php
Line: 263
->$_ticketobj->processPostAttachments($ticketpostiddata[0], false, (new stdClass), false);
Changed to:
->$forceVariable = false;
->$_ticketobj->processPostAttachments($ticketpostiddata[0], false, (new stdClass), $forceVariable);
Error seems to be fixed.
Not sure if this was the right fix, but it works... |