Page 2 of 2

Posted: Wed May 12, 2004 8:58 pm
by launchcode
The error you are getting is because the code is trying to include (or include_once or require) a file the name of which has obviously been dynamically created, perhaps by mistake.

The code you posted only has a few "include" functions, all at the top, and all set in stone - so they can't be the cause of this error.

What about the functions file? Specifically look for commands: include, include_once or require(). Infact go through all scripts that might have an impact of your page and see if you can find all lines matching those commands, then post them here - one of them will have a variable in it somewhere I bet.

Posted: Thu May 13, 2004 8:32 am
by jolac
Hi

Thanks for your reply.

I will try what you said... just to let you know....I put in error_reporting to both the functions.inc.php and the login.php and got more info which seems to narrow it down
++++++++++++++
Notice: Constant IN_PHPBB already defined in /var/www/html/includes/functions.inc.php on line 4

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/includes/functions.inc.php:4) in /var/www/html/includes/sessions.php on line 182

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/includes/functions.inc.php:4) in /var/www/html/includes/sessions.php on line 183

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/includes/functions.inc.php:4) in /var/www/html/includes/sessions.php on line 182

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/includes/functions.inc.php:4) in /var/www/html/includes/sessions.php on line 183

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/includes/functions.inc.php:4) in /var/www/html/login.php on line 78
+++++++++++++++++++++++++++

I do appreciate your help... I have been trying to fix this for days without getting anywhere.

Thanks again

Jolac

Posted: Thu May 13, 2004 9:22 am
by launchcode
Header errors you can ignore - they'll go when the page displays correctly (most the time).

Trying to redefine a constant can be tracked down easily enough - I think there is something else playing around here.

If you want you can give me access to your test site and I can debug it on-line, I don't think posting it all here is going to get anywhere. Grab me on ICQ/MSN.

Posted: Thu May 13, 2004 9:28 am
by jolac
Hi... I have did as you said with the files and here is the results.... thank you for your help... I am really surprised at this error I thought it would be quite a simple fix... just shows you how much I know... or rather don't know.... thanks again.... Jolac

Code: Select all

LOGIN.PHP FILE
+++++++++++
define("IN_LOGIN", true);

define('IN_PHPBB', true);
$phpbb_root_path = './';
//include($phpbb_root_path . 'extension.inc');
//include($phpbb_root_path . 'common.'.$phpEx);
require_once('includes/functions.inc.php');
+++++++++++


//include($phpbb_root_path . 'includes/page_header.'.$phpEx);
//include($phpbb_root_path . 'includes/page_tail.'.$phpEx);

_______________________________

ACCOUNT.PHP FILE
++++++++++
<?php
   // Account.php
   require_once('includes/functions.inc.php');
   require_once('includes/classes.inc.php');

   // Check if logged in
   if ($User->logged_in())
+++++++++++++

account.php has no other include or require variables

_______________________________

BUYERS.PHP FILE
+++++++++++++
<?php
   // Buyers.php
   require_once('includes/functions.inc.php');
   require_once('includes/classes.inc.php');
   
   if ($step == "1")
++++++++++++++

buyers.php has no other include or require variables

_______________________________

PARTNERS.PHP FILE
+++++++++++++
<?php
   // Partners.php
   require_once('includes/functions.inc.php');
   require_once('includes/classes.inc.php');
   
   if ($step == "1")
   {
+++++++++++++

partners.php has no other include or require variables

_______________________________


SELLERS.PHP FILE
++++++++++++++
<?php
   // Sellers.php
   require_once('includes/functions.inc.php');
   require_once('includes/classes.inc.php');
   
   // Generate category quick find drop down.
++++++++++++++

require_once($phpbb_root_path."includes/ccvs.inc");

partners.php has no other include or require variables except the one above
which is related a shopping cart feature.

_______________________________

COMMON.PHP FILE

include($phpbb_root_path . 'config.'.$phpEx);
include($phpbb_root_path . 'includes/constants.'.$phpEx);
include($phpbb_root_path . 'includes/template.'.$phpEx);
include($phpbb_root_path . 'includes/sessions.'.$phpEx);
include($phpbb_root_path . 'includes/auth.'.$phpEx);
include($phpbb_root_path . 'includes/functions.'.$phpEx);
include($phpbb_root_path . 'includes/db.'.$phpEx);

_______________________________

Posted: Thu May 13, 2004 9:55 am
by jolac
Hi Rich

I tried to get you on the ICQ but your button took me to a "user not found" page ? where are you in the UK... im originally from Glasgow, but lived in Woking/Guildford for years... I am really in a jam here if you can send your ICQ details I will try again.

Email: jolac@toast.net

Thanks for your help I really really appreciate it.

Jolac

Posted: Thu May 13, 2004 10:33 am
by Weirdan
jolac, seems like it's was wrong call to make_output() function indeed, so instead of digging your code for include()/require() search for make_output() function calls and echo first param before passing it to this func.

Posted: Thu May 13, 2004 10:59 am
by jolac
Thanks... i'll try that... should I look for any particular error in the code

...or what should I look for ect...

Thanks again

Posted: Thu May 13, 2004 10:59 am
by launchcode
Jolac - my ICQ uin is 250659.