#239 – fatal error after upgrate to 1.6.0

Status: Closed - Category: Route 66

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.

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


my PHP Version 5.3.29

Thanks in advance.
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.

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 .

Are you using our extensions? Please post a review at the Joomla extensions directory!
Post a review
Follow us in Facebook to get the latest news and updates about our extensions!
Follow us in Twitter to get the latest news and updates about our extensions!