#239 Posted in ‘Route 66’

Latest post by Lefteris Kavadas on Monday, 01 October 2018 11:42 EEST

Panos
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

Lefteris Kavadas
Hi,

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

Regards

Panos
Hi,

my PHP Version 5.3.29

Thanks in advance.
Panos

Lefteris Kavadas
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

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 .

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