- Issue created by @Qusai Taha
- Issue was unassigned.
- Status changed to Needs review
7 months ago 12:59pm 6 June 2024 - Assigned to josebc
- Issue was unassigned.
- Status changed to Needs work
6 months ago 2:35pm 10 June 2024 - 🇯🇴Jordan josebc
Qusai Taha is there any particular reason for the redirect instead of throwing a NotFoundHttpException?
- 🇯🇴Jordan Qusai Taha Amman
josebc I'm not sure why, but when I tried to apply NotFoundHttpException with the following code:
if (empty($image)) { throw new NotFoundHttpException(); }
I encountered the following error:
Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1454080 bytes) in /app/docroot/core/lib/Drupal/Core/Database/StatementWrapperIterator.php on line 111 Fatal error: Allowed memory size of 1073741824 bytes exhausted (tried to allocate 1421312 bytes) in Unknown on line 0
This is the reason I want to redirect to a 404 page.
- Assigned to PrabuEla
- 🇮🇳India PrabuEla chennai
Hi Can you please try with the patch.
end($image)->id() this will always return bool value if empty - Issue was unassigned.
- Status changed to Needs review
6 months ago 11:38am 12 June 2024 - 4a95ebd6 committed on 1.0.x
Issue #3452971 by PrabuEla, Qusai Taha, josebc, Rajab Natshah: Redirect...
- 4a95ebd6 committed on 1.0.x
- Status changed to Fixed
6 months ago 12:13pm 13 June 2024 Automatically closed - issue fixed for 2 weeks with no activity.