Error unexpected T_VARIABLE.Ayuda!!

  • Autor Autor novatillasku
  • Fecha de inicio Fecha de inicio
N

novatillasku

Dseda
SEO
No se que pasa que el blog al intentar abrirlo me da éste error:

Parse error: syntax error, unexpected T_VARIABLE in /home/nova/public_html/wp-includes/functions.php on line 193

Y es que no tengo ni idea de que hacer.La parte del archivo es la siguiente:

function size_format( $bytes, $decimals = 0 ) {
$quant = array(
// ========================= Origin ====
'TB' => 1099511627776, // pow( 1024, 4)
'GB' => 1073741824, // pow( 1024, 3)
'MB' => 1048576, // pow( 1024, 2)
'kB' => 1024, // pow( 1024, 1)
'B ' => 1, // pow( 1024, 0)
);
foreach ( $quant as $unit => $mag )
if ( doubl// Mysql string Year
$mm = substr( $mysqlstring, 8, 2 ); // Mysql string Month
$md = substr( $mysqlstring, 5, 2 ); // Mysql string day
$day = mktime( 0, 0, 0, $md, $mm, $my ); // The timestamp for mysqlstring day.
$weekday = date( 'w', $day ); // The day of the week from the timestamp

La linea marcada en rojo es la 193, yo no veo nada, pero es logico, no entiendo nada de php ;-P
 
Esta mal.
function size_format( $bytes, $decimals = 0 ) {
$quant = array(
// ========================= Origin ====
'TB' => 1099511627776, // pow( 1024, 4)
'GB' => 1073741824, // pow( 1024, 3)
'MB' => 1048576, // pow( 1024, 2)
'kB' => 1024, // pow( 1024, 1)
'B ' => 1, // pow( 1024, 0)
);
foreach ( $quant as $unit => $mag )
if ( doubl// Mysql string Year

$mm = substr( $mysqlstring, 8, 2 ); // Mysql string Month
$md = substr( $mysqlstring, 5, 2 ); // Mysql string day
$day = mktime( 0, 0, 0, $md, $mm, $my ); // The timestamp for mysqlstring day.
$weekday = date( 'w', $day ); // The day of the week from the timestamp

Eso que esta en azul no cuadra.
 
Si aun tienes la carpeta de wordpress que descargaste, busca ese archivo y subelo de nuevo a tu servidor, claro a la misma carpeta donde dice que se encuentra que es /home/nova/public_html/wp-includes/, debes haber cambiado algo por error.
 
Si aun tienes la carpeta de wordpress que descargaste, busca ese archivo y subelo de nuevo a tu servidor, claro a la misma carpeta donde dice que se encuentra que es /home/nova/public_html/wp-includes/, debes haber cambiado algo por error.

Uissss, creo que no la tengo ;-(

- - - Actualizado - - -

Este es el archivo original, solo reemplazalo.

functions.php in tags/3.5.1/wp-includes

jejeje...ahora sale:

Warning: Division by zero in /home/nova/public_html/wp-includes/functions.php on line 3252

Fatal error: Cannot redeclare win_is_writable() (previously declared in /home/nova/public_html/wp-includes/functions.php:1448) in /home/nova/public_html/wp-admin/includes/misc.php on line 554
 
Esta mal.


Eso que esta en azul no cuadra.

Tenias razón, faltaba texto a partir de doubl

era:

eval($bytes) >= $mag )
return number_format_i18n( $bytes / $mag, $decimals ) . ' ' . $unit;

return false;
}

/**
* Get the week start and end from the datetime or date string from mysql.
*
* @since 0.71
*
* @param string $mysqlstring Date or datetime field type from mysql.
* @param int $start_of_week Optional. Start of the week as an integer.
* @return array Keys are 'start' and 'end'.
*/
function get_weekstartend( $mysqlstring, $start_of_week = '' ) {
$my = substr( $mysqlstring, 0, 4 );
 
Atrás
Arriba