Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/06/2013, 10:14
yukuve
 
Fecha de Ingreso: noviembre-2012
Ubicación: España
Mensajes: 21
Antigüedad: 11 años, 5 meses
Puntos: 0
Pregunta como arreglar: Parse error: syntax error, unexpected T_STRING

hola, yo tengo un problema parecido y no se como solucionarlo. Es una llamada al wordpress desde la página y me da el siguiente error: Parse error: syntax error, unexpected T_STRING in /homez.743/obermann/www/blog/wp-includes/functions.php on line 2540

Pongo el código a ver si alguien puede decirme donde está el error:
Código PHP:
Ver original
  1. function dead_db() {
  2.     global $wpdb;
  3.  
  4.     // Load custom DB error template, if present.
  5.     if ( file_exists( WP_CONTENT_DIR . '/db-error.php' ) ) {
  6.         require_once( WP_CONTENT_DIR . '/db-error.php' );
  7.         die();
  8.     }
  9.  
  10.     // If installing or in the admin, provide the verbose message.
  11.     if ( defined('WP_INSTALLING') || defined('WP_ADMIN') )
  12.         wp_die($wpdb->error);
  13.  
  14.     // Otherwise, be terse.
  15.     status_header( 500 );
  16.     nocache_headers();
  17.     header( 'Content-Type: text/html; charset=utf-8'                  wp_load_translations_early(); ?>  
  18. <!DOCTYPE html>
  19. <html xmlns="http://www.w3.org/1999/xhtml"<?php if ( is_rtl() ) echo ' dir="rtl"'; ?>>
  20. <head>
  21. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  22.     <title><?php _e( 'Database Error' ); ?></title>

no se si con esto llega para verlo o tengo que ponerlo todo....
Gracias por adelantado estoy totalmente perdida.

Última edición por Nekko; 13/06/2013 a las 06:01