WordPress.org

Forums

WP-Piwik
[resolved] 0.9.9.9 multisite frontend: not logged in (17 posts)

  1. rjaeckel
    Member
    Posted 1 year ago #

    After updating my wordpress ms-installation from 0.9.9.8 to .9 on everyone of my sites the users aren't logged in - no adminbar and the return value of is_user_logged_in() is false.

    Removing the plugin resolved the issue. So downgraded back to the previous version.

    Any ideas?

    https://wordpress.org/plugins/wp-piwik/

  2. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Did you enable debugging to get some further information? (Error message, warning, notice, ...)

    What happens if the users try to login again?

  3. rjaeckel
    Member
    Posted 1 year ago #

    No errors, no notices.

    I forgot to mention, the user actually is logged in, just the status on the frontpage is wrong. Changing the url to {mysite}/wp-admin/ shows the backend and displays correctly.

  4. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Did you explicitly enable debugging by adding WP_DEBUG as true to your WordPress config?

    It is hard to get behind this issue without a hint. I'll try to reproduce this in my test environment.

  5. rjaeckel
    Member
    Posted 1 year ago #

    Yes, i did.

    I'm currently trying to set up a new farm. Configuring the plugin there (enabling it sidewide) does also break the frontend. There are no active Plugins beside this one.

    Excuse me, please for any inconvenience i made.

  6. rjaeckel
    Member
    Posted 1 year ago #

    Update: enabling the Plugin for the whole site creates two notices:

    Notice: Use of undefined constant AUTH_COOKIE - assumed 'AUTH_COOKIE' in /var/www/wordpress/wp-includes/pluggable.php on line 741

    Notice: Use of undefined constant LOGGED_IN_COOKIE - assumed 'LOGGED_IN_COOKIE' in /var/www/wordpress/wp-includes/user.php on line 242

  7. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, interesting... Can you try to comment/ remove line 38
    require_once(ABSPATH.'wp-includes/pluggable.php');
    in wp-piwik.php?

    Thank you very much!

  8. Ed
    Member
    Posted 1 year ago #

    FYI, this also breaks post previews for draft and private posts.

  9. csigncsign
    Member
    Posted 1 year ago #

    Same here ... since the newest plugin update I can't access those of my sub-blogs in my WP 3.9 network installation, who are set to "coming soon" mode with the MiniGO plugin (http://codecanyon.net/item/minigo-uber-minimal-flat-coming-soon-wp-plugin/6709886?WT.ac=search_item&WT.seg_1=search_item&WT.z_author=PremioThemes).

    With the "coming soon" mode enabled, I can't access the frontend of my sub-blogs; I see only the "maintenance mode" page ALTHOUGH I AM LOGGED IN as superadmin!

    When I disable the network enabled PIWIK PLUGIN, then all works fine.
    With the previous version of WP PIWIK all had worked fine!

    EDIT:
    --------------

    I rolled back to WP Piwik 0.9.9.8 and this issue is solved.

    I use:
    --------------

    1. WP 3.9
    2. network installation
    3. sub-directories mapped to sub-domains
  10. rjaeckel
    Member
    Posted 1 year ago #

    Can you try to comment/ remove line 38
    require_once(ABSPATH.'wp-includes/pluggable.php');
    in wp-piwik.php?

    this makes the whole site blank...

    Fatal error: Call to undefined function is_user_logged_in() in /var/www/wordpress/wp-includes/admin-bar.php on line 815

  11. brbrbr
    Member
    Posted 1 year ago #

    Got this far:

    problem is that wp_cookie_constants() (wp-includes/default-constants.php) is not called before a user is validated (is_user_logged_in()).

    I added

    if ( function_exists('wp_cookie_constants') ) {
    wp_cookie_constants();
    }

    just before

    require_once(ABSPATH.'wp-admin/includes/plugin.php');
    require_once(ABSPATH.'wp-includes/pluggable.php');

    but that's a bit of a hack...

  12. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Ok, maybe I got an idea of what's happening. Thank you all for your input!

    Please give me some time to figure this out. I'll try to create a fix as soon as possible.

    Meanwhile please try to use brbrbr's fix or downgrade to 0.9.9.8:
    http://downloads.wordpress.org/plugin/wp-piwik.0.9.9.8.zip

    I apologize for the trouble caused. :(

  13. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Can you please try the current development version?
    http://downloads.wordpress.org/plugin/wp-piwik.zip

    Thank you very much!

  14. brbrbr
    Member
    Posted 1 year ago #

    seems to be working fine.

    I had to install the update manual, didn't work using the wp-admin pages. Don't have time to figure out why might be due my server

  15. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Thanks for your feedback.

    This update isn't available using the admin pages yet. First I wanted to be sure it's working. :-)

    An official release will follow later this day.

  16. braekling
    Member
    Plugin Author

    Posted 1 year ago #

    Please do not load the development version anymore. A new release will be available later this day.

  17. rjaeckel
    Member
    Posted 1 year ago #

    Thanks a lot!

    The issue is solved here too. Had to check, if some of our own mu-plugins would break up the plugin nevertheless, but everything is fine now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WP-Piwik
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.