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.
Very strange functions issue... file name changed by php/sql
Moderator: General Moderators
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
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
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
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact:
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.
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.
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);
_______________________________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
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
- launchcode
- Forum Contributor
- Posts: 401
- Joined: Tue May 11, 2004 7:32 pm
- Location: UK
- Contact: