Error in reply windows

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
docco
Registered User
Posts: 280
Joined: Sun Mar 04, 2012 3:28 am

Error in reply windows

Post by docco » Sun Sep 04, 2016 11:48 am

I guess that due to the host has problem, then our forum faces this error. When reply, it appears the error code as below:

Code: Select all

[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1104: Undefined variable: num_predefined_bbcodes
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4963: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4965: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4966: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4967: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
THANKS IF ANYONE CAN HELP TO FIX IT
functions_display.php

Code: Select all

1102		$template->assign_block_vars('custom_tags', array(
1103			'BBCODE_NAME'		=> "'[{$row['bbcode_tag']}]', '[/" . str_replace('=', '', $row['bbcode_tag']) . "]'",
1104			'BBCODE_ID'			=> $num_predefined_bbcodes + ($i * 2),
1105			'BBCODE_TAG'		=> $row['bbcode_tag'],
1106			'BBCODE_HELPLINE'	=> $row['bbcode_helpline'],
1107			'A_BBCODE_HELPLINE'	=> str_replace(array('&', '"', "'", '<', '>'), array('&', '"', "\'", '<', '>'), $row['bbcode_helpline']),
		));
		
functions.php

Code: Select all

4963		header('Content-type: text/html; charset=UTF-8');
4964
4965		header('Cache-Control: private, no-cache="set-cookie"');
4966		header('Expires: 0');
4967		header('Pragma: no-cache');

User avatar
stevemaury
Support Team Member
Support Team Member
Posts: 50490
Joined: Thu Nov 02, 2006 12:21 am
Location: The U.P.
Name: Steve
Contact:

Re: Error in reply windows

Post by stevemaury » Sun Sep 04, 2016 4:54 pm

Please fill out the Support Request Template and post it back here to enable us to assist you better.
For REALLY good and VERY inexpensive hosting CLICK HERE

I can stop all your spam. I can upgrade or update your Board. PM or email me. (Paid support)

docco
Registered User
Posts: 280
Joined: Sun Mar 04, 2012 3:28 am

Re: Error in reply windows

Post by docco » Mon Sep 05, 2016 12:53 am

Support Request Template
What version of phpBB are you using? phpBB 3.0.12
What is your board's URL? http://www.forum.minhha.vn/
Who do you host your board with? 123.30.129.231
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
Do you have any extensions installed? No
What version of phpBB3 did you update from? phpBB 3.0.10
What MODs do you have installed? A lots of MOD. Can not remember MODs installed manually. The below is MOD installed by autoMOD:
Topic Title Colour
IGN Style Username Color Mod
Forum Background for phpBB3
Viewtopic Birthday
Default Random 'No Avatar'.
Snow all over phpBB
User Rank Progression Bar
Paypal Donation Mod
jQuery Replace Broken Images
Forum Icons Enhancement for phpBB3. (Kiss)
Thanks for posts
Anti Bot Question
Points MOD
Topic Preview
Smashable Christmas Lights
Me/we/you/us filter MOD
phpBB mChat
Invitation Enrollment
Manage attachments ACP module for phpBB3
Profile Fields Control MOD
Share On
Activity Stats MOD
Groups on Registration and Custom Profile Fields
Custom Profile Fields Update Reminder
Postnotices to groups
Member List Permission Detail Mod.
Change Post Time
UMIL - Unified Mod Install Library
Auto Groups MOD
Disallow links before x posts
phpBB Gallery
Hidden content for groups can view
What styles do you currently have installed? default prosilver style
What language(s) is your board currently using? Vietnamese
Which database type/version are you using? MySQL 5
What is your level of experience? Comfortable with PHP and phpBB
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? No, maybe by hosting problem
Please describe your problem. Not display charset of UTF-8 when open or reply a topic.
Errors appear:
[phpBB Debug] PHP Notice: in file [ROOT]/includes/functions_display.php on line 1104: Undefined variable: num_predefined_bbcodes
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4963: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4965: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4966: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4967: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3903)
Generated by SRT Generator

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10338
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Error in reply windows

Post by Noxwizard » Mon Sep 05, 2016 12:57 am

Can you post the contents of the entire display_custom_bbcodes function in /includes/functions_display.php? It probably starts around line 1080 for you.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

docco
Registered User
Posts: 280
Joined: Sun Mar 04, 2012 3:28 am

Re: Error in reply windows

Post by docco » Mon Sep 05, 2016 1:35 am

Attached is functions_display.php
functions_display.php
(55.93 KiB) Downloaded 23 times

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10338
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Error in reply windows

Post by Noxwizard » Mon Sep 05, 2016 2:10 am

It looks like you tried to install the Advanced BBCode MOD and weren't quite successful. A line was overwritten instead of having the code added after it.

Line 1037 should have this on it:

Code: Select all

$num_predefined_bbcodes = 22;
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

docco
Registered User
Posts: 280
Joined: Sun Mar 04, 2012 3:28 am

Re: Error in reply windows

Post by docco » Mon Sep 05, 2016 2:27 am

No, so far Advanced BBCode MOD worked well until now. The error I guessed due to storage that make something lost.
I checked the backup of function_dispaly.php and see the same in line 1104
'BBCODE_ID' => $num_predefined_bbcodes + ($i * 2),
But why it throws the error at line 1104?

What we will do now?
Last edited by docco on Mon Sep 05, 2016 2:41 am, edited 2 times in total.

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10338
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Error in reply windows

Post by Noxwizard » Mon Sep 05, 2016 2:34 am

You need to add back the line I gave you. My statement was made looking at your file and the ABBC installation file and noticing the discrepancy.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

docco
Registered User
Posts: 280
Joined: Sun Mar 04, 2012 3:28 am

Re: Error in reply windows

Post by docco » Mon Sep 05, 2016 2:49 am

Noxwizard wrote:It looks like you tried to install the Advanced BBCode MOD and weren't quite successful. A line was overwritten instead of having the code added after it.

Line 1037 should have this on it:

Code: Select all

$num_predefined_bbcodes = 22;
Line 1037 is blank line in the file function_display.php.
Where you mean to add the line

Code: Select all

$num_predefined_bbcodes = 22;
?



More info: When I check if it can be upgraded from 3.0.10 upto 3.1.9 by using tool of 3Di http://3di.space/32/viewtopic.php?f=3&t=2, it throws the below

Code: Select all

Congratulations!
Your CONSTANTS file belongs to phpBB 3.0.12
Your DB says you are running phpBB 3.0.12
Your PHP version says you are running PHP 5.3.29
The following stats are just for information purposes at the present time
The file config.php exists, size: 389 bytes
Available stream wrappers: https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
PHP module json: loaded
PHP module getimagesize: loaded
[phpBB Debug] PHP Warning: in file [ROOT]/right_install.php on line 192: array_combine() [function.array-combine]: Both parameters should have an equal number of elements

Warning: Cannot modify header information - headers already sent by (output started at /home/minhha/public_html/forum/right_install.php:96) in /home/minhha/public_html/forum/includes/functions.php on line 2781
---------------------------------------------------------------
General Error
One or more styles uploaded are for a different version of phpBB
or the uploaded style/s have been wrongly uploaded, check the styles folders.

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/right_install.php
LINE: 194
CALL: trigger_error()


User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10338
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Error in reply windows

Post by Noxwizard » Mon Sep 05, 2016 2:49 pm

docco wrote:Line 1037 is blank line in the file function_display.php.
Where you mean to add the line

Code: Select all

$num_predefined_bbcodes = 22;
?
You need to add that on line 1037.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

docco
Registered User
Posts: 280
Joined: Sun Mar 04, 2012 3:28 am

Re: Error in reply windows

Post by docco » Tue Sep 06, 2016 2:07 am

Noxwizard wrote:
docco wrote:Line 1037 is blank line in the file function_display.php.
Where you mean to add the line

Code: Select all

$num_predefined_bbcodes = 22;
?
You need to add that on line 1037.
Thank Noxwizard, it works
Can you help me more about the error when I check with right_install,php (check if upgrate to 3.1.9 having any error)

Code: Select all

Congratulations!
Your CONSTANTS file belongs to phpBB 3.0.12
Your DB says you are running phpBB 3.0.12
Your PHP version says you are running PHP 5.3.29
The following stats are just for information purposes at the present time
The file config.php exists, size: 389 bytes
Available stream wrappers: https, ftps, compress.zlib, compress.bzip2, php, file, glob, data, http, ftp, phar, zip
PHP module json: loaded
PHP module getimagesize: loaded
[phpBB Debug] PHP Warning: in file [ROOT]/right_install.php on line 192: array_combine() [function.array-combine]: Both parameters should have an equal number of elements

Warning: Cannot modify header information - headers already sent by (output started at /home/minhha/public_html/forum/right_install.php:96) in /home/minhha/public_html/forum/includes/functions.php on line 2781

General Error
One or more styles uploaded are for a different version of phpBB
or the uploaded style/s have been wrongly uploaded, check the styles folders.

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/right_install.php
LINE: 194
CALL: trigger_error()

Attachments
functions.php
(153.82 KiB) Downloaded 20 times

User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10338
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Error in reply windows

Post by Noxwizard » Tue Sep 06, 2016 2:32 am

The error is in the script, not in that file. You will need to ask the author of the script.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.

docco
Registered User
Posts: 280
Joined: Sun Mar 04, 2012 3:28 am

Re: Error in reply windows

Post by docco » Tue Sep 06, 2016 3:54 am

Noxwizard wrote:The error is in the script, not in that file. You will need to ask the author of the script.
Thanks Noxwizard

docco
Registered User
Posts: 280
Joined: Sun Mar 04, 2012 3:28 am

Re: Error in reply windows

Post by docco » Tue Sep 06, 2016 7:45 am

After using AutoMOD to uninstall gallery MOD (https://www.phpbb.com/customise/db/mod/phpbb_gallery/)
then I can not log on my website anymore. I have to re-upload the gallery files
I go to MOD in ACP and see that
- Overview: error
- Configure gallery: error
...
- Cleanup gallery: error


If uninstall, my website error then I must re-install it. How can I uninstall it completely?

Code: Select all

Lỗi tổng quát
template->_tpl_load_file(): File ./styles/prosilver/template/gallery/plugins_header.html does not exist or is empty

BACKTRACE

FILE: (not given by php)
LINE: (not given by php)
CALL: msg_handler()

FILE: [ROOT]/includes/functions_template.php
LINE: 63
CALL: trigger_error()

FILE: [ROOT]/includes/template.php
LINE: 437
CALL: template_compile->_tpl_load_file()

FILE: [ROOT]/includes/template.php
LINE: 657
CALL: template->_tpl_load()

FILE: [ROOT]/includes/functions_template.php
LINE: 227
CALL: template->_tpl_include()

FILE: [ROOT]/includes/functions_template.php
LINE: 66
CALL: template_compile->compile()

FILE: [ROOT]/includes/template.php
LINE: 437
CALL: template_compile->_tpl_load_file()

FILE: [ROOT]/includes/template.php
LINE: 657
CALL: template->_tpl_load()

FILE: [ROOT]/includes/functions_template.php
LINE: 227
CALL: template->_tpl_include()

FILE: [ROOT]/includes/functions_template.php
LINE: 66
CALL: template_compile->compile()

FILE: [ROOT]/includes/template.php
LINE: 437
CALL: template_compile->_tpl_load_file()

FILE: [ROOT]/includes/template.php
LINE: 224
CALL: template->_tpl_load()

FILE: [ROOT]/includes/functions.php
LINE: 5094
CALL: template->display()

FILE: [ROOT]/index.php
LINE: 246
CALL: page_footer()
Attachments
functions_template.php
(23.37 KiB) Downloaded 20 times
template.php
(19.12 KiB) Downloaded 22 times
index.php
(9.64 KiB) Downloaded 24 times
functions.php
(153.44 KiB) Downloaded 22 times

Locked

Return to “[3.0.x] Support Forum”