• gringom

    (@gringom)


    I’m getting always redirected to index.php?page=wc-about page.

    I’ve tried solutions for older versions, but with no luck.

    I’m on a Shared Hostgator plan. No memcache enable/disable possibility.

    I’ve tried using WP default twentyfifteen theme, disabling all plugins (leaving only WC) and the same problem occurs.

    The only difference to others i’ve seen is that in my case it doesn’t seem to enter a loop. Anywhere I click it just redirects to the about page.

    Any thoughts?

    https://wordpress.org/plugins/woocommerce/

Viewing 15 replies - 1 through 15 (of 18 total)
  • Plugin Contributor Mike Jolley

    (@mikejolley)

    > I’m on a Shared Hostgator plan. No memcache enable/disable possibility.

    I know you said it cannot be disabled, but do they have caching? It sounds like the version option or transient is not being cleared as it should.

    Thread Starter gringom

    (@gringom)

    Thanks for the reply Mike,

    They say there’s no caching on the server side. Isn’t there anything I could at least comment on the code? Or force the version option to update somehow?

    Thank you once more.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Do you have database access?

    Could you look in the options table and tell me the value of the option named _transient_wc_activation_redirect

    Thread Starter gringom

    (@gringom)

    17 occurrences of “_transient_wc_” none of _transient_wc_activation_redirect

    Is this the problem?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    No; the page is only redirected there if _transient_wc_activation_redirect is set.

    See here https://github.com/woothemes/woocommerce/blob/cd306393b33af96efbc5d2897a6f140dea9e84af/includes/admin/class-wc-admin.php#L102

    Thread Starter gringom

    (@gringom)

    Any other ideas?

    Plugin Contributor Mike Jolley

    (@mikejolley)

    What is the full URL after redirect?

    If its not in the DB, it may be that the host is using memcached to store transient data and this is not being cleared.

    Thread Starter gringom

    (@gringom)

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Ok. Lets see whats stored since you cannot get in anyway.

    Above this line:

    https://github.com/woothemes/woocommerce/blob/cd306393b33af96efbc5d2897a6f140dea9e84af/includes/admin/class-wc-admin.php#L102

    Add:

    var_dump(get_transient( '_wc_activation_redirect' ) );
    exit;

    See what is output to the page. Let me know this.

    The remove the code you just added and change:

    delete_transient( '_wc_activation_redirect' );

    To be:

    set_transient( '_wc_activation_redirect', 0 );
    delete_transient( '_wc_activation_redirect' );

    See if it resolves the issue.

    Thread Starter gringom

    (@gringom)

    The output was
    string(1) “1”

    Then I added set_transient, but with no luck, still same problem.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Ok. delete_transient should remove the transient – it should not be returning 1.

    You say its not in your database table. Can you check again.

    if its definitely not there we need you to check to see if:

    a) you’re using a caching plugin
    or b) your hosting is storing transients elsewhere such as memcache.

    if this is the case, its not handling delete_transient or set_transient correctly causing the loop.

    Thread Starter gringom

    (@gringom)

    a) Don’t use a caching plugin.
    b) How can I be sure they a storing transients? They say they don’t use memcache.

    Plugin Contributor Mike Jolley

    (@mikejolley)

    Can you also check in your db for the values of:

    woocommerce_version
    woocommerce_db_version

    Thread Starter gringom

    (@gringom)

    I’m getting 2.3.13

    Plugin Contributor Mike Jolley

    (@mikejolley)

    For both?

Viewing 15 replies - 1 through 15 (of 18 total)

The topic ‘Cannot access wp-admin after updating to 2.4.4’ is closed to new replies.