twibed

Přehled odpovědí

Aktuálně jsou na stránce zobrazeny 2 příspěvky - 1. až 2. (z celkem 2)
  • Autor
    Příspěvky
  • odpověď na téma: Problém se souborem functions.php #16169

    twibed
    Participant

    Tak stránky už se mi znovu rozchodit podařilo – znovu jsem WP 3.6 a soubor functions.php jsem nahradil. Teď mi ale zase vyskakuje: Notice: wp_enqueue_script was called incorrectly. Scripts and styles should not be registered or enqueued until the wp_enqueue_scripts, admin_enqueue_scripts, or login_enqueue_scripts hooks. Please see Debugging in WordPress for more information. (This message was added in version 3.3.) in /data/web/virtuals/35572/virtual/www/wp-includes/functions.php on line 3012

    Tady je část kódu, kde by měla být chyba

    // Allow plugin to filter the output error trigger

    if ( WP_DEBUG && apply_filters( ‘doing_it_wrong_trigger_error’, true ) ) {

    if ( function_exists( ‘__’ ) ) {

    $version = is_null( $version ) ? ” : sprintf( __( ‘(This message was added in version %s.)’ ), $version );

    $message .= ‘ ‘ . __( ‘Please see Debugging in WordPress for more information.’ );

    trigger_error( sprintf( __( ‘%1$s was called incorrectly. %2$s %3$s’ ), $function, $message, $version ) );

    } else {

    $version = is_null( $version ) ? ” : sprintf( ‘(This message was added in version %s.)’, $version );

    $message .= ‘ Please see Debugging in WordPress for more information.’;

    trigger_error( sprintf( ‘%1$s was called incorrectly. %2$s %3$s’, $function, $message, $version ) );

    }

    }

    }

    odpověď na téma: Problém se souborem functions.php #16168

    twibed
    Participant

    Do administrace se přihlásit nemůžu, tak jsem změnil název, ale nepomohlo to. Používám WP 3.6, konkrétně šlo o plugin na tvorbu designu stránek, na přesný název si už nevzpomínám.

Aktuálně jsou na stránce zobrazeny 2 příspěvky - 1. až 2. (z celkem 2)

WordPress – novinky, návody a zajímavosti