• Resolved converting2wp

    (@converting2wp)


    I’ve got a fresh install.

    The shortcode

    [wpdm_package id=’1871′ ]

    works fine to show an icon, info about the file, and a link to download it.

    However, the shortcode

    [wpdm_direct_link id=’1871′ link_label=’My Link Text’]

    gives a simpler display (which I prefer) but the link doesn’t work — as others have noted it redirects to the home page (and the link itself is http://mysite.com/?wpdmdl= )

    Is that shortcode (or wpdm_hotlink referenced in the summary) supposed to work?

    More info:
    The errors in the debug.log file include

    [09-Dec-2014 18:07:08 UTC] WordPress database error Table ‘mydb.wp_prod7846h_ahm_files’ doesn’t exist for query select * from wp_prod7846h_ahm_files where id=’1871′ made by require(‘wp-blog-header.php’), require_once(‘wp-includes/template-loader.php’), include(‘/themes/get-business/single.php’), the_content, apply_filters(‘the_content’), call_user_func_array, do_shortcode, preg_replace_callback, do_shortcode_tag, call_user_func, wpdm_direct_link
    [09-Dec-2014 18:07:08 UTC] PHP Notice: Undefined variable: class in n /home/myuser/mywebroot/wp-content/plugins/download-manager/wpdm-core.php on line 380
    [09-Dec-2014 18:07:08 UTC] PHP Notice: Undefined variable: link_slabel in /home/myuser/mywebroot/wp-content/plugins/download-manager/wpdm-core.php on line 38

    Yea, verily, there is no database table whose name include ahm.

    https://wordpress.org/plugins/download-manager/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter converting2wp

    (@converting2wp)

    PS: I was only looking whether the file would appear to download. It is a PDF and I needed the fix from

    https://wordpress.org/support/topic/file-corruption

    to actually have a downloaded file I could use.

    Plugin Author Shahjada

    (@codename065)

    Sorry, I got the issue with [wpdm_direct_link id=’1871′ link_label=’My Link Text’] , adjusting it with next update, until then you can use direct download link ( http://mysite.com/?wpdmdl=ID ) manually.

    Plugin Author Shahjada

    (@codename065)

    Issue fixed, please update to v2.7.7

    Thread Starter converting2wp

    (@converting2wp)

    Updated to 2.7.7

    wpdm_hotlink is now working (wasn’t recognized as a shortcode before).

    But there doesn’t seem to be any change in the behavior of wpdm_direct_link so your workaround is still needed. The hotlink shortcode is what I want (and your “disable resumbable download in the other thread has fixed the file corruption problem).

    So I have what I need for a fairly simple application — but warning others.

    Plugin Author Shahjada

    (@codename065)

    wpdm_direct_link is not required anymore, it is now wpdm_hotlink.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Short code for post link?’ is closed to new replies.