Foros del Web » Programando para Internet » PHP »

Wordpress error funcion fopen

Estas en el tema de Wordpress error funcion fopen en el foro de PHP en Foros del Web. Hola tengo un problema con wordpress... Mude la pagina de un hosting a otro y me sale un error que no permite editar nada todo ...
  #1 (permalink)  
Antiguo 02/06/2015, 15:35
 
Fecha de Ingreso: octubre-2014
Mensajes: 14
Antigüedad: 9 años, 6 meses
Puntos: 0
Wordpress error funcion fopen

Hola tengo un problema con wordpress...
Mude la pagina de un hosting a otro y me sale un error que no permite editar nada todo lo que pongo editar aparece en blanco.

Warning: fopen(/home/******/public_html/wp-content/plugins/ubermenu/ubermenu.php): failed to open stream: No such file or directory in /home/******/public_html/wp-includes/functions.php on line 4198

Warning: fread() expects parameter 1 to be resource, boolean given in /home/******/public_html/wp-includes/functions.php on line 4201

Warning: fclose() expects parameter 1 to be resource, boolean given in /home/******/public_html/wp-includes/functions.php on line 4204





Código:
function get_file_data( $file, $default_headers, $context = '' ) {
	// We don't need to write to the file, so just open for reading.
	$fp = fopen( $file, 'r' );

	// Pull only the first 8kiB of the file in.
	$file_data = fread( $fp, 8192 );

	// PHP will close file handle, but we are good citizens.
	fclose( $fp );

	// Make sure we catch CR-only line endings.
	$file_data = str_replace( "\r", "\n", $file_data );

	/**
	 * Filter extra file headers by context.
	 *
	 * The dynamic portion of the hook name, $context, refers to the context
	 * where extra headers might be loaded.
	 *
	 * @since 2.9.0
	 *
	 * @param array $extra_context_headers Empty array by default.
	 */
	if ( $context && $extra_headers = apply_filters( "extra_{$context}_headers", array() ) ) {
		$extra_headers = array_combine( $extra_headers, $extra_headers ); // keys equal values
		$all_headers = array_merge( $extra_headers, (array) $default_headers );
	} else {
		$all_headers = $default_headers;
	}

	foreach ( $all_headers as $field => $regex ) {
		if ( preg_match( '/^[ \t\/*#@]*' . preg_quote( $regex, '/' ) . ':(.*)$/mi', $file_data, $match ) && $match[1] )
			$all_headers[ $field ] = _cleanup_header_comment( $match[1] );
		else
			$all_headers[ $field ] = '';
	}

	return $all_headers;
}
  #2 (permalink)  
Antiguo 03/06/2015, 16:19
Avatar de enlinea777  
Fecha de Ingreso: mayo-2008
Ubicación: frente al pc
Mensajes: 1.830
Antigüedad: 15 años, 11 meses
Puntos: 127
Respuesta: Wordpress error funcion fopen

al parecer lo migraste mal.
cual fue el procedimiento para migrar?
  #3 (permalink)  
Antiguo 05/06/2015, 08:29
 
Fecha de Ingreso: octubre-2014
Mensajes: 14
Antigüedad: 9 años, 6 meses
Puntos: 0
Respuesta: Wordpress error funcion fopen

Cita:
Iniciado por enlinea777 Ver Mensaje
al parecer lo migraste mal.
cual fue el procedimiento para migrar?
Lo que hice fue cambiar la ruta de la we de wpb en las config, luego mover la bd y luego copie los archivos en el servidor
  #4 (permalink)  
Antiguo 05/06/2015, 14:38
Avatar de enlinea777  
Fecha de Ingreso: mayo-2008
Ubicación: frente al pc
Mensajes: 1.830
Antigüedad: 15 años, 11 meses
Puntos: 127
Respuesta: Wordpress error funcion fopen

algunos plugis de word pres se caen cuando haces migraciones pues usan sus propias variables de configuracion.
prueba desinstalando todos los plugins y despues migrar

Etiquetas: fopen, funcion, html, wordpress
Atención: Estás leyendo un tema que no tiene actividad desde hace más de 6 MESES, te recomendamos abrir un Nuevo tema en lugar de responder al actual.
Respuesta




La zona horaria es GMT -6. Ahora son las 21:58.