This reply has been marked as private.
These are the notices I’m seeing in the WP debug.log:
[19-Dec-2019 17:41:42 UTC] PHP Notice: Undefined variable: regurl in /var/www/html/wp-content/plugins/download-manager/tpls/wpdm-login-form.php on line 114
[19-Dec-2019 17:41:42 UTC] PHP Notice: Undefined variable: log_redirect in /var/www/html/wp-content/plugins/download-manager/tpls/wpdm-login-form.php on line 120
[19-Dec-2019 17:41:42 UTC] PHP Notice: Undefined variable: log_redirect in /var/www/html/wp-content/plugins/download-manager/tpls/wpdm-login-form.php on line 149
[19-Dec-2019 17:42:50 UTC] PHP Notice: Undefined index: meta_value in /var/www/html/wp-content/plugins/wpdm-default-values/wpdm-default-values.php on line 79
[19-Dec-2019 17:42:50 UTC] PHP Notice: Undefined index: meta_value in /var/www/html/wp-content/plugins/wpdm-default-values/wpdm-default-values.php on line 82
I’m also seeing this one when WPDM is activated:
Notice: is_tag was called incorrectly. Conditional query tags do not work before the query is run. Before then, they always return false. Please see Debugging in WordPress for more information. (This message was added in version 3.1.0.) in /var/www/html/wp-includes/functions.php on line 4986
I’ll provide login credentials for my test instance in the next post.
Are you looking for a such add on which will allow you sharing your files for specific authors? you will find such an option in File Hosting & Sharing Add-on. you can personalize your files & file access. Please see the demo in the given URL.
Thanks.
Since the recent updates, our Custom Link templates have broken. We are using Default Values as well. We have the template setup so that clicking on the Button and the Title of the download should automatically download the file without showing the Download Page. This has now stopped working.
This is the template code:
<div class=”well c2a3″>
<div class=”media”>
<div class=”mr-3″ align=”left”>
[icon]
</div>
<div class=”media-body”>
<h3 class=”media-heading” style=”padding-top: 0px;border:0px;margin: 0 0 5px 0;font-size:12pt;”>
[title]
<span style=”font-size:8pt;font-weight:300″ class=”text-muted ml-4″>
<i class=”fa fa-hdd mr-1″></i> [file_size]
<i class=”ml-3 fa fa-arrow-alt-circle-down mr-1″></i> [download_count] downloads
</span>
</h3>
[excerpt_80]
</div>
<div class=”ml-3″ align=”right”>
[download_link]
</div>
</div>
</div>
<style>
.well.c2a3 .btn {
padding: 11px 30px;
font-size: 11pt;
}
.well.c2a3 .media-body {
font-size: 11pt;
}
.well.c2a3 .wpdm_icon {
height: 42px;
width: auto;
}</style>
Website (one of many where it is now not working!) https://trinitybuckshaw.lancs.sch.uk/news-events/newsletters/
-
This topic was modified 5 years, 9 months ago by
Chris Dawes.
If you attach files directly from server, it will store full path, as they not in the scope of wpdm, only files added using wpdm upload or only the file kept in wpdm upload folder download-manager-files
will work seamlessly after migration, for other files you may need to update file path. Please give me temporary wp-admin login info and a package url with path issue to check it in details.
This reply has been marked as private.
Is there anyway to modify the featured image or templates during bulk import, via changing values in the CSV?
I need to add multiple images that already exist on the server, and so have the URL for the download link as well as what I would like to use for the featured image.
I have attempted to mass change templates via the CSV import method but there is no field for featured image URL.
Thanks
This is on the admin side. The download link for the free file does not work (likely due to the fact that it is adding that additional directory to the URL when attaching the free file to the package). Please advise.
How do you override the 128X128 Thumbnail image size in a custom Link Template.
Here’s my code:
<div class=”panel panel-default c2a4″ style=”margin-top: 15px; margin-right: 150px; margin-bottom: 15px; margin-left: 150px;background: #f5f7f9″>
<div class=”panel-body text-center” style=”padding-bottom: 20px”>
<div class=”text-center wicon”>
[thumb_384x384]
</div>
<h3 style=”padding: 0;margin: 0;margin-bottom: 5px”>[title]</h3>
<div class=”panel-footer text-center” style=”background: #fcfcfc”>
View More
<div class=”d-button d-inline-block”>[download_link]</div>
</div>
</div>
<style>
.w3eden .text-small{ font-size: 10px; }
.w3eden .c2a4 .wpdm_icon{ height: 64px !important; width: auto; } .well.c2a4 .media-body{ font-size: 11pt; }
.w3eden .c2a4 .wicon img{ border-radius: 2px; max-width: 20px;margin: 15px auto 25px !important; }
.w3eden .c2a4 .btn{ border-radius: 20px; margin: 0 3px; padding: 0 25px !important; height: 36px !important; line-height: 36px !important; font-size: 12px; font-weight: 800; }
</style>
The login redirection loop usually appears when the site is not fully secured. For example, site’s frontend is not https but after login, redirecting the user to an https area. Making both sides https should fix the issue.
Alternatively, you can use yoursite.com/wp-login.php?skipwpdm=1
URL to skip the WPDM login page. Adding this wp-login.php?skipwpdm=1
after site URL will bypass the WPDM Login page even when the Login Page option is set on frontend settings.
This reply has been marked as private.
This reply has been marked as private.
Hi,
The IPN URL is related to the Pro Membership add-on and it is called right after a PayPal payment. Please check your PayPal account, maybe IPN is disabled in your account as the mail indicates.
Best regards.
You can add this template tag in your email lock template
<a href=”[#download_url#]
“>Download
In case of any problem Please send temporary wp-admin login info in private reply to check the issue.
-
This reply was modified 5 years, 9 months ago by
Abdus Sattar.
This reply has been marked as private.
1 ) Create a page with WPDM Login Shortcode [wpdm_login_form redirect="redirect_url"]
and set it as Login page in Downloads > Settings > Frontend Access page.
2 ) Add the following code to your theme’s functions.php
file,
add_action( 'template_redirect', 'wpdm_login_redirect' );
function wpdm_login_redirect(){
if( ! is_user_logged_in() && get_the_ID() != get_option('__wpdm_login_url') ):
wp_redirect( get_permalink( get_option('__wpdm_login_url') ) );
exit();
endif;
}
The login redirection loop usually appears when the site is not fully secured. In your case, the frontend is not https but after login, you are redirecting the user to an https area. Making both sides https should fix the issue.
Alternatively, you can use yoursite.com/wp-login.php?skipwpdm=1
URL to skip the WPDM login page. Adding this wp-login.php?skipwpdm=1
after site URL will bypass the WPDM Login page even when the Login Page option is set on frontend settings.
Hi,
Have you enabled the archive page from Downloads > Settings > Basic > URL Structure panel? If this option is active but still nothing in archive URL then please send temporary wp-admin login info in private reply.
You can use this addon WPDM Directory Add-on to get more advanced features like ajax search, filter, link template support etc.
Thanks
1 ) Yes, you can modify the email subject and content by customizing email template email-lock
from Downloads > Templates > Email templates Tab.
2 ) The email lock form is using the /download-manager/tpls/lock-options/email-lock-form.php
template. To customize this template, make a copy and place it in /active-theme/download-manager/lock-options/email-lock-form.php
location. Then add your customization in this new template to redirect to a thank you page.
Now, this new template will override the default one. As the file is outside the plugin directory, your customizations won’t be lost during the plugin update.
You just have to add the following line in the marked location http://prntscr.com/q07tv4
location.href = "https://www.impresadievolvere.it/";
Adjust the URL to match your redirect destination.
This reply has been marked as private.
Hi Shahriar,
I have an update on this.
I disabled the theme lazy loading option and instead used a plugin called WPMU Dev Smush. The same thing occured whereby the 48x48px thumbnails disappeared, but this plugin has an option to exclude certain IDs, classes or URLs. I’ve disabled it on the /download/ slug so the thumbs are not affected, but it is working on the main Directory view.
This seems to get around the slow loading problem, but I will have to see how it performs when we add more packages.
Do you think in the future a frontend might be possible that uses ‘actual’ pagination, rather than loading all packages at once?
Thanks,
Luther
This button is linked to a URL which is coming from the __wpdm_acf_LivePreview_sitepreview
custom field. This is useful when you want to add a demo of the product ( i.e. a WordPress theme or template or any other product demo ) you are selling.
Hi,
The fix is noted for implementation. By the way, you can remove the subdirectory from the URL if you want. Just remove the sundir part in “Site Address (URL)” settings.
Thanks.
It is not possible to use the embedded form in all packages table.
Use a custom link template with [download_link_dynamic]
template tag to render the download button based on lock status. Here is the code to implement this tag.
function wpdm_download_link_dynamic($vars){
if ( wpdm_is_locked( $vars['ID'] ) )
$vars['download_link_dynamic'] = $vars['download_link_extended'];
else
$vars['download_link_dynamic'] = "<a class='btn btn-success' href='".$vars['download_url']."' target='_blank'>".$vars['link_label']."</a>";
return $vars;
}
add_filter( 'wdm_before_fetch_template', 'wpdm_download_link_dynamic', 10, 1 );
I’m on version 5.0.2 with all the add-ons up to date and have a few undefined variables and indexes:
PHP Notice: Undefined index: page_template in /public/wp-content/plugins/wpdm-default-values/wpdm-default-values.php on line 69
PHP Notice: Undefined index: template in /public/wp-content/plugins/wpdm-default-values/wpdm-default-values.php on line 71
PHP Notice: Undefined variable: regurl in /public/wp-content/plugins/download-manager/tpls4/wpdm-login-form.php on line 114
PHP Notice: Undefined variable: log_redirect in /public/wp-content/plugins/download-manager/tpls4/wpdm-login-form.php on line 120
PHP Notice: Undefined variable: log_redirect in /public/wp-content/plugins/download-manager/tpls4/wpdm-login-form.php on line 149