No estás registrado (Registrarse)

Vanilla 1.1.10 es un producto de Lussumo. Para más información: Documentación, Soporte.

    •  
      CommentAuthorJackburton
    • CommentTimeAug 6th 2011
     # 1
    Edité el archivo functions de un wordpress y ahora no funciona:

    unexpected T_STRING in /usr/home/web/www/wp-content/themes/atahualpa/functions.php on line 756

    Supongo que será cosa de un espacio en blanco, ya que volví a borrar lo que edité, pero no consigo hacerlo funcionar,
    debe de ser algo muy sencillo si se tiene un buen editor.

    Alguien me hecha una mano y le da un vistazo al functions.php? le envío el archivo por email

    Se lo agradecería con amor a distancia :meparto:Apuestas Deportivas | Las mejores ofertas
    •  
      CommentAuthorGintoni
    • CommentTimeAug 6th 2011
     # 2
    Bajate el crisom editor y podras ver ese espacio . Con las opciones te vas a la linea de codigo donde esta el error y rectifica. No estoy en casa para mirarme el functions.
    •  
      CommentAuthorJackburton
    • CommentTimeAug 6th 2011
     # 3
    gracias por la sugerencia.

    Creo que me colé con lo del espacio. No encuentro ninguno :\

    El error me lo da en la linea 756

    function get_transient( $transient ) {
    global $_wp_using_ext_object_cache;

    $pre = apply_filters( 'pre_transient_' . $transient, false );
    if ( false !== $pre )
    return $pre;

    if ( $_wp_using_ext_object_cache ) {
    $value = wp_cache_get( $transient, 'transient' );
    } else {
    $transient_option = '_transient_' . $transient;
    if ( ! defined( 'WP_INSTALLING' ) ) {
    // If option is not in alloptions, it is not autoloaded and thus has a timeout
    $alloptions = wp_load_alloptions();
    if ( !isset( $alloptions[$transient_option] ) ) {
    $transient_timeout = '_transient_timeout_' . $transient;
    if ( get_option( $transient_timeout ) < time() ) {
    delete_option( $transient_option );
    delete_option( $transient_timeout );
    return false;
    }
    }
    }

    $value = get_option( $transient_option );
    }

    return apply_filters( 'transient_' . $transient, $value );
    }

    /**
    * Set/update the value of a transient
    *
    * You do not need to serialize values. If the value needs to be serialized, then
    * it will be serialized before it is set.
    *
    * @since 2.8.0
    * @package WordPress
    * @subpackage Transient
    *
    * @uses apply_filters() Calls 'pre_set_transient_$transient' hook to allow overwriting the
    * transient value to be stored.
    * @uses do_action() Calls 'set_transient_$transient' and 'setted_transient' hooks on success.
    *
    * @param string $transient Transient name. Expected to not be SQL-escaped.
    * @param mixed $value Transient value. Expected to not be SQL-escaped.
    * @param int $expiration Time until expiration in seconds, default 0
    <strong> linea 756-></strong>* @return bool False if value was not set and true if value was set.
    */
    function set_transient( $transient, $value, $expiration = 0 ) {
    global $_wp_using_ext_object_cache;


    Lo único que había hecho es editarlo dentro del admin de wordpress, añadiendo unas lineas antes del cierre del php, al ver que fallaba, borré lo que había añadido, pero parece que algo no fué como tendría que haber ido :cry:Apuestas Deportivas | Las mejores ofertas
    •  
      CommentAuthorJackburton
    • CommentTimeAug 6th 2011
     # 4
    al renombrar la carpeta de themas, para ver si por ahí andaba el error me ha pasado algo curioso.

    La web ahora funciona, pero tiene el tema por defecto Twenty Ten 1.1, aunque en el menú de temas aparece activado el WordPress Default 1.6.

    Cada tema que trato de activar da como resultado que se vea el Twenty ten, incluso en la vista previa.

    He vuelto a renombrar la carpeta de themes a su nombre original, pero sigue pasando lo mismo.

    Alguna pista? :pApuestas Deportivas | Las mejores ofertas
    •  
      CommentAuthorJackburton
    • CommentTimeAug 6th 2011
     # 5
    OK, dejo este monólogo, ya está solucionado.

    Desde el menú de temas de wordpress, entré a editar el functions.php y encontré que aquí todavía aparecía el código añadido :komete:. Lo he borrado, reactivado el tema, y todo funciona correctamente.

    Quien me mandará andar toqueteando?
    :jat:







    Corso, puedes cerrar el hilo para que se pierda entre los posts antiguos (si Domo lo permite) y evitarme la vergüenza releerlo!Apuestas Deportivas | Las mejores ofertas