• Resolved Deepak

    (@d88pak)


    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_volume

    The default media library of WordPress is not affected by this however.

    How can I get back my folders?

    Thanks!

Viewing 15 replies - 1 through 15 (of 21 total)
  • Plugin Author AlanP57

    (@alanp57)

    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.

    Thread Starter Deepak

    (@d88pak)

    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

    https://prnt.sc/LTB-_VeIn8YD

    https://prnt.sc/GaksX6J1-vfZ

    https://prnt.sc/7YoXzDgNhy_S

    Thanks!

    • This reply was modified 1 month ago by Deepak.
    Plugin Author AlanP57

    (@alanp57)

    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 0

    You 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.

    Thread Starter Deepak

    (@d88pak)

    mgmlp_folders is empty

    Please check the screenshot

    https://prnt.sc/jCGnbETYHaSj

    • This reply was modified 1 month ago by Deepak.
    Thread Starter Deepak

    (@d88pak)

    I have tried to add one as you have suggested but I couldn’t find the term_id field.

    Screenshot

    https://prnt.sc/YKK-XiLky2wO

    Plugin Author AlanP57

    (@alanp57)

    The term_id must be in the pro version, but it is not important. After adding the record, does the folder tree appear?

    Thread Starter Deepak

    (@d88pak)

    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.

    Thread Starter Deepak

    (@d88pak)

    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.

    Plugin Author AlanP57

    (@alanp57)

    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.

    Thread Starter Deepak

    (@d88pak)

    Hi @alanp57

    Last time I stumbled on same problem and you have suggested these.

    Since then my

    max_execution_time is 900

    define('WP_MEMORY_LIMIT', '256M');

    define('WP_MAX_MEMORY_LIMIT', '512M');

    Any other suggestion on how to fix the problem?

    Thanks!

    Thread Starter Deepak

    (@d88pak)

    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/5059

    Does it have something to do with this plugin? I am not sure.

    Plugin Author AlanP57

    (@alanp57)

    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.

    Thread Starter Deepak

    (@d88pak)

    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 0

    You 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.

    Thread Starter Deepak

    (@d88pak)

    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!

    Thread Starter Deepak

    (@d88pak)

    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.

Viewing 15 replies - 1 through 15 (of 21 total)
  • You must be logged in to reply to this topic.