Title: PHP error: Array to string conversion
Last modified: February 13, 2022

---

# PHP error: Array to string conversion

 *  Resolved [herrzhull](https://wordpress.org/support/users/herrzhull/)
 * (@herrzhull)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-array-to-string-conversion-2/)
 * Dear,
    I noticed the issue described in [https://wordpress.org/support/topic/php-notice-array-to-string-conversion-8/](https://wordpress.org/support/topic/php-notice-array-to-string-conversion-8/)
   still occurs with Neve when running PHP 8.1.2, causing the customizer to infinite-
   load. I switched back to PHP 7.4, which resolved the issue for now.
 * The error:
    AH01071: Got error ‘PHP message: PHP Warning: Array to string conversion
   in /data/sites/web/www/wp-includes/formatting.php on line 1098
 * It happens with all plugins disabled and no active child theme.
 * Thanks a lot!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-error-array-to-string-conversion-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [luciamarinescu](https://wordpress.org/support/users/luciamarinescu/)
 * (@luciamarinescu)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-array-to-string-conversion-2/#post-15383722)
 * Hi [@herrzhull](https://wordpress.org/support/users/herrzhull/),
 * Thanks for choosing Neve!
 * Unfortunately I am not able to replicate this issue, the Customizer loads as 
   expected on my end. Does this happen for you on a fresh installation of Neve 
   as well?
 * Thank you!
 *  Thread Starter [herrzhull](https://wordpress.org/support/users/herrzhull/)
 * (@herrzhull)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-array-to-string-conversion-2/#post-15451999)
 * Hello,
 * I started a new webserver today and installed a fresh WordPress with only the
   Neve theme installed to check this.
 * The customizer loads fine on PHP8.1 on a fresh install, however my logs are again
   flooded with the array to string conversion error mentioned above. As this is
   the only error I notice across all platforms so far this is something that may
   need to be looked into, regardless if the editor loads or not. Dropping to 7.8
   removes the error, and also revives the customizer on my other (more fleshed-
   out) site.
 * I’m stuck to 8.1 on prod, and I love the theme, so with the error resolved I 
   could check if I can reproduce the infinite load with the error gone.
 * Thanks again!
 *  Thread Starter [herrzhull](https://wordpress.org/support/users/herrzhull/)
 * (@herrzhull)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-array-to-string-conversion-2/#post-15453882)
 * Update: I can now confirm the notice has nothing to do with the customizer not
   loading. I changed my child theme back to default settings (so an exact copy 
   of the child theme with all custom JS and CSS, but without any of the stored 
   changes I made on-site) and the customizer works. So there is a way somewhere
   to break the customizer from within the customizer. I’ll keep you posted as to
   how to reproduce this.
 *  Thread Starter [herrzhull](https://wordpress.org/support/users/herrzhull/)
 * (@herrzhull)
 * [4 years, 3 months ago](https://wordpress.org/support/topic/php-error-array-to-string-conversion-2/#post-15453906)
 * Update: in the default Neve child theme (perhaps also in Neve by default?), set
   the color for the buttons in the customizer (primary / secondary / hover etc).
   Save it, and the customizer will fail to load on PHP8.1.
 *  [Mat](https://wordpress.org/support/users/mateithemeisle/)
 * (@mateithemeisle)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-array-to-string-conversion-2/#post-15464019)
 * Hello [@herrzhull](https://wordpress.org/support/users/herrzhull/) ,
 * Thank you for your detailed explanation!
 * I followed your instructions in trying to recreate the issue but to no avail (
   Neve default or child theme). I changed the button colors in all aspects in both
   the default and the child theme, saved the changes and I could access the Customizer
   as well as the editor in both situations afterward whilst using WP 5.9.2 and 
   PHP 8.1. ( please note that PHP 8.1.2 is not yet a stable and secure version 
   so errors can happen there)
 * No errors or warnings appear on the instance either. However, I did notice that
   particular warning appearing in the debug log. As mentioned by the message it
   is a warning, not an error, thus nothing will break the functionality or looks
   of the website.
 * Thank you for this and we’ll let our developers know about the warning so they
   can fix it in the future!

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

The topic ‘PHP error: Array to string conversion’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/neve/4.2.4/screenshot.png)
 * Neve
 * [Support Threads](https://wordpress.org/support/theme/neve/)
 * [Active Topics](https://wordpress.org/support/theme/neve/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/neve/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/neve/reviews/)

## Tags

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 5 replies
 * 3 participants
 * Last reply from: [Mat](https://wordpress.org/support/users/mateithemeisle/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/php-error-array-to-string-conversion-2/#post-15464019)
 * Status: resolved