Hi. First off – Shapely is is amazing! The parallax sections are unmatched.
Now to my issue. I’ve used Visual Composer for many years without problem. But recently if I load a VC page to do an update, it renders as a blank (only the header and footer show). A look at the error log indicates:
Warning : The magic method Shapely_Related_Posts::__wakeup() must have public visibility in /home/thoewi/vclra.org/wp-content/themes/shapely/inc/class-shapely-related-posts.php on line 89
Again, I have used VC without any problem for quite sometime. This is not a plugin conflict, since the problem also exists whith all plugins (except VC) deactivated.
Any thoughts, besides abandoning VC and re-do all the pages with something like Elementor (which works fine)?
The issue with Visual Composer (VC) in the Shapely theme is due to the __wakeup() method’s visibility in the Shapely_Related_Posts class. First, ensure both the Shapely theme and VC are up to date. If the issue persists, manually fix it by opening wp-content/themes/shapely/inc/class-shapely-related-posts.php, finding the __wakeup() method on line 89, and changing its visibility to public:
public function __wakeup() {
Clear your WordPress and browser cache to apply the changes. Test with all plugins except VC disabled to ensure no plugin conflicts. If needed, switch to a default theme to confirm the issue is theme-related.
It seems the issue might be related to a visibility error in the Shapely theme’s related posts class. Have you tried adjusting the method visibility as suggested in the error message to see if that resolves the problem with Visual Composer?
Thanks for the suggestion. I’ll try adjusting the method visibility in the Shapely theme’s related posts class as per error message and see if that resolves the issue with Visual Composer.