Shahriar

Forum Replies Created

Viewing 25 posts - 1,651 through 1,675 (of 12,513 total)
Aug 8, 2019 at 9:03 am
#110803
Moderator
Shahriar
Staff OP

> zip download worked in windows for me. But the multiple folder issue does exist there. I think those are cached zips because for new packages the download worked fine. Tested this one https://cad.welsrc.net/download-cad/test/

Could you please send FTP info so I can take a look at the directory.

> Fixed the password lock isssue with single file download.

Aug 7, 2019 at 5:15 pm
#110797
Moderator
Shahriar
Staff OP

Hi Greg,
Sorry, there is no option to control this message. But you can edit it from /download-manager/wpdm-start-download.php file ( line 34 and 65 ).
Best regards.

Aug 7, 2019 at 5:11 pm
#110796
Moderator
Shahriar
Staff OP

Create a password protected page with archive shortcode and send me the link to debug the search issue. I tried to create a test page but it doesn’t show anything on the frontend.

Aug 7, 2019 at 5:00 pm
#110795
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Aug 7, 2019 at 4:56 pm
#110794
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Aug 7, 2019 at 4:47 pm
#110792
Moderator
Shahriar
Staff OP

You are using Archive Page sidebar view which doesn’t have the search option. Do you want to use the default view? https://demo.wpdownloadmanager.com/wpdmpro/archive-page-default/

Aug 7, 2019 at 4:42 pm
#110791
Moderator
Shahriar
Staff OP

Please send temporary wp-admin login info in private reply to check the issue. Are you using the directory import option?

Aug 7, 2019 at 10:23 am
#110785
Moderator
Shahriar
Staff OP

Sorry about that. We are checking this and adding a patch asap. Thanks for reporting the issue.

Aug 7, 2019 at 10:16 am
#110784
Moderator
Shahriar
Staff OP

Please send login url too.

Aug 7, 2019 at 10:15 am
#110783
Moderator
Shahriar
Staff OP

The cache directory was added in a recent version. Deactivating and reactivating the plugin creates the directory. Anyway, glad to you have already found the solution.

Aug 7, 2019 at 10:13 am
#110782
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Aug 7, 2019 at 10:05 am
#110781
Moderator
Shahriar
Staff OP

So you want to redirect the user to different pages after logout based on user role. This is not a plugin feature nor it should be one. Anyway, I have added the following code to your theme’s functions.php file to implement it.

function wpdm_custom_redirect_after_logout() {
    if (!current_user_can('manage_options')) {
        $url = '/login-page/';
    } else {
        $url = '/wp-login.php';
    }
    $redirect_url = home_url( $url );
    wp_safe_redirect( $redirect_url );
    exit;
}
add_action( 'wp_logout', 'wpdm_custom_redirect_after_logout' );
Aug 7, 2019 at 8:58 am
#110779
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Aug 7, 2019 at 8:52 am
#110776
Moderator
Shahriar
Staff OP

WPDM doesn’t delete the templates when showing the invalid key warning. Not sure how your templates got deleted. Maybe some plugin modified the DB. These templates are saved under _fm_link_templates and _fm_page_templates key in options table.

You can also use template files to create custom link/page templates https://www.wpdownloadmanager.com/doc/template-files/ You can try this approach if the previous issue happens again. Although, I hope this won’t happen again.

Aug 7, 2019 at 8:21 am
#110773
Moderator
Shahriar
Staff OP

Hi, We are checking the issue. Looks like an API update is required. We will provide a solution as soon as possible. Thanks.

Aug 7, 2019 at 8:11 am
#110771
Moderator
Shahriar
Staff OP

Please send temporary wp-admin login info in private reply to check the issue.

Aug 7, 2019 at 8:10 am
#110770
Moderator
Shahriar
Staff OP

Do you want to change the placeholder text “Enter Your Name”? You have to edit the plugin file to change it. The text comes from line 1767 in /download-manager/wpdm-functions.php file.

Aug 7, 2019 at 7:43 am
#110769
Moderator
Shahriar
Staff OP

Looks like there is a minor issue in Advanced Custom Fields add-on. Please remove the following code from line 108 in wpdm-advanced custom-fields.php file. That should fix the issue.

if ( !current_user_can( 'edit_user', $user_id ) ) return false;

Aug 7, 2019 at 7:20 am
#110768
Moderator
Shahriar
Staff OP
This reply has been marked as private.
Aug 7, 2019 at 7:18 am
#110767
Moderator
Shahriar
Staff OP

It will be overwritten by the Download Manager update. Sorry, there is no option yet to control it from outside the plugin.

Aug 7, 2019 at 7:09 am
#110765
Moderator
Shahriar
Staff OP

Hi Gustavo, Please send temporary wp-admin login info in private reply to check the issue.

Aug 7, 2019 at 7:05 am
#110764
Moderator
Shahriar
Staff OP

Your test site is subsite number 10 on your multisite setup. The /uploads/sites/10/download-manager-files/ directory was missing there. So, WPDM couldn’t find the link to uploaded files which resulted in the “file not found” error.

I deactivated the WPDM on test subsite and activated it again. This process created the /uploads/sites/10/download-manager-files/ directory. And uploaded files are being stored there now. The download should work for all new uploads.

For old attachments either re-upload those files or manually copy those on /uploads/sites/10/download-manager-files/ dir.

If you face similar issue on any other subsite, just deactivate the plugin and reactivate it again to create the missing file directory.

Please let me know if you need further assistance.

Aug 7, 2019 at 6:03 am
#110759
Moderator
Shahriar
Staff OP

Hi,

Paystack add-on doesn’t support recurring payment yet. But noted for implementation. In the next version, we will add the subscription feature.

Thanks.

Aug 7, 2019 at 5:55 am
#110758
Moderator
Shahriar
Staff OP

Bulk updated the file path using the following code and tested some packages. Files are readable now. Please check and let me know the status on your side.

function wpdm_bulk_update_attach_path(){

	$params = array(
		'post_type' ► 'wpdmpro',
		'posts_per_page' ► -1,
	);

	$packs = new WP_Query( $params );

	while( $packs->have_posts() ) {
		$packs->the_post();
		$files = maybe_unserialize(get_post_meta(get_the_ID(), '__wpdm_files', true) );
		if( ! is_array( $files ) ) $files = array();
		foreach ( $files as $dx ► $file ):
			$files[$dx] = str_replace('vbvdevelop','vbvprod', $files[$dx] );
		endforeach;
		update_post_meta(get_the_ID(),'__wpdm_files', $files);
	}

}
add_action('init', 'wpdm_bulk_update_attach_path');
Aug 6, 2019 at 11:03 am
#110739
Moderator
Shahriar
Staff OP

Hi,
Have you made any changes? All downloads seem to be working now.
By the way, when adding a new file from your directory this is path /nas/wp/www/sites/vbvprod/ path. But your files are being served from your /nas/wp/www/sites/vbvdevelop/ path, I guess it is your dev directory. If you remove files from this dir downloads will be inaccessible.
http://prntscr.com/op0d6y
Thanks.

Viewing 25 posts - 1,651 through 1,675 (of 12,513 total)