Support » Plugin: Download Monitor » Upgrading from 1.9.9 to 4.0.8

  • Resolved etbassler

    (@etbassler)


    I am trying to upgrade a site from 1.9.9 to 4.0.8 but when I update the plugin it outputs all my links as:

    https://local.dev/capital/download/0/

    I saw that there is a legacy updater but this does not appear to apply to 1.9.9 and I cannot find 3.x anywhere to try stepped upgrade.

    Any insight would be greatly appreciated.

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    Please ignore the 3.x version. It is, in fact, older than 1.9.9. “Download Monitor” was created by a different developer who decided to change the plugin code and start the version back from 1.0. We took over the plugin from that point onwards and 1.9.x was the version before 4.0. We had to bump up the version from 1.9 to directly 4.0 so that we can allow users using the old version to switch to the newer code base.

    Regarding the issue you are facing, can you please go to one of the downloads that was created, save it and then test the link provided again?

    Yeah I am still getting https://local.dev/capital/download/0/ as the URL, with resaving the Download Monitor item as well as the post where we are accessing it.

    We are implementing Download Monitor using ACF fields with this little bit of code:

    $dlm_transcript = get_sub_field('protected_transcript');
     $choice = get_sub_field('transcript_choose_file_from');
    
     if( $choice == 'downloads' && $dlm_transcript ) {
    	$download = new DLM_Download( $dlm_transcript );
    	$file_url = $download->get_the_download_link();
     }

    I checked and all of the classes and everything seem to be the same in the new plugin and we are still getting the correct ID from our ACF field ($dlm_transcript). Likewise, we are getting a Download Monitor link, with the /download/0 at the end. It just doesn’t seem to be the specific Download Monitor item we are trying to access.

    Any thoughts would be greatly appreciated.

    I have to say that the same applies to me. All downloads get to 0 as ID.

    Stranger: I have my IDs from 2445 to 5595 (it count to be 1042 downloads… so… a lot).

    But the upgrading tools says that it finds ID range from 1 to 351. Than is trying to upgrade, but in fact it mess all, since in the end I have ID=0 on all posts.

    What can be done? Thank you!

    • This reply was modified 2 years, 4 months ago by .

    Any help, please?

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    To debug this issue, I would suggest first setting up a test site with same data as live site. Once this is done, please run the update again after disabling all other plugins except ours and also switch to the default WordPress theme. Let us know if this resolves the issue.

    I did it. The result was the same: [download id=”0″] for all my posts.

    Plugin Contributor Harish Chouhan

    (@hchouhan)

    Hello,

    Can you please email us at “support@download-monitor.com” so we can discuss this further and hopefully resolve the issue faster?

    I have contact the support e-mail. Thanks for your response, Harish.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Upgrading from 1.9.9 to 4.0.8’ is closed to new replies.