php 8.0 Issues – Fatal Error
-
Hey,
I have a problem that the Theme is not working with php 8.0
Parts and functionalities of the website break and cause a fatal error.
Any suggestions?The page I need help with: [log in to see the link]
-
Can you please share the fatal error that you’re getting?
Thank you.
I had to restore from a previous backup, so the screenshot is the only thing I have at this point
Is there anything you can do?
I didn’t receive any answer…Hey @fruchtn,
we are still looking into this and will update you asap.
2023/02/28 17:40:11 [error] 29433#29433: *86660 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /www/starkeimmobilien_696/public/wp-content/themes/page-builder-framework/inc/helpers.php:702
Stack trace:0 /www/starkeimmobilien_696/public/wp-content/themes/page-builder-framework/inc/helpers.php(702): in_array(‘remove-header’, ‘a:2:{s:18:”cust…’, true)
1 /www/starkeimmobilien_696/public/wp-includes/class-wp-hook.php(308): wpbf_remove_header(Object(WP))
2 /www/starkeimmobilien_696/public/wp-includes/class-wp-hook.php(332): WP_Hook->apply_filters(NULL, Array)
3 /www/starkeimmobilien_696/public/wp-includes/plugin.php(565): WP_Hook->do_action(Array)
4 /www/starkeimmobilien_696/public/wp-includes/class-wp.php(797): do_action_ref_array(‘wp’, Array)
5 /www/starkeimmobilien_696/public/wp-includes/functions.php(1332): WP->main(”)
6 /www/starkeimmobilien_696/public/wp-blog-header.php(16): wp()
7 /www/starkeimmobilien_696/public/index.php(17): require(‘/www/starkeimmo” while reading response header from upstream, client: 157.90.215.250, server: starke.immobilien, request: “GET /ratgeber-immobilie-geerbt/ HTTP/1.1”, upstream: “fastcgi://unix:/var/run/php8.0-fpm-starkeimmobilien.sock:”, host: “starke.immobilien:26012”
Hired an external developer who could fix the issue in 1 hour. Thanks for not taking care.
Hi @fruchtn,
we are struggeling to replicate this on our end. Do you recall how exactly you were able to trigger the fatal error?
Thank you!
Cheers,
DavidSure. I switched from php 7.4 to php 8.0
That’s it.Thanks for letting me know.
2023/02/28 17:40:11 [error] 29433#29433: *86660 FastCGI sent in stderr: “PHP message: PHP Fatal error: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, string given in /www/starkeimmobilien_696/public/wp-content/themes/page-builder-framework/inc/helpers.php:702This is strange as the value given should never be a string. When creating a post or page, the value provided by default is an array. There shouldn’t be a way to remove that data for it to become a(n empty) string.
Though, we had others report this on very rare occasions. I’ve just updated all my own sites from php 7.4 to 8.0 with no issues.
Now the next thing I can think of is that plugins were used to maybe duplicate posts/pages where that data got lost in the mix? That’s just a guess though.
The topic ‘php 8.0 Issues – Fatal Error’ is closed to new replies.
