Error en theme socrates

  • Autor Autor jerelesi
  • Fecha de inicio Fecha de inicio
jerelesi

jerelesi

1
Lambda
Social Media
Verificación en dos pasos activada
Verificado por Whatsapp
Suscripción a IA
Hola amigos, cuando pongo el theme socrates en una de mis web me da el error:

Catchable fatal error: Object of class WP_Error could not be converted to string in /home/jerelesi/public_html/www.juegostradicionales.org/wp-content/themes/socrates/functions/native.php on line 104

Pero cuando elimino la funcion esta, me funciona bien.

Insertar CODE, HTML o PHP:
		// no cache files - let's finally resize it
		$new_img_path = image_resize( $file_path, $width, $height, $crop );
		$new_img_size = getimagesize( $new_img_path );
		$new_img = str_replace( basename( $image_src[0] ), basename( $new_img_path ), $image_src[0] );

Que hago la dejo eliminada o hay alguna otra solucion para no tener que eliminarla.

¿Para que sirve exactamente esta funcion?

Gracias
 
Atrás
Arriba