2.13.1.1.6. Unable to create directory when uploading media file
Warning!
Highly recommended before making changes to the database create a backup copy of itto be able to roll back the changes you made.
When uploading media files to the library via WordPress admin panel an error like this may occur:
To remedy the situation, you can try the following:
- V config file site, look at the name of its database.
- Open the site database in phpMyAdmin.
- Find in the table
wp_options
string with valueupload_path
in columnoption_name
... To do this, you can execute such a SQL query:SELECT * FROM `wp_options` WHERE `option_name` = 'upload_path'
- Clear in the found row the field in the column
option_value
. - Check your media uploads.