Support » Theme: Spacious » Solution: Depreciated Notice under PHP 7.4

  • Resolved sixtyseven

    (@sixtyseven)


    I found a little something under PHP 7.4: A depreciated notice regarding the function spacious_hex2rgb(): “Deprecated: Invalid characters passed for attempted conversion, these have been ignored”.

    Reason: The # character will no longer be processsed in newer PHP Versions conversions functions.

    Solution: In inc/functions.php change line number 441 from $int = hexdec( $hexstr ); to $int = hexdec( ltrim($hexstr, '#') );

    I hope that will get fixed in an update 😉

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.