Errors above header when posting? [SOLVED]

Support for ANY phpBB3 related issue.
- MOD Support requests should be asked in the specific MOD topic -
Any version of phpBB3 is supported.
Forum rules
READ: StarTrekGuide.com Board Rules

Users are requested to fill out the Support Request Template and include it in every support request.

As a general rule, Support for a Specific MOD should be requested in the specific MOD topic, as it would alert the MOD Author of the support request.
Please specify if you have any MODs installed on your board when asking for support.

phpBB support requests allowed
MOD Requests and Generic discussions not allowed

Errors above header when posting? [SOLVED]

Postby Amylittlehands » 08 Aug 2011, 11:42

Hey,

For some reason whenever someone posts on the forum they see a bunch of errors at the top. I've tried locating the error but I'm no PHP expert and I don't even know what the error means. I think the file I need to look in is functions_posting.php

Untitled-1.jpg

If someone could please fix it for me and tell me whats wrong i'd appreciate it!

Edit: Another bloody error. When editing a post; Parse error: syntax error, unexpected $end in /home/amysworld/domains/mouldingminefield.com/public_html/includes/functions_posting.php on line 1666
Last edited by Amylittlehands on 08 Aug 2011, 17:40, edited 1 time in total.
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4




phpBB Academy at StarTrekGuide
Support STG
Using PayPal Donate

Re: Errors above header when posting?

Postby faku1810 » 08 Aug 2011, 14:47

If you haven't solved this yet, could you post here your includes/functions_posting.php and includes/points/functions_points.php?

It seems like a installation mistake to me, probably some line you skipped while editing some of those files. I'll check the installation file mean while.

Edit: Just checked the installation file. Check your functions_posting.php and see if you can find this line.

Code: Select all
$ultimate_points->new_post_ch($data['forum_id'], $data['post_id'], $ultimate_points->strip_text($sql_data[POSTS_TABLE]['sql']['post_text']), $post_approval);


If you can't, try searching for "new_post_ch" and make sure the line is exactly like it's here.
Last edited by faku1810 on 08 Aug 2011, 14:53, edited 1 time in total.
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1

Re: Errors above header when posting?

Postby Amylittlehands » 08 Aug 2011, 14:53

faku1810 wrote:If you haven't solved this yet, could you post here your includes/functions_posting.php and includes/points/functions_points.php?

It seems like a installation mistake to me, probably some line you skipped while editing some of those files. I'll check the installation file mean while.

Still haven't solved it, files are in the .zip thanks for the help :)
Archive.zip
(23.44 KiB) Downloaded 8 times
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4

Re: Errors above header when posting?

Postby faku1810 » 08 Aug 2011, 14:55

Ok, I found it.

In line 2093 (Using Notepad++) you have

Code: Select all
$ultimate_points->new_post_ch($data['forum_id'], $data['post_id'], $ultimate_points->strip_text($sql_data[POSTS_TABLE]['sql']['post_text']));


Replace it with

Code: Select all
    $ultimate_points->new_post_ch($data['forum_id'], $data['post_id'], $ultimate_points->strip_text($sql_data[POSTS_TABLE]['sql']['post_text']), $post_approval);
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1

Re: Errors above header when posting?

Postby Amylittlehands » 08 Aug 2011, 15:11

faku1810 wrote:Ok, I found it.

In line 2093 (Using Notepad++) you have

Code: Select all
$ultimate_points->new_post_ch($data['forum_id'], $data['post_id'], $ultimate_points->strip_text($sql_data[POSTS_TABLE]['sql']['post_text']));


Replace it with

Code: Select all
    $ultimate_points->new_post_ch($data['forum_id'], $data['post_id'], $ultimate_points->strip_text($sql_data[POSTS_TABLE]['sql']['post_text']), $post_approval);


Did that, purged cache and whatnot but I still get errors when I post;
Code: Select all
phpBB Debug] PHP Warning: in file /includes/points/functions_points.php on line 116: Missing argument 4 for ultimate_points::new_topic_ch(), called in /includes/functions_posting.php on line 2111 and defined

Warning: Cannot modify header information - headers already sent by (output started at /home/amysworld/domains/mouldingminefield.com/public_html/includes/functions.php:3791) in /home/amysworld/domains/mouldingminefield.com/public_html/includes/functions.php on line 4650

Warning: Cannot modify header information - headers already sent by (output started at /home/amysworld/domains/mouldingminefield.com/public_html/includes/functions.php:3791) in /home/amysworld/domains/mouldingminefield.com/public_html/includes/functions.php on line 4652

Warning: Cannot modify header information - headers already sent by (output started at /home/amysworld/domains/mouldingminefield.com/public_html/includes/functions.php:3791) in /home/amysworld/domains/mouldingminefield.com/public_html/includes/function


Edit: This happens when posting a new topic
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4

Re: Errors above header when posting?

Postby faku1810 » 08 Aug 2011, 15:23

That's because there is another line you need to replace, in functions_posting.php replace line 2111 with

Code: Select all
$ultimate_points->new_topic_ch($data['forum_id'], $data['topic_id'], $ultimate_points->strip_text($data['message']), $post_approval);


Of course, purge the cache (glad you did so even if I forgot to say it before :P)
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1

Re: Errors above header when posting?

Postby Amylittlehands » 08 Aug 2011, 15:36

faku1810 wrote:That's because there is another line you need to replace, in functions_posting.php replace line 2111 with

Code: Select all
$ultimate_points->new_topic_ch($data['forum_id'], $data['topic_id'], $ultimate_points->strip_text($data['message']), $post_approval);


Of course, purge the cache (glad you did so even if I forgot to say it before :P)

You, my friend are an absolute life saver! Quick replies and was easy to understand!
All works fine now! (Apart from avatar issue haha)
Forum Information:
PHPBB - 3.0.10
URL - http://www.mouldingminefield.com
Theme - Commun [Modified]
Template - Prosilver
User avatar
Amylittlehands    
Lt. Jr Grade
Lt. Jr Grade
 
Posts: 180
Joined: 06 Aug 2008, 20:16
Location: Cardiff, UK
Gender: Female
phpBB Knowledge: 4

Re: Errors above header when posting?

Postby faku1810 » 08 Aug 2011, 15:59

Lol, you just had luck I wasn't busy (or sleeping) atm ;) Also you were quick to provide me the info I needed, having the code it was easier to find where the problem was.

However, looking at the zip backup you gave me, you either have out-dated versions of your MODs, or were updating them and skipped some lines. I would recommend you to recheck the full instructions for each MOD you need to update, just in case.

See you in the Avatar issue post ;) lol
faku1810    
Cadet IV
Cadet IV
 
Posts: 52
Joined: 09 Jul 2011, 16:31
Gender: Male
phpBB Knowledge: 1


Return to phpBB3 Support

Who is online

Users browsing this forum: No registered users and 17 guests

cron