Ben Schlaepfer

Forum Replies Created

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

Ben Schlaepfer
Participant

Thanks again, I will pass that on to the hosting company.

Can you let me know what release of the plugin will include these fixes — I don’t want to upgrade too soon.

I am on 5.2.4 currently and concerned that if I upgrade to current latest (5.2.6) it will overwrite your changes…!

Ben


Ben Schlaepfer
Participant

Brilliant many thanks for your super-rapid response and resolution.

The site hosts are asking what had to change in the plugin to make this work on their servers — the 403 error had them thinking that their server config may need attention.

Would you be able to share the nature of change that was made to fix the 403?

Thanks again,
Ben


Ben Schlaepfer
Participant

Hi thanks a million,

I can confirm that the Login page now returns an error message as I would expect when

However the login modal/popup that appears when you click the login button from a package listing page still hangs.

E.g. https://dicefiles.wpengine.com/files-for-download/

Can you fix that too?

Best wishes,
Ben


Ben Schlaepfer
Participant

Thanks for that reply. I created a dev enviornment and have tried those things and still I get a server error of 403.

The server log entry is:

86.169.132.205 - dicedev.wpengine.com - [19/Oct/2020:09:25:01 +0000] "POST /login/ HTTP/1.0" 403 237 "https://dicedev.wpengine.com/login/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.75 Safari/537.36"


Ben Schlaepfer
Participant

No this problem is a separate issue. The problem here is the when a user gets their username or password wrong the error message does not get displayed to the user, the spinner just spins forever. The underlying issue appears to be a 403 returned from the server. Please can you read the previous notes especially around server cache exclusions.


Ben Schlaepfer
Participant

*BUMP*

Are you able to replicate this problem by logging in with incorrect credentials at:

https://dicefiles.wpengine.com/login/

I really need to get this issue resolved – not saying it’s a WPDM bug just want to make sure I am covering all bases.

Thanks,
Ben


Ben Schlaepfer
Participant

Just spent a long time on a support chat with the Server hosts (WP-ENGINE) they are unable to resolve anything from their side of things.

They asked the question though:

Ask about cache exclusions that might need to be entered and then we can add those if necessary

Are there any cache exclusions or other settings that may resolve the issue?


Ben Schlaepfer
Participant

Only WPDM plugins are active and I am using your ATTIRE theme.

Even if I disable ALL plugins apart from Download manager the problem persists.

https://www.screencast.com/t/DgUXHq3R2

https://www.screencast.com/t/DgUXHq3R2


Ben Schlaepfer
Participant

Please can you update me on this issue – can you replicate? I have included more information as a screen grab to this ticket from the network requests list.

https://www.screencast.com/t/H6Ipchyka4

https://www.screencast.com/t/H6Ipchyka4


Ben Schlaepfer
Participant

OK I have solved this issue – for me at least.

  1. Go through your steps to access WP-ADMIN (sometimes this requires WPDM to be disabled via FTP)
  2. In WP-ADMIN go to Settings > General
  3. Ensure that your site addresses use the correct protocol e.g. https OR http <<< YOU may need to switch between to achieve the right one for you
  4. Save settings & reinstate plugin as per opposite of step 1

Fingers crossed. (optional step).

I think the mixed modes http / https was messing with “regular” browser behaviour.

in reply to: wp-admin redirect to wpdm login #138464

Ben Schlaepfer
Participant

@ESTWebadmin

OK I have solved this issue – for me at least – I think.

  1. Go through your steps to access WP-ADMIN
  2. In WP-ADMIN go to Settings > General
  3. Ensure that your site addresses using https NOT http
  4. Save settings & reinstate plugin as per your steps

Fingers crossed. (optional step).

I think the mixed modes http / https was messing with “regular” browser behaviour. But because BRAVE is security focussed it forces SSL from the client side and avoids the issue.

Cheers,
Ben

in reply to: wp-admin redirect to wpdm login #138462

Ben Schlaepfer
Participant

Hi, shame that we couldn’t resolve with WP-ENGINE. As I mentioned in a previous post I can get the site to behave as intended when I use another browser called brave ( https://brave.com/download/ ). This helps me in my dev phase but is not a solution whatsoever for go live.

What is suggests – to me – is that there is something client-side happening cookie / cache / who-knows-what that not all WPDM users are experiencing but we are.

Also I am suffering hangs of the login page when I get a password or username wrong. I’ve opened another ticket for that.

I am going to open a fresh ticket for this issue today as I wonder if the fact that this is marked as resolved is stopping it get attention?


Ben Schlaepfer
Participant

Hi there,
Here is the link to the screen grab of my settings:
https://www.screencast.com/t/qScowdpWlZN

Thanks
Ben


Ben Schlaepfer
Participant
This reply has been marked as private.
in reply to: Add working Logout link to my main menu #138387

Ben Schlaepfer
Participant

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

in reply to: Add working Logout link to my main menu #138379

Ben Schlaepfer
Participant

Sure. The logout links that are part of WPDM plugin work as expected – they log you out of WordPress and take you to the Login page. These links are on e.g. the Login page using [wpdm_login_form] when you are logged in as a susbscriber and the [wpdm_user_dashboard] on a dashboard page. I click the Logout link provided by your plugin and the user gets properly logged out, and presented with an empty login screen. Perfect.

I have tried to replicate that function via a link in my main menu that uses the function posted before but with my login link I get sent to the homepage and I remain logged in to WordPress and can access the downloads / dashboard as a subscriber.

The only difference I can see between the two Logout links (yours on the page via the plugin and mine in the menu are the none tokens).

Can you advise how your plugin achieves this so I can implement similar in my menu.

Thanks
Ben

in reply to: wp-admin redirect to wpdm login #138342

Ben Schlaepfer
Participant

@ESTWebadmin – my “workaround” is to use another browser “BRAVE” (which is a secure fork of Chrome) for the WP-ADMIN backend cos it lets me in there without this problem occurring. I can only assume that the login redirect is occurring because of cookies or caching issues (Brave suppresses those quite aggressively).

NB – It’s not a solution to the problem at all as I have to hand this site over to regular admin / editor folk that I cannot ask to install new software just to use WordPress!

One other observation is that we are both on WP-ENGINE — they may be caching stuff I suppose. If I get nowhere with this support request I will contact them to see if they have any ideas.

in reply to: wp-admin redirect to wpdm login #138335

Ben Schlaepfer
Participant

I am getting exactly the same problem on my site.

https://dicefiles.wpengine.com/

When I set the Settings > Frontend access > Front end settings to a custom Login page (i.e. anything other than None selected) then I am redirected away from all WordPress Admin pages to the WPDM login page.

I cannot manage my WordPress site content / plugins / users etc.

Clearing cookies and cache makes no difference.

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