User-defined settings for media paths are not respected in Content > Media list Topic is solved

Need help with the Administration of your Joomla! 5.x site? This is the spot for you.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Post Reply
tychapogoy
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 209
Joined: Thu Oct 01, 2015 7:52 pm

User-defined settings for media paths are not respected in Content > Media list

Post by tychapogoy » Mon Apr 15, 2024 12:33 pm

Joomla 5.0.3
PHP 8.2.17
MySQLi 10.5.24-MariaDB-1:10.5.24+maria~ubu2004-log

Description:
In Joomla 5.0.3, there appears to be a bug affecting the media path settings within the administrative interface. Specifically, user-defined settings for "Path to Files Folder" and "Path to Images Folder" under Options > Component > Media do not reflect in the Content > Media section. Despite setting these paths to a custom folder (e.g., "files" for the files folder), the media manager continues to default to and list contents from the "images" folder only.

Steps to Reproduce:
  • Navigate to System > Global Configuration.
  • Select the Media component under the Components tab.
  • Set 'Path to Files Folder' to a custom folder (e.g., "files").
  • Set 'Path to Images Folder' to a different custom folder if desired.
  • Save the settings.
  • Go to Content > Media.
  • Observe that the media list still points to and shows contents from the "images" folder rather than the newly specified paths.
Expected Result:
The media manager should reflect the user-defined settings for both "Path to Files Folder" and "Path to Images Folder", displaying files and folders from the specified paths.

Actual Result:
The media manager ignores the custom settings and continues to display contents from the default "images" folder.

Additional Information:
No errors are displayed on the interface or in the Joomla logs that indicate a failure to update or read the new settings.
The user can set a Path to Files Folder to an inaccessible directory (administrator) and than an error comes up as expected. But files folder is not this case.

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2737
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: User-defined settings for media paths are not respected in Content > Media list

Post by ceford » Mon Apr 15, 2024 2:46 pm

Plugins File System - Local ... Add files

tychapogoy
Joomla! Enthusiast
Joomla! Enthusiast
Posts: 209
Joined: Thu Oct 01, 2015 7:52 pm

Re: User-defined settings for media paths are not respected in Content > Media list

Post by tychapogoy » Thu Apr 18, 2024 9:13 am

Accepted as answer, but for clarity:
Set new Media locations in System > Plugins > FileSystem - Local

What is then Media:Options > Path to Files Folder and > Path to Images Folder for?

User avatar
ceford
Joomla! Hero
Joomla! Hero
Posts: 2737
Joined: Mon Feb 24, 2014 10:38 pm
Location: Edinburgh, Scotland
Contact:

Re: User-defined settings for media paths are not respected in Content > Media list

Post by ceford » Thu Apr 18, 2024 9:45 am

tychapogoy wrote:
Thu Apr 18, 2024 9:13 am
What is then Media:Options > Path to Files Folder and > Path to Images Folder for?
I have no answer to that. And the Inline Help: This path has to be the same as path to files (default) or to a subfolder of the path to file folder. does not seem to make sense. The parameters appear in the media page source for use by JavaScript.


Post Reply

Return to “Administration Joomla! 5.x”