Pending

User tests: Successful: Unsuccessful:

avatar Hackwar
Hackwar
27 Nov 2026

Pull Request for Issue # .

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

This change was created with the help of AI (Claude Code).

Summary of Changes

When the single weblink view is opened with an id that does not exist, AdminModel::getItem() returns false and stores the string JLIB_APPLICATION_ERROR_NOT_EXIST as error. handleModelErrors() only rethrows Exception objects with code 404, so it throws a GenericDataException with code 500 instead.

The view now throws a 404 "Web Link not found." when no item was loaded.

Testing Instructions

Open index.php?option=com_weblinks&view=weblink&id=99999 on the frontend (an id that does not exist).

Expected result

404 error page "Web Link not found."

Actual result

500 error page.

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment