warning code: class php incomplete message

nsitedesigns
nsitedesigns used Ask the Experts™
on
Occasionally we get this message across the top of the site.  And then it goes away.  Any idea what causes it and how to remove?  The site is a wordpress site using genesis framework.  I also attached a screen shot.  This happens on phones and desktops.

Warning: Class __PHP_Incomplete_Class has no unserializer in /home/content/a2pnexwpnas04_data01/40/3310340/html/wp-content/object-cache.php on line 894

Warning: Cannot modify header information - headers already sent by (output started at /home/content/a2pnexwpnas04_data01/40/3310340/html/wp-content/object-cache.php:894) in /home/content/a2pnexwpnas04_data01/40/3310340/html/wp-content/plugins/planso-forms/libs/wp-session-manager/class-wp-session.php on line 124
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Most Valuable Expert 2011
Top Expert 2016
Commented:
The second part about the header information Warning is caused by the first part.  Some explanation here:
https://www.experts-exchange.com/articles/4423/Warning-Cannot-modify-header-information-headers-already-sent.html

The first part seems to be well-documented on the WordPress site.
https://wordpress.org/support/topic/class-_php_incomplete_class-has-no-unserializer/

The most common solution seems to go something like this: "In the wp-content folder just rename object-cache.php to object-cache.php.BAK or anything else and that’s it."

Author

Commented:
Will give it a shot.  I also have godaddy managed wordpress for hosting as do some of the people in the wordpress.org link and have run across caching issues when updating site.  I wonder if they are the problem?  

p.s.  Can't try your solution until client calls me.  they have 2-step verification in place for host and I cannot login without the 4 digit code that gets texted.  What a pain!

Author

Commented:
OK.  I got in.  Interestingly enough there are 3 object-cache files.  Would you recommend I rename or delete the other two (.redis or .apc)?

object-cache.php
object-cache.php.redis
object-cache.php.apc
C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

Most Valuable Expert 2011
Top Expert 2016

Commented:
Redis and APC are cache systems, independent of WP object-cache, but used by WP extensions to provide a cache.  My first instinct is to disable all of them via a rename, as described on WordPress.org.  But they may be providing a useful service (or trying to) in the form of higher performance.  So it might be good to understand how cache works and keep an eye on the site to see if you need to address performance issues after these are disabled.  Probably Redis is the more promising approach.

More information on cache, in general:
https://www.experts-exchange.com/articles/18437/Improving-Web-Site-Performance-via-PHP-Cache.html

Information about APC:
https://wordpress.org/support/plugin/apc

Information about Redis (looks better than the APC):
https://wordpress.org/plugins/redis-cache/

Author

Commented:
Thanks Ray!
Most Valuable Expert 2011
Top Expert 2016

Commented:
Glad to help -- I hope this fixes things!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial