#471 Error: Could not delete folder. Path: [ROOT]/administrator/cache/com_content

Posted in ‘Technical Support / Bugs’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

Latest post by Olivier on Sunday, 21 September 2025 03:34 UTC

Massimiliano Monterosso

I wanted to report an issue I encountered related to caching in Joomla when using the J2Store content plugin.

Environment:

  • Joomla 5.5.3

  • PHP 8.3

  • J2Store plugin latest version

  • Hosting on Aruba shared Linux server

Issue:

When Joomla caching is enabled and the J2Store plugin’s internal caching is also turned on, I receive the following frontend error on non-product articles (on category and item pages that actually use articles as j2store products there is no error):

Could not delete folder. Path: [ROOT]/administrator/cache/com_content

This error does not occur if:

  • Joomla caching is disabled, or

  • The J2Store plugin cache control toggle is set to No

Disabling the J2Store content plugin entirely also removes the error.

It appears that both Joomla and J2Store attempt to manage the same cache folders simultaneously, causing a conflict and permission errors when deleting cache directories.

 

Olivier

Hello Massimiliano, 

thank you for reporting this issue and for all those details, it is very helpful. I will get back to you if I need more information.

Thank you!

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Olivier

Hello Massimiliano,

I looked into this issue.

The error you are reporting should be located in the logs as a warning, which was the previous behavior.

However, when Joomla switched from the Joomla\CMS\Filesystem to Joomla\Filesystem, handling of the delete warning moved from being logged to being an exception (and untranslated, which in my opinion is a problem).

In the j2store content plugin, I have added code that checks the folders and ensures the com_content folder is still in the cache before it is actually cleared. 

That does not help, which means the j2store content plugin's cache cleanup is called before whatever is clearing the cache for com_content. My other tests confirm this.

I have also noticed the issue is present in articles with product short codes.

That is my analysis so far... 

 

Olivier.

Growing Together

Help us get back to #1 in the Joomla Extension Directory by leaving us a 5-Star review here.

Stay Updated

Subscribe for free and be the first to know about the latest features, updates, and new additions.