PR-6.0-dev Pending

User tests: Successful: Unsuccessful:

avatar joomdonation
joomdonation
6 Dec 2025

Pull Request for Issue #46499.

Summary of Changes

PR #45289 introduced language caching to improve performance. However, it might causes error as described in the plugin #46499 if the cache file is corrupted for some reasons. This PR adds some code to prevent that. In case the included cache file does not return array, the cache file will be deleted so that it will be re-generated.

Testing Instructions

  • Uses Joomla 6
  • Look at administrator\cache\language folder, find the file administrator-language-en-GB-plg_system_guidedtours.ini.XYX.php, edit it, change the content to just the code below to make it broken:
<?php
defined('_JEXEC') or die;
  • Access to administrator area of your site. You should see fatal error

Actual result BEFORE applying this Pull Request

You get fatal error

Expected result AFTER applying this Pull Request

No error, even if cacch language file is broken

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar joomdonation joomdonation - open - 6 Dec 2025
avatar joomdonation joomdonation - change - 6 Dec 2025
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 6 Dec 2025
Category Libraries
cada051 6 Dec 2025 avatar joomdonation CS
avatar joomdonation joomdonation - change - 6 Dec 2025
Labels Added: PR-6.0-dev
avatar exlemor exlemor - test_item - 6 Dec 2025 - Tested successfully
avatar exlemor
exlemor - comment - 6 Dec 2025

I have tested this item ✅ successfully on cada051

I have tested this successfully, Thank you @joomdonation!


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46541.

avatar alikon alikon - test_item - 7 Dec 2025 - Tested successfully
avatar alikon
alikon - comment - 7 Dec 2025

I have tested this item ✅ successfully on cada051


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46541.

avatar alikon alikon - change - 7 Dec 2025
Status Pending Ready to Commit
avatar alikon
alikon - comment - 7 Dec 2025

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/46541.

avatar Lacis
Lacis - comment - 7 Dec 2025

Remove admin/cache, language fold+ autoload_psr4.php, copied J601 admin/language and language folder.

avatar joomdonation
joomdonation - comment - 8 Dec 2025

@Lacis Your last comment is not very clear. Could you please explain more details about it?

Add a Comment

Login with GitHub to post a comment