Skip to main content Help Control Panel

Login   A+   A-

Community «   Discussion forum «   Bug tracker «  

New error after upgrading to version 6.9 [fixed]

avatarBoen, Jan -- on Nov. 14 2006
This popped up after the upgrade only...
Fatal error: Cannot pass parameter 1 by reference in /home/typex/public_html/YACS/skins/TypeX/template.php on line 376

Any idea what's wrong?

Thanks

jan
Bernard
avatar
from nearby-an-airport
Associate, 6674 posts

on Nov. 14 2006


Jan, In order to enhance response times YACS 6.9 attempts to avoid data copies by using references to memory buffers.

The reported error message says that in the template there is a call to a library function that is now expecting a reference instead of actual data.

To sort this out, you should look at line 376 of template.php, and use intermediate variables as follows.

If you had:
call_to_library('actual parameter');



Change it to:
$my_variable 'actual parameter';
call_to_library($my_variable);



If don't know how to proceed, call me tomorrow morning at the office, after 11am.

Rate this page
Posted by Jan B on Nov. 14 2006, commented by Bernard on Nov. 14 2006, (popular)