Just Stopped Working

Installed a couple of months ago on my own server and have been using Version: 5.3.7.0
Imported some books, created new content, and everything going fine …

Not sure when I last logged in (probably last week), but today the site just crashed (page won’t load).

I renamed the plugins folder and narrowed it down to Pressbooks. Disabled all other plugins and themes other than McLaren as per recommendations. When I activate Pressbooks, the site immediately becomes unloadable (any page, admin, etc.).

Adding debug, I get this:

Fatal error : Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/amorphous/pressbooks.amorphous.press/wp-includes/class-wp-hook.php on line 292

Fatal error : Allowed memory size of 134217728 bytes exhausted (tried to allocate 20480 bytes) in /home/amorphous/pressbooks.amorphous.press/wp-includes/class-wp-hook.php on line 301

Increased the memory by modifying the config.php file, first to 256, then 512. At 512 I was able to see the front page (the only page outside the subsites, which just has a login link), but blanked out after logging in.

The error messages reflect the increase in allowed memory size, but it always says “(tried to allocate 20480 bytes)”

I also tried installing the latest release of Pressbooks and the result is the same.

Hello, i just was about to post something similar. The local WordPress installation that has Pressbooks installed automatically updated to WordPress 6.1 which was just released 2022-11-01. I tried the usual troubleshooting steps then even asked our IT to increase the RAM available in the VM (Virtual Machine) to double what was originally allocated. Eventually i just had to install and use “wp-cli” to force WordPress to downgrade back to 6.0.3 since the WordPress web admin interface wasn’t accessible. After downgrading WordPress, everything started working again. Unfortunately, that’s obviously not a long-term fix, just a temporary workaround.

hi @Ken_JP_Stuczynski & @metalchink we have not yet tested Pressbooks against the latest WordPress release (6.1.0). It sounds like there are some compatibility issues that will need to be resolved before users update their WordPress version. For now, we recommend sticking with WordPress 6.0.3.

Reverted to WordPress 6.0.3

Everything seems fine but an error on the login page:

Deprecated : Hook login_headertitle isdeprecated since version 5.2.0! Use login_headertext instead. Usage of the title attribute on the login logo is not recommended for accessibility reasons. Use the link text instead. in**/home/amorphous/pressbooks.amorphous.press/wp-includes/functions.php** on line5756

Hoping this will go away when I can upgrade.

It looks like that’s a WordPress debug error message being displayed.

This PR fixed the WP 6.1 compatibility issue: fix: add compatibility with WordPress 6.1 (resolves #2986) by greatislander · Pull Request #2997 · pressbooks/pressbooks · GitHub. It has been merged to our dev branch but we haven’t yet cut a new release of Pressbooks. Our next release expected later this month will be fully tested for compatibility with WP 6.1 (and will require PHP 8).