• Resolved Ashim Kumar

    (@ashimkumar)


    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

    (@kprovance)

    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.