#239 – fatal error after upgrate to 1.6.0

Status: Closed - Category: Route 66
Hello,

I recieve the following error after plugin upgrate route66.

Fatal error: Cannot create references to elements of a temporary array expression in /home1/iamosoil.gr/plugins/system/route66/lib/router.php on line 61.

In 61 line is the following code
$canonical = $canonical->toString(array('scheme', 'host', 'port', 'path'));

To make my site up and running again I have rename the file plugins/system/route66/router.php but I don't kwon if this action create other errors to my site.

Please give me some advice how to fix this error.

Joomla version 3.8.12
route66. 1.6

Thanks in advance.
Panos
Hi,

What's your PHP version? You can find it under "System" -> "System Information" in Joomla backend.

Regards
 
Hi,

my PHP Version 5.3.29

Thanks in advance.
Panos
That's really old, you should upgrade your PHP version.

In order to make the plugin work under PHP 5.3 replace line 61of plugins/system/route66/lib/router.php with the following code:
$array = array('scheme', 'host', 'port', 'path');
$canonical = $canonical->toString($array);


Let me know if that solves your issue.

Regards
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.

Note: An active subscription is required in order to get support for our paid extensions. For our free extensions, if you don't have an account, register and then submit your support request.  In case you just want to ask a question, you can also use the contact form .

Note: Our support team is currently on vacation, so please anticipate slightly longer response times. Thank you for your understanding!

Firecoders
Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review