Downloads won't start after moving website to domain

Viewing 12 posts - 1 through 12 (of 12 total)
#61415

dimarktg
Member

As subjected, I moved the website from “localhost” local server to online domain and when I click the “download” links they just won’t start, means that I click, “waiting for response” on browser status bar for a few seconds and the loading stops with the download page kind of quickly refresh itself with nothing happening: no download dialog window asking for where to save the file.
The “localhost” version on my PC works fine.
Please note:
– plugin is updated
– extended shortcodes plugin is updated
– wordpress is updated and working fine in all of its parts
– permissions on downloads directory are OK (i even assigned a 777 temporary permission both on files and dirs/subdirs)
– static download links works perfectly (i put one on a download page with full URL and the file is downloaded properly)
– already tried adding a package shortcode on the download page but I get exactly the same problem (download won’t start)
– files were originally added through the “Browse” tool on the download edit page (anyway, as a test, I re-added file once online, the file is regularly attached to download page but download won’t start. files browsing works fine, all the downloads files are there)
– permalinks were correctly saved after moving website to domain (Settings > Permalink)
You can test what I’m saying by accessing this page (just click the “Download” link and nothing will happen).
Can you please help me to find a solution? Which other checks should I do?
Thank you!

#61417

Shahriar
Moderator

Hi, Could you please send temporary wp-admin login info in private reply, so I can check this issue in your installation?

 

#61455

dimarktg
Member
This reply has been marked as private.
#61614

dimarktg
Member

Hello!
Can you please let me know about the above request? It is pretty urgent that we solve this problem as our customers are actually unable to access documents about our products, which is awkward by the way.
Thank you for your understanding, we look forward to your reply with the requested informations.

#61696

Shahriar
Moderator

You can use this email address support@wpdownloadmanager.com for temporary user. Keep it activated, I will check at my earliest possible time.

#62126

dimarktg
Member
This reply has been marked as private.
#62163

dimarktg
Member

Hello Shahriar,
We kindly ask you to please have a look at our issue as soon as possible, we are to send out an important newsletter (links are pointing out to our website!) regarding a very important event we will take part to in the following days and we need the plugin to work properly.
Temporary login for you is active (as previously mentioned) and we saw that you already verified issues of other users of this forum for the same plugin in less than 24 hours.
We understand our issue might be more complex for you to sort out but it is extremely vital for us that all works perfectly online as it does locally.
Customers are already writing to us saying they are unable to download our brochures and technical specs (since 3 weeks now, which is awkward).
We are sure that you understand our trouble and we are confident that you will verify and find a solution in the shortest time possible.
Look forward to hear from you.
Thanks!

#62216

dimarktg
Member

Good morning Shahriar,

we still have no news from you about our issue, no login access from you over the last 2 days.

Please, let us know as soon as possible, we urgently need this to be fixed, it is a very serious problem for our company.

Thank you for your understanding.

#62218

Shahjada
Keymaster

Downloads are working fine now.

#62219

dimarktg
Member

Hello Shaon.

Can you please explain what the problem was and how you fixed it? I need this information in order not to repeat this issue and also, as requested, to report activities with your temporary login.

Thank you.

#62279

dimarktg
Member

Hello Shaon,
as mentioned above, i need to know exactly what you edited.
Please reply privately or e-mail asap.
Thank you!

#62350

Shahjada
Keymaster

WPDM generate download links are packageurl?wpdmdl=packageid which is not working for strange reason in your server, so I had to change it to homeurl?wpdmdl=packageid.

Changed file: class.Package.php

Old Code:

public static function getDownloadURL($ID, $ext = ''){
        if(self::isLocked($ID) && !isset($_SESSION['_wpdm_unlocked_'.$ID])) return '#locked';
        if ($ext) $ext = '&' . $ext;
        $permalink = get_permalink($ID);
        $sap = strpos($permalink, '?')?'&':'?';
        return $permalink.$sap."wpdmdl={$ID}{$ext}";
    }

Changed Code:

public static function getDownloadURL($ID, $ext = ''){
        if(self::isLocked($ID) && !isset($_SESSION['_wpdm_unlocked_'.$ID])) return '#locked';
        if ($ext) $ext = '&' . $ext;
        $permalink = home_url();
        $sap = strpos($permalink, '?')?'&':'?';
        return $permalink.$sap."wpdmdl={$ID}{$ext}";
    }
Viewing 12 posts - 1 through 12 (of 12 total)

The topic ‘Downloads won't start after moving website to domain’ is closed to new replies.