Home › Forum › Plugin e temi di WP › contact form 7 4.6 errore Notice: wpcf7_add_shortcode è deprecato dalla versione
-
AutorePost
-
-
5 Dicembre 2016 alle 18:39 #31195LuiPartecipante
Salve, ho installato proprio questa sera il plugin contact form 7 con wordpress 4.6.1.
E ogni pagina mi da questi errori avendo il debug=true nel wp-config.php attivo che mi serve per testare il tema che sto facendo.
Ora vi metto l’errore:
Notice: wpcf7_add_shortcode è deprecato dalla versione 4.6! Utilizza invece wpcf7_add_form_tag. in wwwwordpresswp-contentpluginscontact-form-7includesfunctions.php on line 351
che devo fa?
Grazie mille. -
5 Dicembre 2016 alle 19:08 #121079TittiModeratore
Correggi come consiglia la nota
wpcf7_add_shortcode
in
wpcf7_add_form_tag
oppure attendi la correzione da parte degli autori del plugin.
-
5 Dicembre 2016 alle 19:21 #121080LuiPartecipante
alla riga 351 c’è questa roba:
function wpcf7_deprecated_function( $function, $version, $replacement ) {
$trigger_error = apply_filters( 'deprecated_function_trigger_error', true );
if ( WP_DEBUG && $trigger_error ) {
if ( function_exists( '__' ) ) {
trigger_error( sprintf( __( '%1$s is deprecated since Contact Form 7 version %2$s! Use %3$s instead.', 'contact-form-7' ), $function, $version, $replacement ) );
} else {
trigger_error( sprintf( '%1$s is deprecated since Contact Form 7 version %2$s! Use %3$s instead.', $function, $version, $replacement ) );
}
}
}
e non vedo nessuna funzione in quel nome.
ho aperto il functions.php del plugin.. ma non lo vedo. -
5 Dicembre 2016 alle 19:30 #121081LuiPartecipante
ho risolto ma non so bene che ho fatto ho messo a false questa riga di codice:
$trigger_error = apply_filters( ‘deprecated_function_trigger_error’, false );
leggendo le funzioni sarebbero che disattiva e attiva le funzioni vecchie .. poi non so ,
ma so soltanto che è andato via il notice.
confermi ?
grazie mille.
-
5 Dicembre 2016 alle 21:56 #121082TittiModeratore
L’errore non è in Contact Form 7 ma nel plugin Contact Form 7 Honeypot, quindi se è quello che hai scarica l’ultima versione già corretta.
https://wordpress.org/support/topic/contact-form-4-6-deprecates-the-wpcf7_add_shortcode-functio/
E poi rimetti quello che hai modificato com’era.
-
-
AutorePost
- Devi essere connesso per rispondere a questo topic.