Hi, and thanks for your reply.
As I can see, your path has not been properly determined and compiled traffic.
I can help you fix the problem however I need your help for it.
With you is the first problem of the slash at the beginning:
/C:\xampp\htdocs\wordpress/wordpress/wp-content/uploads/2017/01/Hallelujah-Karaoke-HD-In-the-style-of-Alexandra-Burke.mp3
Then these more slashes are backslahes:
C:\xampp\htdocs\wordpress
And here it is normal slashes:
/wp-content/uploads/2017/01/Hallelujah-Karaoke-HD-In-the-style-of-Alexandra-Burke.mp3
So that I can fix the error, please do the following:
- Open the download-counter-button folder either in the WP editor under Design -> Editor or under
wp-content/plugins/download-counter-button
- Open in
classes/class.MelibuDownloaderAbstract.php
- On line 79,
protected function parse_url_to_path ($ url, $ absolutepath) {
You find this function
- Write this down as follows:
/**
* GET PATH
* @param type $url
* @param type $absolutepath
* @return string
*/
protected function parse_url_to_path($url, $absolutepath) {
$arr = parse_url($url);
$thinpart = str_replace(filter_input(INPUT_SERVER, "DOCUMENT_ROOT"), '', $absolutepath);
// Please do the following and, as I have done, these four echos with these variables.
// ECHO 1
echo $thinpart . '<br>';
// ECHO 2
echo $absolutepath . '<br>';
$thinparter = str_replace($thinpart, '', $absolutepath);
// ECHO 3
echo $thinparter;
if ($thinpart == $absolutepath) {
$fullfilepath = '/' . trim($absolutepath, '/') . $arr['path'];
} else {
$fullfilepath = $thinparter . $arr['path'];
}
// ECHO 4
echo $fullfilepath;
return $fullfilepath;
}
- post here then from the output
-
This reply was modified 8 years, 1 month ago by
prod3v3loper.
-
This reply was modified 8 years, 1 month ago by
prod3v3loper.