• Resolved sohaibwoof

    (@sohaibwoof)


    Hey there,

    I just updated WordPress and DLM from 4.52.x to 4.7.72 and all of sudden all download files are showing “Access denied to this file Go to homepage →” error

    I have gone through a couple of thread related to this issue on your forum but not able to resolve the issue. We are using custom WordPress structure (https://packagist.org/packages/johnpbloch/wordpress) with symlinks. The wp-content is outside of WordPress so that we can use composer to update plugins.

    Below are the facts.
    Path via SSH WordPress files: /home/master/applications/sew*****gftd/public_html/current

    • WordPress directory location/home/***********.cloudwaysapps.com/sew*****gftd/public_html/releases/6/wordpress
    • Uploads directory location/home/***********.cloudwaysapps.com/sew*****gftd/public_html/releases/6/wp-content//uploads
    • ssh PWD command /home/master/applications/sew*****gftd/public_html/current/wp-content/uploads
      I am not sure what path I need to enter in Settings -> Advanced -> Miscellaneous -> Other downloads path
      Can anyone please help…

    • This topic was modified 1 year, 10 months ago by sohaibwoof.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Razvan Aldea

    (@raldea89)

    Hey @sohaibwoof ,

    Could you please enter : /home/master/applications/sew*****gftd/public_html/current/wp-content in the Other Downloads Path setting and let us know if this did the trick?

    Warmly,
    Razvan

    Thread Starter sohaibwoof

    (@sohaibwoof)

    Hey Razvan,
    Sorry for the late reply. ok, I tried with the path you suggested, but it still shows the same “Access denied to this file” error on the page.

    Plugin Author Razvan Aldea

    (@raldea89)

    Maybe I did not understand correctly. What is the true path for the Uploads directory? That is what you need to enter. In the worst case scenario, entering / will work, but I recommend entering the true path of the Uploads directory.
    Maybe this doc entry can help : https://www.download-monitor.com/kb/add-path/ ?

    Warmly,
    Razvan

    Thread Starter sohaibwoof

    (@sohaibwoof)

    Thanks for your response..


    Below is the var_dump of wp_upload_dir();
    array(6) { [“path”]=> string(92) /home/*******.cloudwaysapps.com/sew*****gftd/public_html/releases/6/wp-content//uploads/2023/01″ [“url”]=> string(51) “https://ourdmain/wp-content//uploads/2023/01” [“subdir”]=> string(8) “/2023/01” [“basedir”]=> string(84) “/home/*******.cloudwaysapps.com/sew*****gftd/public_html/releases/6/wp-content//uploads” [“baseurl”]=> string(43) “https://ourdmain/wp-content//uploads” [“error”]=> bool(false) }

    When I tried “/home/*******.cloudwaysapps.com/sew*****gftd/public_html/” or only “/” enabled the file to download but the page still shows the “Access denied to this file…” error.

    1. Is it possible if I can share the details in a private message or setup an account for you on the staging site?
    2. Just wonder, is it something that can be a quick fix with the paid version?

      Cheers,
      Sohaib
    Plugin Author Razvan Aldea

    (@raldea89)

    Hello Sohaib,

    Could you please let me know what is the result of doing a readlink on the path: “/home/*******.cloudwaysapps.com/sew*****gftd/public_html/releases/6/wp-content//uploads”
    So :
    – readlink(“/home/*****.cloudwaysapps.com/sewgftd/public_html/releases/6/wp-content//uploads” )

    Warmly,
    Razvan

    Thread Starter sohaibwoof

    (@sohaibwoof)

    Hey, I tried the readlink but it still shows the same “Access denied to this file” error.
    I am wondering if it’s possible can I set up a test login account for you. If yes, share ur details here or email me privately.
    [email protected]

    • This reply was modified 1 year, 10 months ago by sohaibwoof.
    Thread Starter sohaibwoof

    (@sohaibwoof)

    @raldea89 Just wondering if you are still following this thread?

    Plugin Author Razvan Aldea

    (@raldea89)

    Hey @sohaibwoof ,

    Yes, still following this thread ( we’ve had a national day off here ).

    Is it possible to send the debug.log file for us to take a look? Also, might need some screenshots of the dashboard > Tools > Site Health > Info page, that might be more sensible, like Directories & Sizes, and a screenshot of Download Monitor’s settings and also a screenshot of the edit page from a Download that gives you errors.

    If you don’t want to share those here please use our contact form here.

    Warmly,
    Razvan

    Thread Starter sohaibwoof

    (@sohaibwoof)

    Hey @raldea89
    I just shared all the details via your contact form.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘All Downloads broken.. Access denied to this file Go to homepage →’ is closed to new replies.