attachment links on pages/posts
-
Clicking on link opens up a page with error report and attachment doesn’t download.
Warning: include_once(…/wp-load.php): failed to open stream: No such file or directory in …\download.php on line 15
Warning: include_once(): Failed opening ‘…/wp-load.php’ for inclusion (include_path=’.;C:\php\pear’) in …\download.php on line 15
Fatal error: Call to undefined function da_download_attachment() in …\download.php on line 17
To resolve problem download.php has to be modified.
// sanitize path
$path_raw = str_replace( “\””, “”, $path_raw );
$path_raw = str_replace( “`”, “”, $path_raw );
$path_raw = str_replace( “..”, “”, $path_raw );
$path_raw = str_replace( “./”, “”, $path_raw );
//$path_raw = str_replace( “:”, “”, $path_raw ); <- modification!!!What is the purpose of ‘commented’ line?
- The topic ‘attachment links on pages/posts’ is closed to new replies.