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

deleteUnexistingFiles() in the component install script calls Joomla\Filesystem\File::delete() for a list of files from old versions. File::delete() throws a FilesystemException when the file does not exist, so the script echoes FILES_JOOMLA_ERROR_FILE_FOLDER for every file that is not present, which is the normal case on new installs and on sites that were already cleaned up.

The folders below were already guarded with is_dir(). This PR adds the same guard (is_file()) for the files.

Testing Instructions

Install com_weblinks.zip (from dist/zips after robo build) on its own on a fresh site and check the installation message in the backend installer. Alternatively add a debug log in the catch block of deleteUnexistingFiles().

Expected result

No error lines for missing legacy files. Existing legacy files are still deleted.

Actual result

One FILES_JOOMLA_ERROR_FILE_FOLDER line per missing legacy file is added to the installer output (the installer captures script output as extension message).

Documentation Changes Required

None

avatar Hackwar Hackwar - open - 27 Nov 2026
avatar Hackwar Hackwar - change - 27 Nov 2026
The description was changed
avatar Hackwar Hackwar - edited - 27 Nov 2026

Add a Comment

Login with GitHub to post a comment