Skip to content

Bug: major incompatibility with php 8.2 #214

@NicktheGeek

Description

@NicktheGeek

I'm still working to understand exactly what happened here so I'll add as much detail as possible in the hope that maybe someone knows some part of the code that could have triggered this.

A few weeks ago we started using this plugin on a client site and also updated to PHP 8.2. There were some warnings thrown but otherwise everything worked in our testing and continued to work for a few weeks.

Then 2 days ago the site went down. Some pages would partially load and other pages failed to load at all. For example, the login page threw a 502 error.

The debug logs did not shed any light on the issue. NGINX showed that PHP was exiting prematurely with an error but the PHP logs didn't record the error.

The only thing I could do to diagnose was log in via SFTP to try and figure out where it was halting. Eventually I renamed the plugins directory and the site was loading better though some functions no longer existed but at least that provided errors that were not found previously.

I restored the directory name and everything broke again.

So I went through each plugin renaming the directory until the font-awesome plugin. As soon as I renamed it, the entire site was back up except icons didn't work because the plugin wasn't loading.

Again, this worked in PHP 8.2 for weeks, but something triggered an error state in such a way that PHP failed before it could record the error.

The only other bit of diagnostic info I have so far is that there was a sister site we still had on PHP 8.0 because some issues with the login had to be resolved before updating. The code is mostly the same including this plugin. It never had an issue so I reactivated the font awesome plugin after rolling back the site that broke to PHP 8.0 and everything is working perfectly again.

So there appears to be some code that is triggered intermittently that breaks in such a way in PHP 8.2 that I could not get any debug info.

I hope this might trigger some idea because I'm at a loss currently.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions