Error message but Pressbooks seems to work

I have created a fresh install of Pressbooks on my Mac mini M1 running Monterey 12.4 using MAMP as a local web server. Everything seems to work OK but this error message is displayed on the top of the press books page.

Warning : The magic method Pressbooks\Book::__wakeup() must have public visibility in /Applications/MAMP/htdocs/wordpress/wp-content/plugins/pressbooks/inc/class-book.php on line 62

I’m not sure if this is related to MAMP or Pressbooks. Has anybody else come across this ? Suggestion for a solution?

What version of PHP are you using locally? Pressbooks is currently only compatible with PHP 7.4, but we we’re working on some updates to make it PHP 8.x compatible. That’s what I’d look at first?

Problem solved! MAMP was using php version 8.0.8 and when I changed to php 7.4.21 the error message disappeared. Thanks Steve for the suggestion and quick response.
Best Wishes

1 Like

Glad to hear it. Hopefully we’ll have Pressbooks fully PHP8 compatible before too long!