Title: PHP version 8.1.24 compatibility issue
Last modified: November 14, 2023

---

# PHP version 8.1.24 compatibility issue

 *  Resolved [ashimkumar](https://wordpress.org/support/users/ashimkumar/)
 * (@ashimkumar)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-version-8-1-24-compatibility-issue/)
 * Hello,
 * I have implemented the Redux framework in my theme’s Option panel. However, when
   I modify an option through the theme option panel and proceed to save the changes,
   it results in a Fatal error.
 * <span style=”color: rgb(68, 68, 68); font-size: medium; font-weight: 700; white-
   space-collapse: collapse; background-color: rgb(245, 121, 0);”>Fatal error: Uncaught
   TypeError: trim(): Argument #1 ($string) must be of type string, array given 
   in C:\wamp64\www\theme-dev\wp-content\plugins\redux-framework\redux-core\inc\
   validation\color\class-redux-validation-color.php on line </span><i style=”color:
   rgb(68, 68, 68); font-size: medium; font-weight: 700; white-space-collapse: collapse;”
   >31</i>
 * **I use PHP version 8.1.24 (Supports 64bit values)**
 * Best Regards
 * Asim Baroy

Viewing 1 replies (of 1 total)

 *  Plugin Author [Kev Provance](https://wordpress.org/support/users/kprovance/)
 * (@kprovance)
 * [2 years, 7 months ago](https://wordpress.org/support/topic/php-version-8-1-24-compatibility-issue/#post-17201564)
 * It’s not a PHP issue, it’s a passing an array when it should be a string issue.
   Specifically, the validation routine expects a hex sting, without or without 
   the pound symbol. So, don’t do that? If your color option has a return value 
   other than a hex string, do not use the color validation. Without seeing your
   config, I can’t say more.
 * Good luck.

Viewing 1 replies (of 1 total)

The topic ‘PHP version 8.1.24 compatibility issue’ is closed to new replies.

 * ![](https://ps.w.org/redux-framework/assets/icon.svg?rev=2889347)
 * [Redux Framework](https://wordpress.org/plugins/redux-framework/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/redux-framework/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/redux-framework/)
 * [Active Topics](https://wordpress.org/support/plugin/redux-framework/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/redux-framework/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/redux-framework/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Kev Provance](https://wordpress.org/support/users/kprovance/)
 * Last activity: [2 years, 7 months ago](https://wordpress.org/support/topic/php-version-8-1-24-compatibility-issue/#post-17201564)
 * Status: resolved