problème ob_end_flush();

problème ob_end_flush(); - PHP - Programmation

Marsh Posté le 08-12-2009 à 21:27:57    

Bonjour,
Je viens d'ajouter ce code sur mon wordpress default/singel pour afficher les derniés messages de phpbb et voici le code que je viens d'ajouter :

Code :
  1. define('IN_PHPBB', TRUE);
  2.     $phpbb_root_path = 'forum/';
  3.     $phpEx = substr(strrchr(__FILE__, '.'), 1);
  4.     include($phpbb_root_path . 'common.' . $phpEx);
  5.     // Start session management
  6.     $user->session_begin();
  7.     $auth->acl($user->data);
  8.     $user->setup('', $forum_data['forum_style']);


 
Je reçois l'erreur :
 

Code :
  1. [phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at /home/web/mysite.com/ftp/www/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php:221)
  2.       [phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at /home/web/mysite.com/ftp/www/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php:221)
  3.       [phpBB Debug] PHP Notice: in file /includes/session.php on line 1006: Cannot modify header information - headers already sent by (output started at /home/web/mysite.com/ftp/www/wp-content/plugins/all-in-one-seo-pack/aioseop.class.php:221)


 
si je vais a la page ioseop.class.php ligne 221 et je supprime ob_end_flush(); tout fonctionne bien ?
aidez moi svp
merci

Reply

Marsh Posté le 08-12-2009 à 21:27:57   

Reply

Marsh Posté le 08-12-2009 à 21:48:38    

met la ligne 6 a la place de la 4

Reply

Marsh Posté le 08-12-2009 à 22:11:32    

merci de la réponse ^^
 
Vous voulez dire comme ceci ? :
 

Code :
  1. define('IN_PHPBB', TRUE);
  2. $phpbb_root_path = 'forum/';
  3. $phpEx = substr(strrchr(__FILE__, '.'), 1);
  4. $user->session_begin();
  5. include($phpbb_root_path . 'common.' . $phpEx);
  6. // Start session management
  7. $auth->acl($user->data);
  8. $user->setup('', $forum_data['forum_style']);


 
il m'affiche erreur sur la ligne $user->session_begin();

Reply

Marsh Posté le 08-12-2009 à 22:16:38    

c'est quoi l'erreur ?

Reply

Marsh Posté le 08-12-2009 à 22:52:47    

Fatal error: Call to a member function session_begin() on a non-object in /home/web/mysite.com/ftp/www/wp-content/themes/default/single.php on line 58
 
et a la ligne 58 il y a $user->session_begin();

Reply

Sujets relatifs:

Leave a Replay

Make sure you enter the(*)required information where indicate.HTML code is not allowed