Title: PHP 8.2 Critical Error
Last modified: August 18, 2023

---

# PHP 8.2 Critical Error

 *  [grungyape](https://wordpress.org/support/users/grungyape/)
 * (@grungyape)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-8-2-critical-error/)
 * Unfortunately the site I am working with is behind a firewall, so I can’t share
   access, but the server was recently moved to PHP 8.2 All other sites using built
   in WP search or a different plugin appear to be working. 
   From the front site,
   you can search, and receive no errors, but from the admin site, clicking on settings
   produces a critical error.
 * After investigating the PHP logs, it shows a critical error with a different 
   plugin called Document Gallery by Dan Rossiter. This error triggers the moment
   I click Relevanssi > Settings. No idea why that seems to be breaking Relevanssi
   settings, but it does.
 * I’ve disabled DG and Relevanssi is working. I’m simply reporting this to you,
   and will to Document Gallery for FYI.

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

 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-8-2-critical-error/#post-16984596)
 * I tried reproducing the error, but I can have both plugins active without any
   critical errors.
 * Can you please share the full error message and call stack?
 *  [dlymanchapman](https://wordpress.org/support/users/dlymanchapman/)
 * (@dlymanchapman)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-8-2-critical-error/#post-16996376)
 *     ```wp-block-code
       Mikko, having same issue because my site is behind a firewall as well. Here is the error we see:
   
       When seeking help with this issue, you may be asked for some of the following information:
   
       WordPress version 6.3
   
       Active theme: Blade Child (version 3.5.0) Current plugin: Relevanssi (version 4.20.0) PHP version 8.2.8
   
       Error Details
   
       =============
   
       An error of type E_ERROR was caused in line 29 of the file /nas/content/live/lacpcstg/wp-content/plugins/relevanssi/lib/compatibility/acf.php. Error message: Uncaught TypeError: substr(): Argument #1 ($string) must be of type string, array given in /nas/content/live/lacpcstg/wp-content/plugins/relevanssi/lib/compatibility/acf.php:29
   
       Stack trace:
   
       #0 /nas/content/live/lacpcstg/wp-content/plugins/relevanssi/lib/compatibility/acf.php(29): substr(Array, 0, 3)
   
       #1 /nas/content/live/lacpcstg/wp-includes/class-wp-hook.php(312): relevanssi_acf_relationship_fields(false)
   
       #2 /nas/content/live/lacpcstg/wp-includes/plugin.php(205): WP_Hook->apply_filters(false, Array)
   
       #3 /nas/content/live/lacpcstg/wp-content/plugins/relevanssi/lib/search.php(70): apply_filters('relevanssi_sear...', false, Object(WP_Query))
   
       #4 /nas/content/live/lacpcstg/wp-includes/class-wp-hook.php(310): relevanssi_query(NULL, Object(WP_Query))
   
       #5 /nas/content/live/lacpcstg/wp-includes/plugin.php(256): WP_Hook->apply_filters(NULL, Array)
   
       #6 /nas/content/live/lacpcstg/wp-includes/class-wp-query.php(3147): apply_filters_ref_array('posts_pre_query', Array)
   
       #7 /nas/content/live/lacpcstg/wp-includes/class-wp-query.php(3800): WP_Query->get_posts()
   
       #8 /nas/content/live/lacpcstg/wp-includes/post.php(2441): WP_Query->query(Array)
   
       #9 /nas/content/live/lacpcstg/wp-content/plugins/wp-expand-tabs-free/admin/GutenbergBlock/class-wp-tabs-free-gutenberg-block-init.php(77): get_posts(Array)
   
       #10 /nas/content/live/lacpcstg/wp-content/plugins/wp-expand-tabs-free/admin/GutenbergBlock/class-wp-tabs-free-gutenberg-block-init.php(116): WP_Tabs_Free_Gutenberg_Block_Init->sptabfree_post_list()
   
       #11 /nas/content/live/lacpcstg/wp-includes/class-wp-hook.php(310): WP_Tabs_Free_Gutenberg_Block_Init->sptabfree_gutenberg_shortcode_block('')
   
       #12 /nas/content/live/lacpcstg/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters(NULL, Array)
   
       #13 /nas/content/live/lacpcstg/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
   
       #14 /nas/content/live/lacpcstg/wp-settings.php(632): do_action('init')
   
       #15 /nas/content/live/lacpcstg/wp-config.php(121): require_once('/nas/content/li...')
   
       #16 /nas/content/live/lacpcstg/wp-load.php(50): require_once('/nas/content/li...')
   
       #17 /nas/content/live/lacpcstg/wp-login.php(12): require('/nas/content/li...')
   
       #18 {main}
   
         thrown
       ```
   
 *  Plugin Author [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * (@msaari)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/php-8-2-critical-error/#post-16996947)
 * Your problem seems to be coming from the WP Tabs plugin. Somehow the combination
   of WP Tabs and ACF is causing this problem. But it has nothing to do with Document
   Gallery, so please start a new support thread for this separate issue.

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

The topic ‘PHP 8.2 Critical Error’ is closed to new replies.

 * ![](https://ps.w.org/relevanssi/assets/icon-256x256.png?rev=3529670)
 * [Relevanssi - A Better Search](https://wordpress.org/plugins/relevanssi/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/relevanssi/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/relevanssi/)
 * [Active Topics](https://wordpress.org/support/plugin/relevanssi/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/relevanssi/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/relevanssi/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [Mikko Saari](https://wordpress.org/support/users/msaari/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/php-8-2-critical-error/#post-16996947)
 * Status: not resolved