Ayuda con error al instalar plantilla personalizada en WordPress

  • Autor Autor juniordh6
  • Fecha de inicio Fecha de inicio
juniordh6

juniordh6

Gamma
Verificación en dos pasos activada
Verificado por Whatsapp
Hola usuarios del Foro, estoy instalando una plantilla wordpress personalizado, sin embargo me sale este error, necesito sus ayudas urgente, gracias.

Warning: Cannot modify header information - headers already sent by (output started at /home/kcnrxrgl/public_html/wp-content/themes/cuevacine/functions.php:21) in /home/kcnrxrgl/public_html/wp-includes/option.php on line 571

Warning: Cannot modify header information - headers already sent by (output started at /home/kcnrxrgl/public_html/wp-content/themes/cuevacine/functions.php:21) in /home/kcnrxrgl/public_html/wp-includes/option.php on line 572
 
Hola usuarios del Foro, estoy instalando una plantilla wordpress personalizado, sin embargo me sale este error, necesito sus ayudas urgente, gracias.

Warning: Cannot modify header information - headers already sent by (output started at /home/kcnrxrgl/public_html/wp-content/themes/cuevacine/functions.php:21) in /home/kcnrxrgl/public_html/wp-includes/option.php on line 571

Warning: Cannot modify header information - headers already sent by (output started at /home/kcnrxrgl/public_html/wp-content/themes/cuevacine/functions.php:21) in /home/kcnrxrgl/public_html/wp-includes/option.php on line 572

tenes que editar functions.php y en la linea 21 de seguro tenes algun caracter fuera del php... por eso te da error.
 
Este es el codigo en funtions.php de la linea indicado

PHP:
// if $value is an array, make it a CSV (unlikely)

$value = implode(',', (array)$value);

if ( get_post_meta($post->ID, $key, FALSE) ) {

// Custom field has a value.

update_post_meta($post->ID, $key, $value);

} else {

// Custom field does not have a value.

add_post_meta($post->ID, $key, $value);

}
 
Última edición:
Atrás
Arriba