• Resolved Aaron Barraza

    (@aebs90)


    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!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support saadali2905

    (@saadali2905)

    Hi Aaron,

    Thanks for writing to us.

    We are unable to reproduce the error. Kindly help us in reproducing the error by sharing some screenshot with us so that we can provide you with a solution.

    Feel free to contact us for any further assistance.

    Regards

    Thread Starter Aaron Barraza

    (@aebs90)

    Weird.. I was not able to replicate on a blank site on this second round. But nevermind.

    The jobfeature_settings_options option (in wp_options table) was corrupted. Using PHP 7.4 I went to Job Board → Settings → Job Features and clicked on Save Changes. Then I updated to PHP 8 and everything was working fine.

    Note that as I mentioned before, this only was having issues while on PHP 8.0 and with the Modern Layout enabled. That’s caused because the PHP fatal error was occurring inside a conditional that checks if the v2 layout was active.

    I’m curious, did the format of the jobfeature_settings_options option change? See how big is the difference between the options before and after I re-saved the settings (I didn’t change any configuration). Obviosly this was saved as JSON, but I formated it with print_r( maybe_unserialize() ) to make it more readable. So, here’s the diff:

    Hopefully this information can be useful.

    Thank you again for your support!

    Plugin Author PressTigers

    (@presstigers)

    @aebs90,

    We apologize for the inconvenience that you experienced and thank you for sharing detailed feedback with us.

    The “jobfeature_settings_options” format differ based on the layout chosen, with the modern layout displaying icons and the classical layout using a table format. This is the reason behind a different array structure in “jobfeature_settings_options” for both layouts.

    We will still try to figure out the issue as per the suggested scenario. Feel free to reach us out if we can be of further assistance.

    Regards,

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error on PHP8 + Modern Layout’ is closed to new replies.