rwestmacott
Forum Replies Created
-
I was able to get some debugging information after all. It appears to be a cookie problem in connection with another plugin that we’re using here: Pressbooks.
Wordpress debug log entry:
PHP Notice: Use of undefined constant SECURE_AUTH_COOKIE – assumed ‘SECURE_AUTH_COOKIE’ in /var/www/webapps/pressbooks/wp-includes/pluggable.php on line 754
Possibly the security cookie isn’t getting set correctly. The above debug log entry only occurs when wp-piwik is network activated.
740 function wp_parse_auth_cookie($cookie = ”, $scheme = ”) {
741 if ( empty($cookie) ) {
742 switch ($scheme){
743 case ‘auth’:
744 $cookie_name = AUTH_COOKIE;
745 break;
746 case ‘secure_auth’:
747 $cookie_name = SECURE_AUTH_COOKIE;
748 break;
749 case “logged_in”:
750 $cookie_name = LOGGED_IN_COOKIE;
751 break;
752 default:
753 if ( is_ssl() ) {
754 $cookie_name = SECURE_AUTH_COOKIE;
755 $scheme = ‘secure_auth’;
756 } else {
757 $cookie_name = AUTH_COOKIE;
758 $scheme = ‘auth’;
759 }
760 }
761
762 if ( empty($_COOKIE[$cookie_name]) )
763 return false;
764 $cookie = $_COOKIE[$cookie_name];
765 }
766
767 $cookie_elements = explode(‘|’, $cookie);
768 if ( count( $cookie_elements ) !== 4 ) {
769 return false;
770 }
771
772 list( $username, $expiration, $token, $hmac ) = $cookie_elements;
773
774 return compact( ‘username’, ‘expiration’, ‘token’, ‘hmac’, ‘scheme’ );- This reply was modified 7 years, 10 months ago by rwestmacott.
The http api was already enabled. Unfortunately there is nothing in the wordpress, server, or wp-piwik logs that indicate what the problem might be, except that the 403 error was thrown. this is happening on two multi-site installations on the same server, both linked to a central instance of the piwik server. On one installation, one site is affected and users are unable to get into the admin area. On the other installation there are numerous sites affected.
- This reply was modified 7 years, 10 months ago by rwestmacott.