Skip to content

Conversation

@joomdonation
Copy link
Contributor

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

@richard67 richard67 added the bug label Dec 6, 2025
@exlemor
Copy link

exlemor commented Dec 6, 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.

@alikon
Copy link
Contributor

alikon commented Dec 7, 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.

@joomla-cms-bot joomla-cms-bot removed the bug label Dec 7, 2025
@alikon
Copy link
Contributor

alikon commented Dec 7, 2025

RTC


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

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Dec 7, 2025
@alikon alikon added the bug label Dec 7, 2025
@Lacis
Copy link

Lacis commented Dec 7, 2025

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

@joomdonation
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug PR-6.0-dev RTC This Pull Request is Ready To Commit

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants