lcache / wp-lcache

A WordPress implementation of LCache
https://wordpress.org/plugins/wp-lcache/
GNU General Public License v2.0
88 stars 5 forks source link

trying to get property of non-object #104

Closed wpbullet closed 7 years ago

wpbullet commented 7 years ago

Seeing this with wp_debug set to on

Notice: Trying to get property of non-object in /var/www/woocommerce/wp-content/plugins/wp-lcache/vendor/lcache/lcache/src/APCuL1.php on line 43

danielbachhuber commented 7 years ago

@wpbullet Is this on a Pantheon site?

This could actually be related to https://github.com/pantheon-systems/wp-native-php-sessions/issues/49

wpbullet commented 7 years ago

This is self-hosted on a Digital Ocean droplet running php7 and nginx.

danielbachhuber commented 7 years ago

Interesting! Any chance we could get a debug_backtrace() out of the error so we could see where it's coming from?

wpbullet commented 7 years ago

If I knew how to do that then yes :) If you have a walkthrough I'd be happy to oblige. I can also share the admin or root credentials via email if you prefer. I'm a wp profile user so I have your email already.

danielbachhuber commented 7 years ago

Could you ping me on the WordPress.org Slack? Might be easiest to chat through this first.

wpbullet commented 7 years ago

Pinged you there

danielbachhuber commented 7 years ago

This was a bad value in APCu. The fix was to restart PHP-FPM