Title: php 8.0 Issues &#8211; Fatal Error
Last modified: February 17, 2023

---

# php 8.0 Issues – Fatal Error

 *  Resolved [fruchtn](https://wordpress.org/support/users/fruchtn/)
 * (@fruchtn)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/)
 * Hey,
   I have a problem that the Theme is not working with php 8.0Parts and functionalities
   of the website break and cause a fatal error.Any suggestions?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-8-0-issues-fatal-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  Theme Author [David Vongries](https://wordpress.org/support/users/davidvongries/)
 * (@davidvongries)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16481553)
 * Can you please share the fatal error that you’re getting?
 * Thank you.
 *  Thread Starter [fruchtn](https://wordpress.org/support/users/fruchtn/)
 * (@fruchtn)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16481568)
 * [https://ibb.co/KshBrTn](https://ibb.co/KshBrTn)
 *  Thread Starter [fruchtn](https://wordpress.org/support/users/fruchtn/)
 * (@fruchtn)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16481586)
 * I had to restore from a previous backup, so the screenshot is the only thing 
   I have at this point
 *  Thread Starter [fruchtn](https://wordpress.org/support/users/fruchtn/)
 * (@fruchtn)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16490246)
 * Is there anything you can do?
   I didn’t receive any answer…
 *  Theme Author [David Vongries](https://wordpress.org/support/users/davidvongries/)
 * (@davidvongries)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16493419)
 * Hey [@fruchtn](https://wordpress.org/support/users/fruchtn/),
 * we are still looking into this and will update you asap.
 *  Thread Starter [fruchtn](https://wordpress.org/support/users/fruchtn/)
 * (@fruchtn)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16515046)
 * 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”**
 *  Thread Starter [fruchtn](https://wordpress.org/support/users/fruchtn/)
 * (@fruchtn)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16520992)
 * Hired an external developer who could fix the issue in 1 hour. Thanks for not
   taking care.
 *  Theme Author [David Vongries](https://wordpress.org/support/users/davidvongries/)
 * (@davidvongries)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16546848)
 * Hi [@fruchtn](https://wordpress.org/support/users/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,
   David
 *  Thread Starter [fruchtn](https://wordpress.org/support/users/fruchtn/)
 * (@fruchtn)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16546895)
 * Sure. I switched from php 7.4 to php 8.0
   That’s it.
 *  Theme Author [David Vongries](https://wordpress.org/support/users/davidvongries/)
 * (@davidvongries)
 * [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16546915)
 * Thanks for letting me know.
 *     ```wp-block-code
       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
       ```
   
 * This 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.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘php 8.0 Issues – Fatal Error’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/page-builder-framework/2.11.10/
   screenshot.jpg)
 * Page Builder Framework
 * [Support Threads](https://wordpress.org/support/theme/page-builder-framework/)
 * [Active Topics](https://wordpress.org/support/theme/page-builder-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/page-builder-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/page-builder-framework/reviews/)

 * 10 replies
 * 2 participants
 * Last reply from: [David Vongries](https://wordpress.org/support/users/davidvongries/)
 * Last activity: [3 years, 2 months ago](https://wordpress.org/support/topic/php-8-0-issues-fatal-error/#post-16546915)
 * Status: resolved