• Home
  • Get help
  • Ask a question
Last post 45 min ago
Posts last week 110
Average response time last week 29 min
All time posts 67401
All time tickets 10424
All time avg. posts per day 21

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.

#2950 – Issue: bad url generating 500 error not a 404 page.

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.
Thursday, 10 November 2016 17:08 UTC
williamconifer
 Greetings,

We use sh404 quite a bit with no issues. However we are having a issue at http://www.xxxx/. When you enter a bad url we are getting a 500 error page not a 404. When I turn off sh404 we get the 404 page that RocketTheme Gantry 5 creates.

Here is the site stack.
Joomla 3.4.6
Gantry 5 - Antares template
sh404 4.8.1.3465
K2 2.7.1

I have attached the website system config file AND a snippet of the log file showing errors and warnings that occur when sh404 is turned on and a bad url is entered.
Thursday, 10 November 2016 18:05 UTC
wb_weeblr
Hi

The log is useful: it says the error originates in the gantry5 component router
/var/www/vhost in /var/www/vhosts/xxxx/httpdocs/components/com_gantry5/router.php on line 24


then goes to the Koowa system plugin:
Warning	24.111.118.132		mod_fcgid: stderr: #6 /var/www/vhosts/xxxx/httpdocs/libraries/joomla/event/event.php(69): PlgSystemKoowa->onAfterRoute()


and propagates to the Gantry component router:
PHP Fatal error: Uncaught Exception: Page not found in /var/www/vhosts/xxxx/httpdocs/components/com_gantry5/router.php:24


It seems the Gantry5 router is triggering the onAfterRoute event, which is suspicious.

I do remember this being reported once, and I had to debug step by step through the PHP to find that Koowa was causing this, but in your case, I 'm not sure it's the root cause or just a part in the chain of event.

That user didn't really need the component which was using Koowa, so they removed it and that ended the problem.

In your case, if you need to keep Koowa running (and again, I don't know yet whether the source of the problem is Koowa or the Gantry router.php), one thing that can be tried is to re-arrange the ordering of the Koowa, sh404SEF and Gantry system plugins.
Putting one before or after the other, compared to their current position, may solve the issue.

Other things fo interest:

1 - Do you have any component set to "Use Joomla router" under the By Components tab of sh404SEF configuration?
2 - Under the "Error page" tab, what do you have for "404 error handling"?

Rgds





 
Thursday, 10 November 2016 21:02 UTC
williamconifer
Thanks for the info. In tracking down the issue I messed up the site so I have ordered a restore. I will circle back if I see anything else. For now I'll keep the ticket open.
Saturday, 26 November 2016 05:34 UTC
system
This ticket has been automatically closed. All tickets which have been inactive for a long time are automatically closed. If you believe that this ticket was closed in error, please contact us.
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.