I’m getting this error thrown in /var/log/apache2/error.log after using the admin panel on a fresh Pressbooks install with a handful of plugins and themes (including the pressbooks-books theme):
PHP Fatal error: Class 'Pressbooks\\Book' not found in /var/www/some/path/wordpress/wp-content/plugins/pressbooks-textbook/inc/admin/class-textbookadmin.php on line 46
Any ideas? Searching the forum doesn’t yield relevant topics.
Oh sorry–I meant whatever was calling the class 'Pressbooks\\Book'. To my untrained eye, the PHP error seems to be indicating that something appears to be making a call for that undefined/nonexistent class, and the plugin appears to have a reference to ‘Pressbooks\Book’.
Yes–sorry for more confusion. My post had two forward slashes in it: Pressbooks\\Book but it got stripped out. My suspicion was that something in Etienne’s stack was calling Pressbooks\\Book which is an invalid class when it was supposed to be calling Pressbooks\Book which is a valid class.
Thanks, Dac. @etienne, possibly related issue on our Unizin-hosted production instance documented here: SASS Error with Luther. Happy to file a support ticket directly with you if helpful?
Hi all, I just heard backchannel from Brad Payne. He’s our for a couple of weeks, but suggested that if we opened up a ticket in github in the pressbooks-textbook repo, his colleague Alex Paredes will be notified and should be able to help us. @etienne, is that something you’d be willing to do?