Redirect work but not collect 404 url-s Topic is solved
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Sep 08, 2021 12:24 pm
Redirect work but not collect 404 url-s
Hi, Joomla redirect work but not collect 404 error url-s.
- the plugin setup corrected.
Joomla 3.9.28.
I also tried redj component, the problem was the same.
Not php error in the logs...
what could be wrong?
- the plugin setup corrected.
Joomla 3.9.28.
I also tried redj component, the problem was the same.
Not php error in the logs...
what could be wrong?
- pe7er
- Joomla! Master
- Posts: 24975
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: Redirect work but not collect 404 url-s
Welcome to Joomla forum!
Joomla's Redirect only works when the plugin is enabled AND when your Joomla site registers a 404 error.
Do you have a custom error page?
Could you check if your Joomla site generates a 404 error in the HTTP headers when you open a non-existing page?
You could check that with Google Chrome:
use its "Inspect" > [Network] tab
and check in the headers if your site gives a HTTP 404 error code
or that it generates another HTTP status code. Like "HTTP 200 Success" because it successfully loads your custom error page.
Joomla's Redirect only works when the plugin is enabled AND when your Joomla site registers a 404 error.
Do you have a custom error page?
Could you check if your Joomla site generates a 404 error in the HTTP headers when you open a non-existing page?
You could check that with Google Chrome:
use its "Inspect" > [Network] tab
and check in the headers if your site gives a HTTP 404 error code
or that it generates another HTTP status code. Like "HTTP 200 Success" because it successfully loads your custom error page.
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Sep 08, 2021 12:24 pm
Re: Redirect work but not collect 404 url-s
I use the original joomla error.php. (templates/system)pe7er wrote: ↑Wed Sep 08, 2021 2:42 pmWelcome to Joomla forum!
Joomla's Redirect only works when the plugin is enabled AND when your Joomla site registers a 404 error.
Do you have a custom error page?
Could you check if your Joomla site generates a 404 error in the HTTP headers when you open a non-existing page?
You could check that with Google Chrome:
use its "Inspect" > [Network] tab
and check in the headers if your site gives a HTTP 404 error code
or that it generates another HTTP status code. Like "HTTP 200 Success" because it successfully loads your custom error page.
wrong link status 404, error.css 200
do you know where the redirect plugins should be in order?
- pe7er
- Joomla! Master
- Posts: 24975
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: Redirect work but not collect 404 url-s
Good point!
Not sure if it's important with this Plugin, but always a good idea to investigate.
On one of my sites where the redirects work correctly, the Redirect plugin loaded at the end. There are only 8 default Joomla plugins loaded after it.
My System Plugins (Plugins filtered on "System" and ordered by Ordering) at the end of the list:
Not sure if it's important with this Plugin, but always a good idea to investigate.
On one of my sites where the redirects work correctly, the Redirect plugin loaded at the end. There are only 8 default Joomla plugins loaded after it.
My System Plugins (Plugins filtered on "System" and ordered by Ordering) at the end of the list:
- System - Redirect
- System - Debug system
- System - User Log
- System - Logout
- System - Highlight
- System - Remember Me
- System - db8 Skip to Content (my own plugin)
- System - SEF
- System - Language Code
- System - Page Cache (disabled plugin)
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
- pe7er
- Joomla! Master
- Posts: 24975
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: Redirect work but not collect 404 url-s
Could you use the Forum Post Assistant to give somewhat more info about your setup?
https://forumpostassistant.github.io/docs/
https://forumpostassistant.github.io/docs/
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Sep 08, 2021 12:24 pm
Re: Redirect work but not collect 404 url-s
Your message contains 31464 characters.
The maximum number of allowed characters is 25000.
The FPA to big. Wich part is relevalt?
The maximum number of allowed characters is 25000.
The FPA to big. Wich part is relevalt?
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Sep 08, 2021 12:24 pm
Re: Redirect work but not collect 404 url-s
Might it be advisable to update system files?
I have tried many things:
- switching components, modules on/off
- I have emptied database tables (redirection)
fresh installation works on the same server
I have tried many things:
- switching components, modules on/off
- I have emptied database tables (redirection)
fresh installation works on the same server
- pe7er
- Joomla! Master
- Posts: 24975
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: Redirect work but not collect 404 url-s
Yes, it's always advisable to update your software to the latest version and then test again.
Possible bugs might have been solved in the meantime.
btw: I am not aware of a bug with redirects in Joomla 3.9.28.
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Sep 08, 2021 12:24 pm
Re: Redirect work but not collect 404 url-s
I mean that the same version (not the latest) installed fresh, works in the same place.
I would overwrite the current installation from the 3.9.28 installer. is there a proven method?
I would overwrite the current installation from the 3.9.28 installer. is there a proven method?
- pe7er
- Joomla! Master
- Posts: 24975
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: Redirect work but not collect 404 url-s
After you've created a backup (files + database) :
Components > Joomla Update > [Check for updates] > [Reinstall Joomla core files]
Components > Joomla Update > [Check for updates] > [Reinstall Joomla core files]
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Sep 08, 2021 12:24 pm
Re: Redirect work but not collect 404 url-s
Not helped, but I found a strange things.
Switch on debug. The 404 error page call stack:
Call stack
# Function Location
1 () JROOT\libraries\src\Router\Router.php:238
2 Joomla\CMS\Router\Router->parse() JROOT\libraries\src\Router\SiteRouter.php:139
3 Joomla\CMS\Router\SiteRouter->parse() JROOT\libraries\src\Application\CMSApplication.php:1170
4 Joomla\CMS\Application\CMSApplication->route() JROOT\libraries\src\Application\SiteApplication.php:796
5 Joomla\CMS\Application\SiteApplication->route() JROOT\libraries\src\Application\SiteApplication.php:218
6 Joomla\CMS\Application\SiteApplication->doExecute() JROOT\libraries\src\Application\CMSApplication.php:225
7 Joomla\CMS\Application\CMSApplication->execute() JROOT\index.php:49
Same server working site page 404 call stack:
Call stack
# Function Location
1 () JROOT\libraries\legacy\error\error.php:200
2 JError::raise() JROOT\libraries\legacy\error\error.php:277
3 JError::raiseError() JROOT\components\com_sppagebuilder\controller.php:35
4 SppagebuilderController->display() JROOT\libraries\src\MVC\Controller\BaseController.php:710
5 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT\components\com_sppagebuilder\sppagebuilder.php:20
6 require_once() JROOT\libraries\src\Component\ComponentHelper.php:402
7 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT\libraries\src\Component\ComponentHelper.php:377
8 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\SiteApplication.php:194
9 Joomla\CMS\Application\SiteApplication->dispatch() JROOT\libraries\src\Application\SiteApplication.php:233
10 Joomla\CMS\Application\SiteApplication->doExecute() JROOT\libraries\src\Application\CMSApplication.php:196
11 Joomla\CMS\Application\CMSApplication->execute() JROOT\index.php:49
neither temlate contains its own error.php file
Switch on debug. The 404 error page call stack:
Call stack
# Function Location
1 () JROOT\libraries\src\Router\Router.php:238
2 Joomla\CMS\Router\Router->parse() JROOT\libraries\src\Router\SiteRouter.php:139
3 Joomla\CMS\Router\SiteRouter->parse() JROOT\libraries\src\Application\CMSApplication.php:1170
4 Joomla\CMS\Application\CMSApplication->route() JROOT\libraries\src\Application\SiteApplication.php:796
5 Joomla\CMS\Application\SiteApplication->route() JROOT\libraries\src\Application\SiteApplication.php:218
6 Joomla\CMS\Application\SiteApplication->doExecute() JROOT\libraries\src\Application\CMSApplication.php:225
7 Joomla\CMS\Application\CMSApplication->execute() JROOT\index.php:49
Same server working site page 404 call stack:
Call stack
# Function Location
1 () JROOT\libraries\legacy\error\error.php:200
2 JError::raise() JROOT\libraries\legacy\error\error.php:277
3 JError::raiseError() JROOT\components\com_sppagebuilder\controller.php:35
4 SppagebuilderController->display() JROOT\libraries\src\MVC\Controller\BaseController.php:710
5 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT\components\com_sppagebuilder\sppagebuilder.php:20
6 require_once() JROOT\libraries\src\Component\ComponentHelper.php:402
7 Joomla\CMS\Component\ComponentHelper::executeComponent() JROOT\libraries\src\Component\ComponentHelper.php:377
8 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT\libraries\src\Application\SiteApplication.php:194
9 Joomla\CMS\Application\SiteApplication->dispatch() JROOT\libraries\src\Application\SiteApplication.php:233
10 Joomla\CMS\Application\SiteApplication->doExecute() JROOT\libraries\src\Application\CMSApplication.php:196
11 Joomla\CMS\Application\CMSApplication->execute() JROOT\index.php:49
neither temlate contains its own error.php file
-
- Joomla! Apprentice
- Posts: 7
- Joined: Wed Sep 08, 2021 12:24 pm
Re: Redirect work but not collect 404 url-s
I found the cause of the problem. I disabled all 3rd party plugins one by one.
Fatal error catcher (rupostel) was the cause of the problem.
Fatal error catcher (rupostel) was the cause of the problem.
- pe7er
- Joomla! Master
- Posts: 24975
- Joined: Thu Aug 18, 2005 8:55 pm
- Location: Nijmegen, Netherlands
- Contact:
Re: Redirect work but not collect 404 url-s
Good to hear that you've solved it. Thanks for sharing your solution!
Kind Regards,
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com
Peter Martin, Global Moderator
Company website: https://db8.nl/en/ - Joomla specialist, Nijmegen, Netherlands
The best website: https://the-best-website.com