WordPress plugin “In Over Your Archives” Call-time pass-by-reference fix for PHP 5.4

How to fix PHP Call-time pass-by-reference has been removed in errors. The following PHP fix goes for nearly all PHP Call-time pass-by-reference errors: The WordPress plugin In Over Your Archives is a plugin to display your archive page in a nice way, just like on inoveryourhead.net. The plugin hasn’t been updated in quite some time and breaks with PHP version 5.4:

Fatal error: Call-time pass-by-reference has been removed in plugins\in-over-your-archives\in_over_your_archives.php on line 649.

This can easily be fixed. And here is how.

Open up the file in-over-your-archives\in-over-your-archives.php and look up line 649. It is:

sort(&$results);

Change this line to

sort($results);

and the plugin will function with PHP 5.4.


Did this post helped you solve a problem? Or dit you find it interesting? Support Sysadmins of the North with a direct donation via Paypal of by bank wire transfer IBAN: NL31 ABNA 0432217258 (Jan Reilink). Just $ 5,- or € 5,- is more than enough, thanks!

Support SAOTN.ORG


100 views

Leave a Reply

Your email address will not be published. Required fields are marked *