Debug Notices

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Suggested Hosts
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
Baraka
Registered User
Posts: 67
Joined: Tue Oct 19, 2010 12:49 pm

Debug Notices

Post by Baraka »

Heya All

Can any one help me with the following errors?

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1288: Undefined variable: avatar_img
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1288: Undefined variable: avatar_width
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1288: Undefined variable: avatar_height
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1288: Undefined variable: alt

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4753: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4757: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
Line 4751-4766 are below :

Code: Select all

	// application/xhtml+xml not used because of IE
	header('Content-type: text/html; charset=UTF-8');

	header('Cache-Control: private, no-cache="set-cookie"');
	header('Expires: 0');
	header('Pragma: no-cache');

	if (!empty($user->data['is_bot']))
	{
		// Let reverse proxies know we detected a bot.
		header('X-PHPBB-IS-BOT: yes');
	}

	return;
}

Never seen the avatar error before.

Cheers
Rhyno
User avatar
Oyabun1
Former Team Member
Posts: 23162
Joined: Sun May 17, 2009 1:05 pm
Location: Australia
Name: Bill

Re: Debug Notices

Post by Oyabun1 »

Please fill out the Support Request Template and post it back here to enable us to assist you better. The "When did your problem begin?" question means: Please describe the actions you took (updating your board, installing a MOD, etc.) prior to this problem becoming noticeable.
                      Support Request Template
3.0.x: Knowledge Base Styles Support MOD Requests
3.1.x: Knowledge BaseStyles SupportExtension Requests
Baraka
Registered User
Posts: 67
Joined: Tue Oct 19, 2010 12:49 pm

Re: Debug Notices

Post by Baraka »

Support Request Template
What version of phpBB are you using? phpBB 3.0.11
What is your board's URL? http://www.eaf.net.au/forums
Who do you host your board with? Panthur
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Update from a previous version of phpBB3
Is registration required to reproduce this issue? No
Do you have any MODs installed? Yes
What version of phpBB3 did you update from? phpBB 3.0.10
What MODs do you have installed?
NV ADVANCED LAST TOPIC TITLES
PROFILE VIEWS MOD
REIMG IMAGE RESIZER
WHO WAS HERE?
TOP STATS (Stoker)
DONATION MOD (Stoker)
SAFE GAMERTAG (Soshen)
What styles do you currently have installed? Ionosphere/Prosilver/Artodia Mobile
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP but not phpBB
When did your problem begin? Don't know. Turned debug on today for the first time. Board has been up for 3 years.
Please describe your problem.

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1288: Undefined variable: avatar_img
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1288: Undefined variable: avatar_width
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1288: Undefined variable: avatar_height
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1288: Undefined variable: alt

Code: Select all

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4753: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4755: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4756: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4757: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3824)
Generated by SRT Generator
User avatar
AmigoJack
Registered User
Posts: 5775
Joined: Tue Jun 15, 2010 11:33 am
Location: グリーン ヒル ゾーン
Contact:

Re: Debug Notices

Post by AmigoJack »

Baraka wrote:[ROOT]/includes/functions_display.php on line 1288: Undefined variable: avatar_img
An unmodified version of that file has no avatar_img on that line - you have to seek support from the MOD author.
Baraka wrote:Cannot modify header information - headers already sent by
This is a subsequent error from throwing a notice as of above.
The worst thing about censorship is ███████████
Affin wrote:
Tue Nov 20, 2018 9:51 am
The problem is probably not my English but you do not want to understand correctly.
...
We will not come anybody anyway, nevertheless, it's best to shit this.
Baraka
Registered User
Posts: 67
Joined: Tue Oct 19, 2010 12:49 pm

Re: Debug Notices

Post by Baraka »

AmigoJack wrote:
Baraka wrote:[ROOT]/includes/functions_display.php on line 1288: Undefined variable: avatar_img
An unmodified version of that file has no avatar_img on that line - you have to seek support from the MOD author.
Baraka wrote:Cannot modify header information - headers already sent by
This is a subsequent error from throwing a notice as of above.
Ahhh cheers mate

Found the line :

Code: Select all

$rank_img = (!empty($ranks['special'][$user_rank]['rank_image'])) ? '<img src="' . $phpbb_root_path . $config['ranks_path'] . '/' . $ranks['special'][$user_rank]['rank_image'] . '" alt="' . $ranks['special'][$user_rank]['rank_title'] . '" title="' . $ranks['special'][$user_rank]['rank_title'] . '" />' : '';return '<img src="' . (str_replace(' ', '%20', $avatar_img)) . '" width="' . $avatar_width . '" height="' . $avatar_height . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';return '<img src="' . (str_replace(' ', '%20', $avatar_img)) . '" width="' . $avatar_width . '" height="' . $avatar_height . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
So this is the bad bit here :

Code: Select all

return '<img src="' . (str_replace(' ', '%20', $avatar_img)) . '" width="' . $avatar_width . '" height="' . $avatar_height . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';return '<img src="' . (str_replace(' ', '%20', $avatar_img)) . '" width="' . $avatar_width . '" height="' . $avatar_height . '" alt="' . ((!empty($user->lang[$alt])) ? $user->lang[$alt] : $alt) . '" />';
On further inspection, both those lines are are in the default file, just not together like my file

EDIT : OK found error i have that bottom code twice one after the other in the file !
Locked

Return to “[3.0.x] Support Forum”