Welcome! To use this support forum, please Login or Join Today!

   

Fatal error with theme on PHP 5.4.1

{name}
Rank

Total Posts: 3

Joined 2011-05-09

PM

 
I just upgraded a development server to PHP 5.4.1 for testing and in the Orion theme (and perhaps others) I get the following fatal error:

Fatal error: Call-time pass-by-reference has been removed; If you would like to pass argument by reference, modify the declaration of GetArchiveColStyle(). in .../themes/orion/home.php on line 13


The line in question from home.php is:
// Fetch the default Layout Style from theme options
$colstyle GetArchiveColStyle(&$colstyle); 


I guess that old feature has finally been removed in PHP 5.4. For now I've just changed the function definition to use the reference operator, and removed it from the function calls themselves.

Just a heads up for the future as PHP 5.4 is now stable.
{name}
Rank

Total Posts: 3

Joined 2011-05-09

PM

 
Posted too soon, some other functions that need the same modification:

MidWrap, GetContentGrid, LeftSidebarGrid, RightSidebarGrid that I see so far.
{name}
RankRankRankRank

Total Posts: 3667

Joined 2011-04-27

PM

 
PHP 5.4.1 was just released yesterday and there are still quite a few open bugs. I'll need to schedule some time to go in and make the needed updates. This is hot on my todo list.

For the time being, you might want to roll back a version until this bug is resolved.
{name}
Rank

Total Posts: 3

Joined 2011-05-09

PM

 
No worries, I was testing a plugin on a dev system and upgraded to 5.4 for an unrelated reason. No plans to move any of the live wordpress sites to 5.4 in the immediate future. Thanks again!