Support » Plugin: LiteSpeed Cache » Modal Login Register Forgotten WordPress Plugin not working

  • Resolved Suki

    (@sukinoz)


    Hello,

    We are using the “Modal Login Register Forgotten WordPress Plugin
    https://codecanyon.net/item/modal-login-register-forgotten-wordpress-plugin/5433514

    Once installed, it works properly for several hours.

    But the next day the popup modal appears, you enter your name and password, but when you click on the button it doesn’t seem to work (it doesn’t show any message, nor loads anything). It just stays there.

    If we deactivate LiteCache plugin or purge the cache, it works perfectly again, until after a few hours or the next day.

    Any solution?

    link to the site and screenshots
    https://docs.google.com/document/d/1lTQ9RdnBdxFXLthIZ49ou_YqhwP4veDo0aNV2zdovA8/edit
    Report number: LGEZGNZT
    Report date: 04/21/2021 13:51:16

    EDIT: we have sent anohter report, but with “Passwordless Link”
    Report number: ZVDYSQOX
    Report date: 04/21/2021 13:54:02

    • This topic was modified 6 months ago by Suki.

    The page I need help with: [log in to see the link]

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please do a text search over that plugin , looking for keyword security-login then please show me what you found

    Best regards,

    Thread Starter Suki

    (@sukinoz)

    Hi,

    I get two results:

    \ModalLogin_Package_v2.0.5\pressapps-modal-login\assets\js\modal-login.js (1 hits)

    // Check if we are trying to login. If so, process all the needed form fields and return a faild or success message.
    		if ( form_id === 'login' ) {
    			$.ajax({
    				type: 'POST',
    				dataType: 'json',
    				url: modal_login_script.ajax,
    				data: {
    					'action'     : 'ajaxlogin', // Calls our wp_ajax_nopriv_ajaxlogin
    					'username'   : $('#form-login #login_user').val(),
    					'password'   : $('#form-login #login_pass').val(),
    					'rememberme' : ($('#form-login #rememberme').is(':checked'))?"TRUE":"FALSE",
    					'login'      : $('#form-login input[name="login"]').val(),
    					'security'   : $('#form-login #security-login').val()
    				},

    \ModalLogin_Package_v2.0.5\pressapps-modal-login\includes\modal-login-class.php (1 hits)

    <p class="submit">
    
    <?php do_action( 'inside_modal_login_submit' ); ?>
    <input type="submit" name="wp-sumbit" id="wp-submit"
    class="button button-primary button-large"
    value="<?php _e( 'Log In', 'pressapps-modal-login' ); ?>"/>
    <input type="hidden" name="login" value="true"/>
    <?php wp_nonce_field( 'ajax-form-nonce', 'security-login' ); ?>
    
    </p><!--[END .submit]-->
    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    please try enable ESI , and add security-login into ESI nonce list , save and purge all

    Best regards,

    Thread Starter Suki

    (@sukinoz)

    Thank you.

    Curiously, it has now been working for a couple of days without giving the fault (despite not having touched anything).

    As soon as it fails again, we will apply the proposed solution.

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    okay , please keep me posted

    Best regards,

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m going to mark this topic “Resolved”, due to lack of activity.

    If you still need help, please feel free to re-open it.

    When re-open it, please also change the topic status to “not solved”

    Best regards,

    Thread Starter Suki

    (@sukinoz)

    Hello

    The proposed solution solves the problem… but generates other major problems:

    1- The code that shows a greeting to the logged in users, like “Hello Michael”, shows names of other users different from yours as you refresh the page. “Hello Michael”, “Hello Cris”, “Hello Dan”, etc

    Or it just keeps showing the link for the login modal, and when you try to log in it says “You are already logged in”.

    function show_name() {
    	if (is_user_logged_in() ) {
    	    global $current_user; get_currentuserinfo();
    	    return 'Hello, '. $current_user->user_firstname.'.';
    	}
    }
    add_shortcode( 'display_username', 'show_name' );

    2. Also, some problems have appeared in the backend. When publishing a post you may get the message “The Link You Followed Has Expired” or “You are attempting to log out of Web-name“.

    Any ideas?

    Plugin Support qtwrk

    (@qtwrk)

    for 1) , you may need to make that block to be ESI block

    for 2) , by backend as you mean in wp-admin area or something ?

    Plugin Support qtwrk

    (@qtwrk)

    Hi,

    I’m going to mark this topic “Resolved”, due to lack of activity.

    If you still need help, please feel free to re-open it.

    Please also change the topic status to “not solved” when re-open it,

    Best regards,

    Thread Starter Suki

    (@sukinoz)

    Hello,

    for 1) , you may need to make that block to be ESI block

    I followed your link https://docs.litespeedtech.com/lscache/lscwp/api/#generate-esi-block-url

    but it results to difficult/time for me, so i preferred to uninstall Litespeed Cache.

    thank you anyway

    for 2) , by backend as you mean in wp-admin area or something ?

    Yes, i mean wpadmin

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.