- Home
- Categorie
- Coding e Sistemistica
- CMS & Piattaforme Self-Hosted
- Warnings php
-
Warnings php
Ragazzi, ciao a tutti!
Sono nuovo nel forum. Mi chiamo Pietro, ho 33 anni e vivo da 5 Mosca. Sono un fotografo freelance, ma spero di diventare presto PRO... Sto impazzendo per fare un sito in WordPress perché non sono molto ferrato con PHP, ho sistemato quasi tutti gli errori di un tema che ho comprato; ma mi restano i due warnings seguenti:Warning: file_get_contents(htt://themes.do-media.de/tf_themes/wordpress/invictus/notifier_invictus.xml) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in /home/mhd-01/ww.pietrosferrino.net/htdocs/test_invictus/wp-content/themes/invictus/doitmax_fw/update-notifier.php on line 154 Warning: Cannot modify header information - headers already sent by (output started at /home/mhd-01/ww.pietrosferrino.net/htdocs/test_invictus/wp-content/themes/invictus/doitmax_fw/update-notifier.php:154) in /home/mhd-01/ww.pietrosferrino.net/htdocs/test_invictus/wp-includes/functions.php on line 861 Warning: Cannot modify header information - headers already sent by (output started at /home/mhd-01/ww.pietrosferrino.net/htdocs/test_invictus/wp-content/themes/invictus/doitmax_fw/update-notifier.php:154) in /home/mhd-01/ww.pietrosferrino.net/htdocs/test_invictus/wp-includes/functions.php on line 862
Riuscite, per carità a darmi una mano!? Ho letto un mucchio di post, ma nessuno mi serve a molto per le righe di codice che danno lo stesso errore sono sempre diverse e non come le mie ... E io sono a zero con le variabili PHP !! Sto impazzendo !!
Se può aiutare, questi sono i frammenti dei miei due file:Questo è update.notifier.php che da l'errore file_get_contents alla riga 154 (qua vi riporto le righe da 143 a 155)
// check the cache if ( !$last || (( $now - $last ) > $interval) || !$theme ) { // cache doesn't exist, or is old, so refresh it if( function_exists('curl_init') ) { // if cURL is available, use it... $ch = curl_init($notifier_file_url); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 10); $cache = curl_exec($ch); curl_close($ch); } else { $cache = file_get_contents($notifier_file_url); // ...if not, use the common file_get_contents() }
e qua c'è il frammento di functions.php che da errore alle righe 861 e 862 (e vi mando le righe in questione)
setcookie( 'wp-settings-' . $user->ID, $settings, time() + 31536000, SITECOOKIEPATH ); setcookie( 'wp-settings-time-' . $user->ID, time(), time() + 31536000, SITECOOKIEPATH );
AIUTATEMI !!!!!
GRAZIE INFINITE IN ANTICIPO.
Pietro ^_^
-
Invictus è un tema premium e ha il supporto gratuito del suo creatore, personalmente ti consiglio di rivolgerti a lui. Strano che tu abbia dovuto correggere degli errori, forse ci sono state delle procedure di installazione non corrette.
-
Ciao,
per iniziare contatta il creatore, come suggerito da elmanisero. Il primo errore, secondo me, è dovuto al fatto che la funzione file_get_contents è errato il link a cui si riferisce: se noti, vi è scritto htt:// invece di http://!