This reply has been marked as private.
Hi,
please make the same URL in WordPress Address (URL) and Site Address (URL), they were not same, so the problem was creating, I hope it will resolve the problem, it is in Settings > General Settings

now while adjusting it, some problem has been created, sorry for this, for fixing this please follow below procedures,
Fix #1: Changing the WordPress Site URL by Editing the wp-config.php file
Login to your WordPress hosting cPanel.
Under the Files section, click on File Manager, OpenFile Manager and in your WP folder directory search for a file called wp-config.php and click on Edit File,
define('WP_SITEURL', 'https://www.example.com');
define('WP_HOME', ' https://www.example.com');
Fix #2: Changing WordPress site URL via phpMyAdmin
Login to your hosting cPanel and open phpMyAdmin
Select the database of your WordPress site from the left sidebar
Select wp_options table
Note: wp_ prefix may differ depending on your WordPress installation settings

edit those and save
I hope your problem will be solved,
thanks
Hello,
I’m getting a lot of php errors with DM
Example:
Notice: Trying to access array offset on value of type bool in /home/site/public_html/wp/wp-content/plugins/download-manager/admin/tpls/settings/addon-update.php on line 79
Timestamp: 2020-12-06 12:38:45 UTC
Stack Trace
-----------
1. include('/home/site/public...')
/home/site/public_html/wp/wp-content/plugins/download-manager/admin/menus/class.Settings.php:339
2. WPDM\admin\menus\Settings->pluginUpdate()
/home/site/public_html/wp/wp-content/plugins/download-manager/admin/tpls/settings.php:30
3. include('/home/site/public...')
/home/site/public_html/wp/wp-content/plugins/download-manager/admin/menus/class.Settings.php:42
4. WPDM\admin\menus\Settings->UI('')
/home/site/public_html/wp/wp-includes/class-wp-hook.php:287
5. WP_Hook->apply_filters('', Array(1))
/home/site/public_html/wp/wp-includes/class-wp-hook.php:311
6. WP_Hook->do_action(Array(1))
/home/site/public_html/wp/wp-includes/plugin.php:478
7. do_action('wpdmpro_page_settings')
/home/site/public_html/wp/wp-admin/admin.php:259
8. require_once('/home/site/public...')
/home/site/public_html/wp/wp-admin/edit.php:10
Context
-------
URL : /wp/wp-admin/edit.php?post_type=wpdmpro&page=settings&tab=plugin-update&newpurchase=1
Referer : https://site/wp/wp-admin/edit.php?post_type=wpdmpro&page=settings&tab=plugin-update
HTTP Method : GET
HTTP Host : site
HTTP Status : 200
isSSL : Yes
Current Filter : wpdmpro_page_settings
Execution Time : 2.066 s
Memory Usage : 8.29 MiB
PHP SAPI : litespeed
Hi – I’m trying to setup the PAD importer and it all works, but I need a slight configuration change. I want just the PAD submit URL field and not the email field. Basically so anyone can just submit a PAD file rather than have to put in an email address. I know it can be done as I’ve done it before, but I cannot remember how to do it!
Any ideas?
For opening in new windows, please add this code replacing [download_link] in page/link templates PHP file as i described above,
<a href="[download_url]" onclick="window.open('[download_url]','newwindow','width=1200,height=800'); return false;" class="btn btn-primary" target="_blank">[link_label]</a>
thanks
Please add this code in your theme functions.php
add_filter( 'wp_nav_menu_items', 'wpdm_loginout_menu_link', 10, 2 );
function wpdm_loginout_menu_link( $items, $args ) {
if ($args->theme_location == 'primary') {
if (is_user_logged_in()) {
$items .= '<li class="right"><a href="'. wp_logout_url() .'">'. __("Log Out") .'</a></li>';
} else {
$items .= '<li class="right"><a href="'. wp_login_url(get_permalink()) .'">'. __("Log In") .'</a></li>';
}
}
return $items;
}
it should return login and a logout menu both
thanks
Please add this code in your theme functions.php
add_filter( 'wp_nav_menu_items', 'wpdm_loginout_menu_link', 10, 2 );
function wpdm_loginout_menu_link( $items, $args ) {
if ($args->theme_location == 'primary') {
if (is_user_logged_in()) {
$items .= '<li class="right"><a href="'. wp_logout_url() .'">'. __("Log Out") .'</a></li>';
} else {
$items .= '<li class="right"><a href="'. wp_login_url(get_permalink()) .'">'. __("Log In") .'</a></li>';
}
}
return $items;
}
it should return login and a logout menu
thanks
This reply has been marked as private.
This reply has been marked as private.
When you attach a file using a URL, they file name is displayed, but not the full link. This makes it impossible to check the URL – the only way to ‘check’ it is to remove the file and add it again.
Is there a way to modify the back-end page to show the full URL as added?
please use the below code in your theme functions.php
add_filter("wpdm_single_file_download_link", function($actions, $fileID, $package)
{
$url = add_query_arg(['wpdmdl' ► $package['ID'], 'ind' ► $fileID], home_url('/'));
$actions = "<a href='#' data-downloadurl='$url' class='btn btn-sm btn-primary wpdm-download-link download-on-click'>Download</a>";
return $actions;
}, 1, 3);
it will mask the single file download URL too
thanks
Hello,
So everything is working, checked the php file but I can not find a way to edit this space: https://pedrasriscas.pt/wp-content/uploads/2020/10/Captura-de-ecrã-2020-10-28-às-10.18.29.png
Can you please help me?
The file code is:
<!– WPDM Link Template: 1 Column, Extended –>
<div class=”link-template”>
[thumb_350x250]
<div style=”clear: both;”></div>
<h3 style=”margin: 10px 0;padding: 0;font-size: 12pt”>[title]</h3>
<table class=”table-striped table-bordered table”>
<tbody>
<tr><td>Size</td><td>[file_size]</td></tr>
<tr><td>Last Updated</td><td>[update_date]</td></tr>
</tbody></table>
</div>
So it seems that most link templates don’t display the featured image of the download file, which is integral to the purposes of the site I’m working on.
I’ve gotten the “tabbed card” template to work, but there’s a problem where, if you click on the “Package Info” tab of any card, it opens the “package info” tab of (only) the first card on the page. Is it possible to edit the files somewhere to remove the tabs entirely? I don’t think we need them for our purposes. As a largely unrelated question, is it possible to somewhere change the text of all download buttons to be the same? In a previous version of this plugin (we updated recently, and I suspect that a previous developer had added some custom code which has been overwritten) the file name was hidden, and we used the download link/button to have the file name. Now that the file names are again visible, I’d like to change the button to simply say “Download” without having to manually update our 600+ file entries. Thank you in advance for any help you can provide.
I can provide our website URL and a Subscriber level guest username and password if there’s someplace private I can send it to.
please check from Settings > General WordPress Address (URL) Site Address (URL) same or not, I think this also cause the issue, please check further,
thanks
There also available default link and page template in the package settings > dropdown page or link templates, but if you want to bulk apply to the all packages, you can use this add-on, https://www.wpdownloadmanager.com/download/wpdm-default-values/, and for login issue, please share your package URL
thanks
I am using the short-code [wpdm-all-packages] to display downloads available to registered users. It works perfectly except for one problem.
Our audience is “Over 50’s” with many people coming to look for material well into their ’70s and ’80s. Sadly for many of us, getting older brings with it failing eyesight. Our problem is that the fonts used in this short code are VERY small, especially the second (post_content) line. We are already getting complaints from people about how hard this is to read.
I have tried other short codes but this one sorts properly at startup and allows me to display all the information needed by our members to decide which material they want.
Is there any way I can increase the font (several options would be brilliant) for this short-code or is there some way that the short-code can be modified to add a font size option
My code is as follows;
[wpdm-all-packages items_per_page="30" categories="computers" jstable=1 order_by="title" order="asc" cols="title,post_content|publish_date|download_link,package_size,view_count,download_count" colheads="Title|Published Date|Download"]
and it is displayed at this url https://seniornet.co.nz/teaching-manuals-downloads/computers/
Thanks in advance
Peter
I have the same issue, no cache turned on expect by default in browser. Perhaps the solution would be to add a random parameter at the end of url like ?random=04u3r10r032rweq to prevent browser from caching the link…
Hi,
Here are the answers to your questions:
#1. Yes, please use redirect=[URL] parameter with the login form shortcode to redreict the user to any specific [URL]. Doc: https://www.wpdownloadmanager.com/doc/short-codes/wpdm_login_form-user-login-form-short-code/
#2. Sorry, not clear, may you please explain little more.
#3. Here is the doc: https://www.wpdownloadmanager.com/doc/add-new-package/package-settings/
no! I actually added a new Volume to my digital ocean account which is /mnt/volume_nyc1_05. My default volume is full, so i want this new volume to work in your plugin. Since I configured the volume properly, I changed the directory or file browser URL to the new /mnt/volume_nyc1_05. If i upload any new file, it fails! Not uploading it to the new volume. It’s still trying to upload to the old volume.
Hi. Since the last update the plugin has stopped working (my current version is 3.1.10). Clicking on “download” adds a # in the URL but does not download anything.
I use this shortcode: [wpdm_package id='12949']
On the backend, it does work. So, the downloads are well linked.
You can see an example here: https://st-systemtronic.com/portfolio/mill/ (button is _descargar 3D).
I have 305 downloads prepared with your plugin … please don’t tell me I have to redo them.
Greetings.
are you looking for such add-on which will help your Digital Ocean Volume, you can elaborate more on your query, or share your page/package URL
thanks
Solved this myself by copying the code you use in wpdm-functions.php function wpdm_logout_url so my finalised code for my custom function is:
/* ADD NONCE TO LOGOUT LINK */
function change_menu($items){
foreach($items as $item){
if( $item->title == "Logout"){
$item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
}
}
return $items;
}
add_filter('wp_nav_menu_objects', 'change_menu');
Where the change was from
$item->url = $item->url . "=" . wp_create_nonce( 'login' );
TO
$item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
For anyone interested in having TWO wordpress menus – one for logged in ( named logged-in ) and one for logged out ( named logged-out ) that switch when you are logged in or not PLUS having a Logout Link that behaves just like the WPDM logout links AND the ability to display login text messages to people not logged in, the three adds to your child theme functions.php is as follows:
/* LOGGED IN / LOGGED OUT MENU */
function my_wp_nav_menu_args( $args = '' ) {
if( is_user_logged_in() ) {
$args['menu'] = 'logged-in';
} else {
$args['menu'] = 'logged-out';
}
return $args;
}
add_filter( 'wp_nav_menu_args', 'my_wp_nav_menu_args' );
/* ADD NONCE TO LOGOUT LINK */
function change_menu($items){
foreach($items as $item){
if( $item->title == "Logout"){
$item->url = $item->url . "=" . wp_create_nonce(NONCE_KEY);
}
}
return $items;
}
add_filter('wp_nav_menu_objects', 'change_menu');
/* LOGGED OUT MESSAGE TO REGISTER OR LOGIN */
add_shortcode( 'visitor', 'visitor_check_shortcode' );
function visitor_check_shortcode( $atts, $content = null ) {
if ( ( !is_user_logged_in() && !is_null( $content ) ) || is_feed() )
return $content;
return '';
}
To use the visitor only text shortcode in a page or widget just do E.G.:
[visitor]
<div class=”card card-body bg-light”>
You must register or login
to download files from this site.</div>
[/visitor]
Thanks,
Ben
Hi,
I have created a child theme and added in some functions that control the display of login / register text and also to switch menus for logged in / logged out users. This all works well:http://dicefiles.wpengine.com/
One of the logged-in links is to “Logout” and I have attempted to use WPNONCE to achieve the same logout and redirect behaviour that you get on the WPDM profile / dashboard pages.
I am getting a WPNONCE token but it’s not the same as the built in Logout links. Can you advise what change I need to make to make sure that a logout actually logs you out of WP and takes you to the Login page.
/* ADD NONCE TO LOGOUT LINK */
function change_menu($items){
foreach($items as $item){
if( $item->title == "Logout"){
$item->url = $item->url . "=" . wp_create_nonce( 'login' );
}
}
return $items;
}
add_filter('wp_nav_menu_objects', 'change_menu');
Many thanks,
Ben
Hi,
I’ve installed and activated the pdf stamper add-on on your site, it is working fine ( https://ieltstestonline.com/download/ielts-writing-ebook-general-training/ ). But, for now, you have to attach PDF file using the server file browser ( as server file path ) instead of the media library URL to stamp properly.
Hi,
please make the same URL in WordPress Address (URL) and Site Address (URL), they were not same, so the problem was creating, I hope it will resolve the problem, it is in Settings > General Settings

now while adjusting it, some problem has been created, sorry for this, for fixing this please follow below procedures,
Fix #1: Changing the WordPress Site URL by Editing the wp-config.php file
Login to your WordPress hosting cPanel.
Under the Files section, click on File Manager, OpenFile Manager and in your WP folder directory search for a file called wp-config.php and click on Edit File,
define('WP_SITEURL', 'https://www.example.com');
define('WP_HOME', ' https://www.example.com');
Fix #2: Changing WordPress site URL via phpMyAdmin
Login to your hosting cPanel and open phpMyAdmin
Select the database of your WordPress site from the left sidebar
Select wp_options table
Note: wp_ prefix may differ depending on your WordPress installation settings

edit those and save
I hope your problem will be solved,
thanks