Viewing 15 replies - 1 through 15 (of 16 total)
  • Plugin Author Chouby

    (@chouby)

    Have you an error message ?

    Thread Starter Craftsmann

    (@craftsmann)

    Unfortunately no, just nothing happens.
    1. But my local site on my local desktop works fine, I have problem only on my hosting site, may be something wrong with url rewrite rules and cookies (I mean adding language to url)…
    2. Polylang is the only one active plugin on both my sites.
    3. Where in DB polylang store its settings? I’ll try to drop them.

    Plugin Author Chouby

    (@chouby)

    If you mean the options found on the settings page, they are stored in the wp_options table. The option is called polylang. But modifying this option will not modifiy your rewrite rules as these are permanently stored by WordPress in the rewrite_rules option.

    Can you log in if you deactivate the plugin ? (you can rename the plugin directory, WordPress will automatically deactivate it)

    Thread Starter Craftsmann

    (@craftsmann)

    Yes, I can.
    Also I can log in in front-end but when I try to go to admin area I get log in window again.

    Plugin Author Chouby

    (@chouby)

    Have you some time to make tests ? Because I have no idea of what can happen since everything is working well on my test sites.

    So the only solution I foresee is to make tests on your site which has this problem. The tests would consist to edit plugin files and disable functions to detect which one is buggy. I will guide you.

    Thread Starter Craftsmann

    (@craftsmann)

    Yes, sure.

    Plugin Author Chouby

    (@chouby)

    OK. So let’s try.

    Could you edit the file include/admin.php and comment the line 9 which should now look like:
    // new Polylang_Admin_Filters();
    These will disable all filters I added to the admin.

    Thread Starter Craftsmann

    (@craftsmann)

    News ??
    After define or comment those constants in wp-config.php everything works now.

    define('AUTH_KEY',
    define('SECURE_AUTH_KEY',
    define('LOGGED_IN_KEY',
    define('NONCE_KEY',
    define('AUTH_SALT',
    define('SECURE_AUTH_SALT',
    define('LOGGED_IN_SALT',
    define('NONCE_SALT',

    But I discard those changes and comment line 9 – it also was successful, now I can log in to admin area. Besides after disabling line 45 in admin-filters.php everything works fine.
    //add_filter('locale', array(&$this, 'get_locale'));

    So there are two options when site works
    1. When constants are defined not by default values or commented
    2. When commented line 45 in admin-filters.php

    Plugin Author Chouby

    (@chouby)

    Thank you very much ! This filter is not essential. It is part of the admin language setting if you want to set it in the user profile. I will look deeper at this to try understand why it blocked your site.

    Thread Starter Craftsmann

    (@craftsmann)

    Ok
    option 1 suits me for now. If need additional info I can provide it.

    Plugin Author Chouby

    (@chouby)

    Well. If we go deep in functions called by the filter, we find wp_validate_auth_cookie found in wp-include/pluggable.php. So here we find the link with ‘AUTH_KEY’ or ‘SECURE_AUTH_KEY’ if you use ssl.

    I would try removing all cookies from your domain in your browser and see what happens.

    Thread Starter Craftsmann

    (@craftsmann)

    After deleting cookies (using Firefox dev bar) and refreshing admin area nothing happens. I stay authorized.

    Plugin Author Chouby

    (@chouby)

    Did you uncomment the define lines in wp-config.php before doing this ?

    Thread Starter Craftsmann

    (@craftsmann)

    Yes, lines are active and defined by unique phrases

    Plugin Author Chouby

    (@chouby)

    So it’s OK then ?

Viewing 15 replies - 1 through 15 (of 16 total)
  • The topic ‘[Plugin: Polylang] Unable to login after upgrade to 3.3’ is closed to new replies.