Probléme Warning: session_start()
Résolu
ben13640
Messages postés
109
Date d'inscription
Statut
Membre
Dernière intervention
-
ben13640 Messages postés 109 Date d'inscription Statut Membre Dernière intervention -
ben13640 Messages postés 109 Date d'inscription Statut Membre Dernière intervention -
Bonjour à tous
J'ai un petit souci au niveau de l'installation de mon script
Je suis pas à pas l'installation qui est la suivante :
Installation Instructions
Open /include/config.php
Find:
/home/username/public_html
Replace with the path to your public web directory.
Find:
[http://]
Replace with your domain name where you are going to install the script.
Find:
localhost
Replace with your SQL host.
Find:
database_username
Replace with your database username.
Find:
database_password
Replace with your database password.
Find:
database_name
Replace with your database name.
Import database.sql into your newly created database for the script.
If you are installing the script in a sub-directory, then open .htaccess
Find:
RewriteBase /
Add your folder name after the "/", example RewriteBase /videos/
Upload all files in the upload folder to your web server's public directory.
CHMOD 777 the following files and directories:
/images/channelthumbs/
/images/members/
/images/membersprofilepic/
/images/membersprofilepic/thumbs/
/images/profilebg/
/images/videothumbs/
/temporary/
/temporary/sessions/
/uploads/
/uploads/temp/
/uploads/video/
/vads/
/vdata/
Installation has now been completed. You may access the admin control panel via https://yoursite.com/
Login: Admin
Password: xxxxxxx
Once you are logged in, go to Settings - Path Settings. Here you will need to set the paths to:
ffmpeg
mplayer
mencoder
flvtool2
PHP
The installation has now been completed.
Une fois toute c'est opération effectuer j'ai l'erreur suivante :
Warning: session_start() [function.session-start]: open(/home/oneannoncf/public_html/temporary/sessions/sess_6378068e3e8dd183f1ab5e217208c72e, O_RDWR) failed: No such file or directory (2) in /home/oneannoncf/www/include/config.php on line 18
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/oneannoncf/www/include/config.php:18) in /home/oneannoncf/www/include/config.php on line 18
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/oneannoncf/www/include/config.php:18) in /home/oneannoncf/www/include/config.php on line 18
Warning: require_once(/home/oneannoncf/public_html/smarty/libs/Smarty.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/oneannoncf/www/include/config.php on line 42
Fatal error: require_once() [function.require]: Failed opening required '/home/oneannoncf/public_html/smarty/libs/Smarty.class.php' (include_path='.:/usr/local/lib/php') in /home/oneannoncf/www/include/config.php on line 42
Warning: Unknown: open(/home/oneannoncf/public_html/temporary/sessions/sess_6378068e3e8dd183f1ab5e217208c72e, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/oneannoncf/public_html/temporary/sessions) in Unknown on line 0
Merci d'avance pour votre aide.
Bonne journée à tous .
J'ai un petit souci au niveau de l'installation de mon script
Je suis pas à pas l'installation qui est la suivante :
Installation Instructions
Open /include/config.php
Find:
/home/username/public_html
Replace with the path to your public web directory.
Find:
[http://]
Replace with your domain name where you are going to install the script.
Find:
localhost
Replace with your SQL host.
Find:
database_username
Replace with your database username.
Find:
database_password
Replace with your database password.
Find:
database_name
Replace with your database name.
Import database.sql into your newly created database for the script.
If you are installing the script in a sub-directory, then open .htaccess
Find:
RewriteBase /
Add your folder name after the "/", example RewriteBase /videos/
Upload all files in the upload folder to your web server's public directory.
CHMOD 777 the following files and directories:
/images/channelthumbs/
/images/members/
/images/membersprofilepic/
/images/membersprofilepic/thumbs/
/images/profilebg/
/images/videothumbs/
/temporary/
/temporary/sessions/
/uploads/
/uploads/temp/
/uploads/video/
/vads/
/vdata/
Installation has now been completed. You may access the admin control panel via https://yoursite.com/
Login: Admin
Password: xxxxxxx
Once you are logged in, go to Settings - Path Settings. Here you will need to set the paths to:
ffmpeg
mplayer
mencoder
flvtool2
PHP
The installation has now been completed.
Une fois toute c'est opération effectuer j'ai l'erreur suivante :
Warning: session_start() [function.session-start]: open(/home/oneannoncf/public_html/temporary/sessions/sess_6378068e3e8dd183f1ab5e217208c72e, O_RDWR) failed: No such file or directory (2) in /home/oneannoncf/www/include/config.php on line 18
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/oneannoncf/www/include/config.php:18) in /home/oneannoncf/www/include/config.php on line 18
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/oneannoncf/www/include/config.php:18) in /home/oneannoncf/www/include/config.php on line 18
Warning: require_once(/home/oneannoncf/public_html/smarty/libs/Smarty.class.php) [function.require-once]: failed to open stream: No such file or directory in /home/oneannoncf/www/include/config.php on line 42
Fatal error: require_once() [function.require]: Failed opening required '/home/oneannoncf/public_html/smarty/libs/Smarty.class.php' (include_path='.:/usr/local/lib/php') in /home/oneannoncf/www/include/config.php on line 42
Warning: Unknown: open(/home/oneannoncf/public_html/temporary/sessions/sess_6378068e3e8dd183f1ab5e217208c72e, O_RDWR) failed: No such file or directory (2) in Unknown on line 0
Warning: Unknown: Failed to write session data (files). Please verify that the current setting of session.save_path is correct (/home/oneannoncf/public_html/temporary/sessions) in Unknown on line 0
Merci d'avance pour votre aide.
Bonne journée à tous .
A voir également:
- Warning: session_start()
- Warning zone telechargement - Accueil - Outils
- Téléchargement et streaming illégal : voici les adresses des sites pirates que les FAI vont bloquer - Accueil - Services en ligne
- Cpu fan fail warning control - Forum Matériel & Système
- Symbole warning word ✓ - Forum Word
- Comment faire le symbole attention ✓ - Forum Loisirs / Divertissements
1 réponse
Salut,
Salut,
commencer par traduire vos messages d'erreurs ;)
Par exemple pour le premier:
Warning: session_start() [function.session-start]: open(/home/oneannoncf/public_html/temporary/sessions/sess_6378068e3e8dd183f1ab5e217208c72e, O_RDWR) failed: No such file or directory (2) in /home/oneannoncf/www/include/config.php on line 18
Attention: session_start() échec aucun fichier ou dossier dans le fichier /home/oneannoncf/www/include/config.php à la ligne 18(où vous devez regarder ce qui correspond à l'avertissement).
Voici la doc pour la fonction session_start();
http://php.net/manual/fr/function.session-start.php
Notez aussi que celui ci doit se trouver en début de code sans même un espace le précédant, éventuellement sauter une ligne après l'utilisation de celle ci.
Assurez vous aussi que votre serveur es dans la même configuration que celle nécessité par le programme(version de PHP)
A priori tut vos warning font référence à des fichiers manquants, vérifiez que vous avez transféré par ftp tout les fichiers/dossiers ainsi que les chemins d'accès/emplacements de ceux ci.
Salut,
commencer par traduire vos messages d'erreurs ;)
Par exemple pour le premier:
Warning: session_start() [function.session-start]: open(/home/oneannoncf/public_html/temporary/sessions/sess_6378068e3e8dd183f1ab5e217208c72e, O_RDWR) failed: No such file or directory (2) in /home/oneannoncf/www/include/config.php on line 18
Attention: session_start() échec aucun fichier ou dossier dans le fichier /home/oneannoncf/www/include/config.php à la ligne 18(où vous devez regarder ce qui correspond à l'avertissement).
Voici la doc pour la fonction session_start();
http://php.net/manual/fr/function.session-start.php
Notez aussi que celui ci doit se trouver en début de code sans même un espace le précédant, éventuellement sauter une ligne après l'utilisation de celle ci.
Assurez vous aussi que votre serveur es dans la même configuration que celle nécessité par le programme(version de PHP)
A priori tut vos warning font référence à des fichiers manquants, vérifiez que vous avez transféré par ftp tout les fichiers/dossiers ainsi que les chemins d'accès/emplacements de ceux ci.
J'ai bien trauduis, ça dit bien qu' il manque un fichier
mais bon quand je suis le chemin je tombe sur le fichier sessions et dedans il y a un
index.html quand je clique dessus rien est afficher .
Ensuite j'ai changer la version PHP 5.3 5.4 cela me fait une page blanche avec auccune erreur.
J'ai regarder aussi les exigences requis pour le serveur qui sont les suivantes :
Apache web server with mod_rewrite enabled.
MySQL version 4.0+
Cgi-bin Perl Access
GD Library 2+ with freetype support.
PHP 5.2+ with the following configuration
safe_mode = off
open_basedir = (no value)
short_open_tag = on
output_buffering = on
register_argc_argv = On
max_execution_time = 1000 (Recommended or higher)
max_input_time = 1000 (Recommended or higher)
session.gc_maxlifetime = 15000 (Recommended or higher)
upload_max_filesize = 100M (Recommended or higher)
post_max_size = 100M (Recommended or higher)
register_globals = off
strict standards off (~E_STRICT)
PHP upload_progress extension (http://pecl.php.net/package/uploadprogress
Mplayer + Mencoder (http://www.mplayerhq.hu/design7/dload.html
LAME MP3 Encoder (http://lame.sourceforge.net)
Flv2tool (http://www.inlet-media.de
Libogg + Libvorbis (https://www.xiph.org/downloads/
FFmpeg (http://ffmpeg.mplayerhq.hu)
FFmpeg-php
Ffmpeg compiled with libx264 support.
MP4Box (Needed if you want to enable HD video conversion)
Ability to run PHP from the command line (CLI) with exec()
Ability to execute background processes with exec("binary > /dev/null &")
Ability to run a cron job
Cela me semble bizzarre pour le PHP 5.2 car cette version n'est plus trop
utiliser .
Et à la ligne 18 il y a ceci session_start(); et la ligne 42 require_once($config['basedir'].'/smarty/libs/Smarty.class.php');
Je suis chez OVH herbergeur mutualiser PERSO.
Merci d'avance pour votre aide.
Bon j'ai trouver la solution pour la ligne 18 , j'ai mis session_start();en premiére sur
le fichier config.php.
Maintenant j'ai plus qu' une erreur.