Download od media not working if wordpress not in webroot directory
-
If the webroot directory is in some kind of subdirectory of a host, the download media button seems not to work properly.
After migration to a professional provider the problem occured.
If i copy the file Url e.g.:https://karl-westermann.org/wordpress/wp-content/uploads/2013/01/Notturno.mp3
directly to the adress bar of the browser, the file gets played.
when hitting the download button i get the error:
“The file /…./pages/6c/75/d…..5/home/htdocs/wordpress/wp-content/uploads/2013/01/Notturno.mp3 doesn’t exist; check the URL”the part “/…/pages/6c/75/d…..5/home/htdocs” is some kind of hoster specific directory tree i have no influence on.
Without being a php programmer i had a look in the map_download.php and there you generate the string path for the download files with diffrent variables.
Maybe “$web_root = $_SERVER[“DOCUMENT_ROOT”]” produces wrong results in the new setup.Did you try such a setup?
Any suggestions?Sincerly
- The topic ‘Download od media not working if wordpress not in webroot directory’ is closed to new replies.