Support » Plugin: Abandoned Cart Lite for WooCommerce » latest update redirects ALL wp-admin to non-dismissable splash page

  • Resolved jonathanmoorebcsorg

    (@jonathanmoorebcsorg)


    latest update redirects ALL wp-admin to non-dismissable splash page
    wp-admin/index.php?page=wcal-pro-about

    so site admin is not accessible.

    No errors spotted in the logs ..

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author chetnapatel

    (@chetnapatel)

    Hi,

    I apologize that you faced inconvenience due to our plugin.

    From my understanding, do you mean that when you login to the site or access any page of your site at the backend, the page is redirecting to the welcome page ( wp-admin/index.php?page=wcal-pro-about ) of our plugin?

    If yes, then I have tried to login to our staging site and tried to replicate the issue at our end. But I could not able to replicate the same.

    I would need to check the issue on your site and provide you the fix for it quickly. Could you please drop us an email on “support at tychesoftwares dot freshdesk dot com” where I can check the issue and provide you the fix?

    It would be great if you can share with us the video of issue which is occurring on your site in the ticking system. It helps us as well.

    Please let me know if I have misunderstood your queries.

    Regards,
    Chetna Bhutka

    jonathanmoorebcsorg

    (@jonathanmoorebcsorg)

    actually I rolled back from the server side.
    I just tested in a test environment and didn’t see this happen,
    so I’ll try again in the problem environment later.

    joaquingarciaalonso

    (@joaquingarciaalonso)

    same over here. have just updated 9 plugins (abandoned cart lite among them) and being in the back end, every link i click in the admin, i get redirected to /wp-admin/index.php?page=wcal-pro-about

    i cant even restore from a backup since any link i click im redirected to your splash page.

    jonathanmoorebcsorg

    (@jonathanmoorebcsorg)

    @joaquingarciaalonso
    you can simply delete the folder /plugins/woocommerce-abandoned-cart/ by using your hosting provider’s control panel or other access method to access your website files.

    then you can download the previous version from:
    https://wordpress.org/plugins/woocommerce-abandoned-cart/advanced/
    and install that.

    jonathanmoorebcsorg

    (@jonathanmoorebcsorg)

    Well this is still outstanding, I accidentally upgraded and lost access to wp-admin again (abandoned cart splash page takes over wp-admin and cant be dismissed), rolled back again.

    Plugin Author chetnapatel

    (@chetnapatel)

    Hi,

    I have tried multiple times to replicate the issue at our end. But I could not able to replicate the same.

    I have looked into the code and applied one solution for this. Can you please change the below code on line number 268 to 274 in the file “ts-welcome.php” of our plugin. The file will be located at “< Your site URL >wp-content/plugins/woocommerce-abandoned-cart/includes/component/welcome-page/” folder.

    The code is:

    public function ts_update_db_check() {
    
    		if ( self::$plugin_version != self::$previous_plugin_version ) {
    			delete_option( self::$plugin_prefix . '_pro_welcome_page_shown' );
    			delete_option( self::$plugin_prefix . '_pro_welcome_page_shown_time' );
    		}
    	}

    Replace it with the below code:

    public function ts_update_db_check() {
    
            if ( ( false === self::$plugin_version || false === self::$previous_plugin_version ) &&
                  'yes' == get_option( self::$plugin_prefix . '_pro_welcome_page_shown' )
            ) {
                return;
            }
            
            if ( self::$plugin_version != self::$previous_plugin_version ) {
                delete_option( self::$plugin_prefix . '_pro_welcome_page_shown' );
                delete_option( self::$plugin_prefix . '_pro_welcome_page_shown_time' );
            }
        }

    I am attaching the screenshot of code. As some quotes in the patch which I have provided are not in the formatting manner.

    2018-06-01_1942

    Can you please change the above code and confirm with us whether it is working fine or not? I hope this can help to resolve the issue.

    Please let me kow the result. So, we can apply the fix in our plugin’s update. If you still face the same issue then kindly drop us an email on “support at tychesoftwares dot freshdesk dot com”.

    Let me know if you have any further queries.

    Regards,
    Chetna Bhutka

    jonathanmoorebcsorg

    (@jonathanmoorebcsorg)

    well, I thought I would try upgrading again and then apply the code change..
    .. but oddly enough this time (3rd time of upgrading) it worked fine.

    as for root cause, the thing to check would be how are these options updated? so you can guarantee the screen is shown once… and at least add a button on the screen so it can be dismissed.

    Possible factors to watch out for are:
    – upgrade deployment could be by file copy rather than wordpress update
    – updated code may not fully take effect until opcache is cleared

    Plugin Author chetnapatel

    (@chetnapatel)

    Hi,

    Thank you for your suggestion.

    I will discuss this with my team and try to consider your suggestion for our plugin. Thank you once again for your kind help.

    Regards,
    Chetna Bhutka

    Just wanted to contribute to this as I ran into a similar issue, but it turned out to simply be that multiple plugins had been updated at the same time where more than one was trying to redirect to a specific page, triggering a redirect loop. Temporarily removing one of the plugins so that the other could complete it’s redirect resolved the issue.

    jonathanmoorebcsorg

    (@jonathanmoorebcsorg)

    yes, lots are doing this redirect these days, wordpress.org should ban it.

    Plugin Author chetnapatel

    (@chetnapatel)

    Hi,

    Can you please let me know which other plugins of our company ( Tyche Softwares ) are activated on your store?

    We must have to replicate the issue and then we can apply proper the fix for this issue.

    Please let me know.

    Regards,
    Chetna Bhutka

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘latest update redirects ALL wp-admin to non-dismissable splash page’ is closed to new replies.