After updating to Joomla 4.0.6 I ran the site audit using an SEO tool.
All redirected URLs should be redirected to new URLs.
Example: https://www.allmaids.co.za/gardeners --> https://www.allmaids.co.za/domestic-placements/gardeners
Internal Server Error 500 on all on previously working redirects.
Joomla 4.0.6 update.
Labels |
Added:
No Code Attached Yet
|
For me, too ... I clicked the first URL in the example and got redirected to the 2nd.
Maybe that SEO tool uses a user agent which is blocked by an .htaccess rule for blocking bad user agents, like it is created by certain tools, i.e. not the default from the htaccess.txt coming with Joomla?
But on the other hand, that should not return a 500.
Update: And it should not change with an update to 4.0.6.
@ipresencesa Does the redirect work for you when testing in the browser, not with the SEO tool? What kind of SEO tool is that?
The SEO tool is working fine after I downgraded to 4.0.5
I found that it happens only with first level redirects.
Example:
https://www.allmaids.co.za/gardening-services
but not
https://www.allmaids.co.za/domestic-services/gardening-services
I don’t understand which it works immediately after downgrading without changing anything.
I will try upgrading again and give an update.
From: Richard Fath @.>
Sent: 18 January 2022 02:36 PM
To: joomla/joomla-cms @.>
Cc: ipresencesa @.>; Mention @.>
Subject: Re: [joomla/joomla-cms] Internal Server Error 500 (Issue #36730)
For me, too ... I clicked the first URL in the example and got redirected to the 2nd.
Maybe that SEO tool uses a user agent which is blocked by an .htaccess rule for blocking bad user agents, like it is created by certain tools, i.e. not the default from the htaccess.txt coming with Joomla?
But on the other hand, that should not return a 500.
@ipresencesa https://github.com/ipresencesa Does the redirect work for you when testing in the browser, not with the SEO tool? What kind of SEO tool is that?
—
Reply to this email directly, view it on GitHub #36730 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7P6FEJSISPFJESZQF4SN3UWVNCTANCNFSM5MHATEPA .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
You are receiving this because you were mentioned.Message ID: @.***>
--
This email has been checked for viruses by AVG.
https://www.avg.com
Nope, the tool and the browser give same errors.
Updating again gives same error 500.
From: Richard Fath @.>
Sent: 18 January 2022 02:36 PM
To: joomla/joomla-cms @.>
Cc: ipresencesa @.>; Mention @.>
Subject: Re: [joomla/joomla-cms] Internal Server Error 500 (Issue #36730)
For me, too ... I clicked the first URL in the example and got redirected to the 2nd.
Maybe that SEO tool uses a user agent which is blocked by an .htaccess rule for blocking bad user agents, like it is created by certain tools, i.e. not the default from the htaccess.txt coming with Joomla?
But on the other hand, that should not return a 500.
@ipresencesa https://github.com/ipresencesa Does the redirect work for you when testing in the browser, not with the SEO tool? What kind of SEO tool is that?
—
Reply to this email directly, view it on GitHub #36730 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7P6FEJSISPFJESZQF4SN3UWVNCTANCNFSM5MHATEPA .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
You are receiving this because you were mentioned.Message ID: @.***>
--
This email has been checked for viruses by AVG.
https://www.avg.com
and have you done what it tells you to do?
Besides documentation block changes I see no other changes in the code of com_redirect between 4.0.5 and 4.0.6 so I have no idea why that should change behaviour after an update.
Besides documentation block changes I see no other changes in the code of com_redirect between 4.0.5 and 4.0.6 so I have no idea why that should change behaviour after an update.
But if you follow the instructions we will have a better idea
Besides documentation block changes I see no other changes in the code of com_redirect between 4.0.5 and 4.0.6 so I have no idea why that should change behaviour after an update.
But if you follow the instructions we will have a better idea
@brianteeman You mean me? If so, which instructions?
no I mean @ipresencesa and the instructions on the 500 error page
I see ... https://docs.joomla.org/J4.x:FatalError
The following is the output after Debug = true
Error
in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/plugins/system/redirect/redirect.php (line 243)
// Always count redirect hits
$redirect->hits++;
try
{
$db->updateObject('#__redirect_links', $redirect, 'id');
}
catch (Exception $e)
{
// We don't log issues for now
}
in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/libraries/vendor/joomla/event/src/Dispatcher.php -> handleError (line 486)
Dispatcher->dispatch('onError', object(ErrorEvent))in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/libraries/src/Application/EventAware.php (line 111)
WebApplication->triggerEvent('onError', object(ErrorEvent))in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/libraries/src/Application/CMSApplication.php (line 309)
CMSApplication->execute()in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/includes/app.php (line 63)
require_once('/home1/allmalvb/public_html/includes/app.php')in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/index.php (line 32)
From: Brian Teeman @.>
Sent: 18 January 2022 03:36 PM
To: joomla/joomla-cms @.>
Cc: ipresencesa @.>; Mention @.>
Subject: Re: [joomla/joomla-cms] Internal Server Error 500 (Issue #36730)
Besides documentation block changes I see no other changes in the code of com_redirect between 4.0.5 and 4.0.6 so I have no idea why that should change behaviour after an update.
But if you follow the instructions we will have a better idea
—
Reply to this email directly, view it on GitHub #36730 (comment) , or unsubscribe https://github.com/notifications/unsubscribe-auth/AM7P6FGV7R3LTA6KL4E25CDUWVUCXANCNFSM5MHATEPA .
Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub .
You are receiving this because you were mentioned.Message ID: @.***>
--
This email has been checked for viruses by AVG.
https://www.avg.com
The extended output:
Error
in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/plugins/system/redirect/redirect.php (line 243)
// Always count redirect hits
$redirect->hits++;
try
{
$db->updateObject('#__redirect_links', $redirect, 'id');
}
catch (Exception $e)
{
// We don't log issues for now
}
in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/libraries/vendor/joomla/event/src/Dispatcher.php -> handleError (line 486)
if ($event->isStopped())
{
return $event;
}
$listener($event);
}
}
return $event;
}
Dispatcher->dispatch('onError', object(ErrorEvent))in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/libraries/src/Application/EventAware.php (line 111)
else
{
throw new \InvalidArgumentException('The arguments must either be an event or an array');
}
$result = $dispatcher->dispatch($eventName, $event);
// TODO - There are still test cases where the result isn't defined, temporarily leave the isset check in place
return !isset($result['result']) || \is_null($result['result']) ? [] : $result['result'];
}
}
WebApplication->triggerEvent('onError', object(ErrorEvent))in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/libraries/src/Application/CMSApplication.php (line 309)
'application' => $this,
]
);
// Trigger the onError event.
$this->triggerEvent('onError', $event);
ExceptionHandler::handleException($event->getError());
}
// Send the application response.
CMSApplication->execute()in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/includes/app.php (line 63)
// Set the application as global app
\Joomla\CMS\Factory::$application = $app;
// Execute the application.
$app->execute();
require_once('/home1/allmalvb/public_html/includes/app.php')in https://www.allmaids.co.za/how-it-works /home1/allmalvb/public_html/index.php (line 32)
*/
define('_JEXEC', 1);
// Run the application - All executable code should be triggered through this file
require_once dirname(FILE) . '/includes/app.php';
From: Brian Teeman @.>
Sent: 18 January 2022 03:36 PM
To: joomla/joomla-cms @.>
Cc: ipresencesa @.>; Mention @.>
Subject: Re: [joomla/joomla-cms] Internal Server Error 500 (Issue #36730)
Besides documentation block changes I see no other changes in the code of com_redirect between 4.0.5 and 4.0.6 so I have no idea why that should change behaviour after an update.
But if you follow the instructions we will have a better idea
—
Reply to this email directly, #36730 (comment) view it on GitHub, or https://github.com/notifications/unsubscribe-auth/AM7P6FGV7R3LTA6KL4E25CDUWVUCXANCNFSM5MHATEPA unsubscribe.
Triage notifications on the go with GitHub Mobile for https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 iOS or https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub Android.
You are receiving this because you were mentioned.Message ID: @.***>
--
This email has been checked for viruses by AVG.
https://www.avg.com
Closing as having a pull request. Please test #36733 . Thanks in advance.
@ipresencesa Just apply the change of that PR on your 4.0.6 and check if it helps. If it does, please mark the test result in the issue tracker here https://issues.joomla.org/tracker/joomla-cms/36733 by using the "Test this" button, selecting the appropriate test result and submitting. Thanks in advance.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-18 14:46:08 |
Closed_By | ⇒ | richard67 |
that redirect is working for me