Tobias Battenberg

Forum Replies Created

Viewing 6 posts - 1 through 6 (of 6 total)
in reply to: Login Hangs #112711

Tobias Battenberg
Participant

@Berry: In /tpls/wpdm-login-form.php you can try to comment out the following line. Just add // in front of the line.

//$('#loginform-submit').html(wpdm_asset.spinner+" "+res.message);

And please make these changes also in the /tpls4/wpdm-login-form.php

in reply to: Login Hangs #112709

Tobias Battenberg
Participant

@Berry: Ok, this seems to be different to my problems! Maybe there is a conflict with your jQuery version. Maybe you can try to use a lower version of jQuery? But this is only an idea … please share your solution if the plugin-developer helped you successfully!

in reply to: Login Hangs #112706

Tobias Battenberg
Participant

@Berry: What does the browser console tell you – when you try a login?

in reply to: Login Hangs #112696

Tobias Battenberg
Participant

I fixed it by myself … in wpmd-login-form.php i changed the following:

From:
if (!res.match(/success/)) {

To:
if (!res['success'] == true) {

Old:

success: function (res) {
    if (!res.match(/success/)) {
        $('form .alert-danger').hide();
        $('#loginform').prepend("<div class='alert alert-danger' data-title='<?php _e('ERROR!','download-manager');?>'><?php _e('Login failed! Please re-check login info.','download-manager');?></div>");
        $('#loginform-submit').html(llbl);
    } else {
        location.href = "<?php echo esc_attr(esc_url($log_redirect)); ?>";
    }
}

New:

success: function(res) {
    if (!res['success'] == true) {
        $('form .alert-danger').hide();
        $('#loginform').prepend("<div class='alert alert-danger' data-title='<?php _e('ERROR!','download-manager');?>'><?php _e('Login failed! Please re-check login info.','download-manager');?></div>");
        $('#loginform-submit').html(llbl);
    } else {
        location.href = "<?php echo esc_attr(esc_url($log_redirect)); ?>";
    }
    
  }

But you have to know, that i use this file from an old version cause i have copied it into my theme-directory to customise the form.
But now it works …

in reply to: Login Hangs #112585

Tobias Battenberg
Participant

Hi, I have the same problem too. I worked for a year, but since some days it hangs.

The console says:

TypeError: res.match is not a function. (In 'res.match(/success/)', 'res.match' is undefined)

Thanks for help!

in reply to: No Download possible since 4.9.1 #93364

Tobias Battenberg
Participant

Update: It was an access thing – sorry for that. The Problem does not exist. Please delete my thread!

Viewing 6 posts - 1 through 6 (of 6 total)