
PHP Kod Hatası Yardım
14
●142
- 20-12-2020, 15:09:03/homepublic_html/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php on line 881
/home/public_html/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php on line 882
/home/public_html/wp-content/plugins/woocommerce/includes/wc-formatting-functions.php on line 883
[07:05:28 UTC] PHP Warning: substr() expects parameter 1 to be string, array given in - 20-12-2020, 15:49:25Cevap için teşekkürler hocam ama sorunuzu tam olarak anlayamadım. Çok anlamıyorum kod olayından.oktayWEB adlı üyeden alıntı: mesajı görüntüle

- 20-12-2020, 15:59:22if ( ! function_exists( 'wc_hex_is_light' ) ) {oktayWEB adlı üyeden alıntı: mesajı görüntüle
/** * Determine whether a hex color is light. * * @param mixed $color Color. * @return bool True if a light color. */ function wc_hex_is_light( $color ) { $hex = str_replace( '#', '', $color );
$c_r = hexdec( substr( $hex, 0, 2 ) ); $c_g = hexdec( substr( $hex, 2, 2 ) ); $c_b = hexdec( substr( $hex, 4, 2 ) );
$brightness = ( ( $c_r * 299 ) + ( $c_g * 587 ) + ( $c_b * 114 ) ) / 1000;
return $brightness > 155; }
} - 20-12-2020, 16:07:50Üyeliği durdurulduKadirTPT adlı üyeden alıntı: mesajı görüntüle
if ( ! function_exists( 'wc_hex_is_light' ) ) { /** * Determine whether a hex color is light. * * @param mixed $color Color. * @return bool True if a light color. */ function wc_hex_is_light( $color ) { echo $color."<br />"; $hex = str_replace( '#', '', $color ); echo $hex."<br />"; $c_r = hexdec( substr( $hex, 0, 2 ) ); $c_g = hexdec( substr( $hex, 2, 2 ) ); $c_b = hexdec( substr( $hex, 4, 2 ) ); $brightness = ( ( $c_r * 299 ) + ( $c_g * 587 ) + ( $c_b * 114 ) ) / 1000; return $brightness > 155; } }Bu şekilde ekleyip çalıştırın. - 20-12-2020, 16:13:19Web sitenizde kritik bir hata oluştu.oktayWEB adlı üyeden alıntı: mesajı görüntüle
WordPress'te hata ayıklama hakkında daha fazla bilgi edinin.
olmadı hocam

olmadı hocam