Fatal error on PHP8 + Modern Layout
-
Hello!
We started getting a PHP fatal error when creating a new Job Board entry, and the tabs on the (Job Board) Settings page were not working neither.After some research we fixed these issues by downgrading from PHP 8.0 to PHP 7.4.
So we start searching for similar issues in the forum to see if it was a known issue and found this topic: PHP 8 problems but looks like that was a different error, this is what we get on the error log:
Uncaught TypeError: Cannot access offset of type string on string in wp-content/plugins/simple-job-board/admin/meta-boxes/class-simple-job-board-meta-box-job-features.php on line 149.
We did some extra debugging and found a (temporary) solution: changing to the Classic Layout (while the site is on PHP 7.4 otherwise you can’t get to the Appearance options), once the Classic Layout is active we was able to upgrade to PHP 8.0 and the site started working without any error.
It’s also important to mention that we recreated this tests on a blank site, using the Twenty Twenty-Three theme and no other plugin additional to Simple Job Board.
Could you implement a fix on the class-simple-job-board-meta-box-job-features.php file so we can use the Modern Layout with PHP 8.0?
Thanks a lot for your support!
- The topic ‘Fatal error on PHP8 + Modern Layout’ is closed to new replies.