Viewing 3 replies - 1 through 3 (of 3 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    The change in line 567 is just to check if the file is readable. If the file isn’t readable, then it should not be readable.

    What is your hosting configuration?

    Edit: Nevermind, I see the issue. I’ll bring it up to the maintainers. In the meantime, if you remove the is_readable() check, it’ll work again.

    Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    It appears this was actually fixed, so we need more information. What type of hosting are you using? Windows or Linux? Basically, what is the circumstances that cause this is_readable check to fail?

    Thread Starter Amritansh Trivedi

    (@amrt_tri)

    @otto42, thanks for looking into it.

    So we have our inhouse WP plugin framework in which we developed file transients to get rid of some hard caching issues. So we save certain info in our file transients and remove it every time admin make changes in the system.

    While this happens to so many of our clients as well as in our local setups.
    Here is my own local setup where this issue occurs.

    
    ### WordPress Environment ###
    
    WordPress address (URL): https://localwc.com
    Site address (URL): https://localwc.com
    WC Version: 3.8.0
    REST API Version: ? 1.0.2
    Log Directory Writable: ?
    WP Version: 5.3.1-alpha-46728
    WP Multisite: –
    WP Memory Limit: 256 MB
    WP Debug Mode: ?
    WP Cron: ?
    Language: en_US
    External object cache: –
    
    ### Server Environment ###
    
    Server Info: nginx/1.16.1
    PHP Version: 7.2.24-1+ubuntu18.04.1+deb.sury.org+1
    PHP Post Max Size: 256 MB
    PHP Time Limit: 10
    PHP Max Input Vars: 1000
    cURL Version: 7.58.0
    OpenSSL/1.1.1d
    
    SUHOSIN Installed: –
    MySQL Version: 5.7.27-0ubuntu0.18.04.1
    Max Upload Size: 256 MB
    Default Timezone is UTC: ?
    fsockopen/cURL: ?
    SoapClient: ?
    DOMDocument: ?
    GZip: ?
    Multibyte String: ?
    Remote Post: ?
    Remote Get: ?
    
    ### Security ###
    
    Secure connection (HTTPS): ?
    					Your store is not using HTTPS. Learn more about HTTPS and SSL Certificates.
    Hide errors from visitors: ?
    
    

    This is the path I am trying to delete using API.
    ~/wp-content/uploads/woofunnels/wfacp-transient

    Here is the ls -l on this directory

    Screenshot at 15:41:09.png

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Unable to delete folder(s) from uploads using File Direct API’ is closed to new replies.