No Folders are Showing Despite Reset Data
-
Hi,
I am facing a strange issue.
I am hosting my website on digitalocean. I have recently linked (symbolic link) the upload folder to the dedicated mounted disk volume for media files only. After that I can’t see any folder on my interface.
I have tried to reset the data as suggested on quick fix guide also but it didn’t solved the issue.
Does symbolic link affects the function of this plugin?
ln -s /wp-content/uploads /mnt/some_volumeThe default media library of WordPress is not affected by this however.
How can I get back my folders?
Thanks!
-
We can check what folder and file data has been collected. In the Reset plugin, there are two reports, Display Folder Data and Display Attachment URLs. Check both of these to see that both contain information about your folders and files. Then test viewing one of the media files’ URLs to verify that it is correct and accessible.
My WooCommerce products are showing well. I have checked and images uploaded are viewable.
I can view all the uploads from the regular media library.
Only I can’t see the folders when using this plugin
Please see the screenshots for your reference
Thanks!
-
This reply was modified 1 year, 1 month ago by
Deepak.
Your folder data may not be correct. I would expect to see the first record like this:
177184 uploads http://www.kinaun.com/wp-content/uploads 0You could check to see if your mgmlp_folders table, using PHPMyAdmin, contains a record like this.
post_id: 177184
folder_id: 0
term_id: NULL
If not, try adding it.
mgmlp_folders is empty
Please check the screenshot
-
This reply was modified 1 year, 1 month ago by
Deepak.
I have tried to add one as you have suggested but I couldn’t find the
term_idfield.Screenshot
The term_id must be in the pro version, but it is not important. After adding the record, does the folder tree appear?
No. None so far. I am waiting. I am thinking probably due to large number of uploads.
However, I have set the limit to show only 20 images on settings.
Not sure why I am seeing the folders.
No. None so far. I am waiting.
I am thinking it make take time due to large number of uploads.
However, I have set to show only 20 images at a time on settings but I am not seeing anything so far.
It does not take long for the folders to load, and you do not have a lot of them. But note above the folder tree in your screenshot, the location of the current folder is missing. This text is displayed before querying the database and displaying the files in a folder. Thus, the plugin is not finding the current folder ID, usually the ID of the uploads folder when the page is opened, and that is why no folders are showing up. The ID of the uploads folder should have been reset and saved when you ran the reset procedure. So I do not know why it is not functioning.
There are other things you can do though not directly related to the folder data, such as increasing the max_execution_time setting to at least 300 seconds in the site’s .htaccess and increasing the amount of memory for the backend, by adding this line to your wp-config file:
define('WP_MAX_MEMORY_LIMIT', '512M');This setting is different from the ‘WP_MEMORY_LIMIT’ setting that set the amount of memory for the frontend.
Hi @alanp57
Last time I stumbled on same problem and you have suggested these.
Since then my
max_execution_time is 900define('WP_MEMORY_LIMIT', '256M');define('WP_MAX_MEMORY_LIMIT', '512M');Any other suggestion on how to fix the problem?
Thanks!
Just recently checked,
When I load the Media Library Folder page, I have noticed this on developer console
It says
Scripts that have a dependency on [wc-date] must be loaded in the footer, dokan-pro-frontend-shipping was registered to load in the header, but has been switched to load in the footer instead. See https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/5059Does it have something to do with this plugin? I am not sure.
No. In fact, ‘wc-date’ does not appear in the Media Library Folders plugin code.
So I do not know why the plugin is failing to find the folder ID that it needs to display the folder location and load the folder tree.
Your folder data may not be correct. I would expect to see the first record like this:
177184 uploads http://www.kinaun.com/wp-content/uploads 0You could check to see if your mgmlp_folders table, using PHPMyAdmin, contains a record like this.
post_id: 177184
folder_id: 0
term_id: NULL
If not, try adding it.
Where did you get that number 177184?
How can I check the folder ID?
Seems like my tables are populated now but still says no folders found while refreshing.
Its weird
When I attempted to make a new folder, It shows me this message
directory traversal attempt detected.I am suspecting, it has something to do with my firewall.
I am trying to check the network request on developer console to understand what type of query or request is sent by MLF but network section shows nothing.If I have idea, I can check and allow MLF specific queries from firewall.
Any suggestion?
Thanks!
As per this discussion https://wordpress.org/support/topic/directory-traversal-attempt-detected-when-creating-directories-2/, I have disabled the code (since my uploads folder is symbolic link) and it worked.
I have disabled all the firewall rules, but still folder list doesn’t show up.
-
This reply was modified 1 year, 1 month ago by
The topic ‘No Folders are Showing Despite Reset Data’ is closed to new replies.