• Home
  • Get help
  • Ask a question
Last post 2 hours 10 min ago
Posts last week 94
Average response time last week 34 min
All time posts 67891
All time tickets 10494
All time avg. posts per day 20

Helpdesk is open from Monday through Friday CET

Please create an (free) account to post any question in the support area.
Please check the development versions area. Look at the changelog, maybe your specific problem has been resolved already!
All tickets are private and they cannot be viewed by anyone. We have made public only a few tickets that we found helpful, after removing private information from them.

#1624 – Fatal Error once Update

Posted in ‘sh404SEF’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 08 January 2016 06:38 UTC
motaz_gd
 Hi,

I have updated sh404sef to the newest version. Unfortunately, I can't access my website anymore. the following error is showing in my website frontend www.xxxx.com as follow:

Fatal error: Unsupported operand types in /home1/motazgd/public_html/libraries/cms/router/router.php on line 593

Username: xxxx
Password: xxxx

Joomla Ver: 3.4.3

Please help.

Mutaz
Friday, 08 January 2016 06:45 UTC
motaz_gd
This is where the error is:

/**
* Process the parsed router variables based on custom defined rules
*
* @param JUri &$uri The URI to parse
* @param string $stage The stage that should be processed.
* Possible values: 'preprocess', 'postprocess'
* and '' for the main parse stage
*
* @return array The array of processed URI variables
*
* @since 3.2
*/
protected function processParseRules(&$uri, $stage = self::PROCESS_DURING)
{
if (!array_key_exists('parse' . $stage, $this->_rules))
{
throw new InvalidArgumentException(sprintf('The %s stage is not registered. (%s)', $stage, __METHOD__));
}

$vars = array();

foreach ($this->_rules['parse' . $stage] as $rule)
{
$vars += call_user_func_array($rule, array(&$this, &$uri)); }

return $vars;
}
Friday, 08 January 2016 07:33 UTC
wb_weeblr
Hi

Another user reported this. They found the fix in Joomla, this seems to be a bug in the router (the error you report is actually in Joomla, not sh404SEF).

Here is what they said:
Right, I have managed to resolve the line router.php 593 error. The original line 593 was missing the word (array). By adding that in to the line the problem has gone away.



Sounds clever but I found the answer on the github.com/joomla site.


Looks like the correct code is here: https://github.com/joomla/joomla-cms/blob/staging/libraries/cms/router/router.php

Rgds
 
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.