SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
Posted:  08 Nov 2005 01:57
I keep getting this major  bug on the main page of our forum site:

ive gotten the hosting company to now backup it up for the 3rd time now!

Whats causing this?

http://www.singerdesign.com/bug.gif
Posted:  08 Nov 2005 01:59
php is running as a cgi on the hosting server
Posted:  08 Nov 2005 02:01
the strange thing is the other pages seem to work fine ....
Posted:  08 Nov 2005 09:30
It's sth to do with your php setttings. For example, if you try to post a message on this forum with the text (dot htaccess - one word) the server will show an internal error because it thinks it is a hack attempt.

Just Google the error out.
__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
Posted:  08 Nov 2005 10:34
how? what file do i need to fix?
Posted:  08 Nov 2005 11:45
Go to google, type sth like: "premature end of script headers", read what google comes up with the try to see what's the cause. I have no idea, it is not an error in the seo-board script.
__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
Posted:  09 Nov 2005 01:24
Hristo,

From what I can identify this is a bug within the code and in particular the index.php file.

I will concede I am not sure what is causing this, however it seems after running for a period of time of running without fault the script starts generating this above error.

The server is running PHP 4.3.2 as a CGI. All other php scripts continue to run without fault.

In fact, after re-running install.php (which incidently deletes the contents of the database without checking it existence, which in itself is a big security problem), the index.php page begins to work again. Albiet with no content.

The above error message is a generic server error for when php is generating invalid or incomplete code or there is some other fundamental error with the way the php cgi is being executed (for example if the permissions on the php are incorrect and the binary is not executable).. however, this is clearly not the case as other php files using the same php handler work fine.

Suspecting that it is some change within the database, as the problem is magically corrected after the contents is dumped I tried to remove the last entry from each table to see if this would fix the problem.  Unfortunately, this did not solve the issue either.

Are there any other suggestions which you can provide to assist in dianosing this issue?
Posted:  09 Nov 2005 10:13
It has sth to do with your php settings. Run this search on google and read on: [premature end of script headers php 4.3.2] and similar queries. Lots of stuff pops out. One post said that a simple script calling phpinfo produced the error. Another one said anything recursive causes it on his configuration (seo-board uses a recurvise func to addslash $_GET etc. arrays). Some said the problem is in some parameters in php.ini where too little memory is given to php etc.

You have to dig it out. SEO-Board runs onh about 300 sites without this error. On my site it runs under php 4.3.10. It is in the php settings and maybe a combination of settings/bugs in php and specific code in seo-board that triggers the bug in php.

I just don't have time to dig it deeply. Maybe try to upgrade the php to 4.3.10.
__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
Posted:  09 Nov 2005 12:28
Quote:
It has sth to do with your php settings.


This is running on a production machine with hundreds of other users -- this exact script runs on it without problem in 99% of times.  This is not something to do with the PHP binary, nor is it something we have seen consistently with other php file.

Quote:
Run this search on google and read on: [premature end of script headers php 4.3.2] and similar queries. Lots of stuff pops out. One post said that a simple script calling phpinfo produced the error.


The issues which are listed (including but not limited to the one you list above) is referring to when there is a configuration error with either apache or the php handler. A problem of this nature would cause ALL php scripts to return this error message.  As clearly outlined previously, this is not the case.

Quote:
Another one said anything recursive causes it on his configuration (seo-board uses a recurvise func to addslash $_GET etc. arrays).


Does seo board use this every time index.php is loaded? If not, what specific cases would cause it to use this function?

Quote:
Some said the problem is in some parameters in php.ini where too little memory is given to php etc.


Currently there is 8MB being allocated to php, I would be rather concerned if there is a need to increase this for the index page to work in all conditions.  To be honest, looking at the code, I would find it very hard to accept this is the problem.  As an aside, this type of error will generally crash gracefully with a memory allocation error, provided apache/php are configured correctly, which they are.

Quote:
I just don't have time to dig it deeply. Maybe try to upgrade the php to 4.3.10.


As I am sure you can appreciate, upgrading php on a live production server generally isn't something which is very pratical.. And I was hoping that if there is some type of condition within the script which was causing this problem then we could work to having it fixed.  Unfortunately, given this is the only code which is exhibiting this sporatic behaviour then I will admit I am a little reluctant to accept that it is an issue within PHP. On this basis, regrettably, the only other recommendation I can provide is to use alternative forum software which is more mature and thus more reliable.
Posted:  10 Nov 2005 06:09
Ahh it just happened again! They killed me the bugs
Posted:  10 Nov 2005 06:37
From what I can see it is as a result of specific data within the database.

Ie, I have a two mysql dumps from similar times, one works, one doesn't.  Running diff over the two files there are only about a handful of records which are different.

Is there some where I can email this to for you to take a look at?
Posted:  10 Nov 2005 10:39
keiran,
my email is hristo at seo-board dot com.

That's interesting what you post. See, on this forum, if you try to post a string using dot htaccess (with one word, as the file that controls various stuff on Apache) and you will get an internal server error. That's because the Apache on my hosting account is configured to block requests with dot htaccess in them (that could be a hacking attempt). Maybe some words in the posts at your board trigger some kind of weird behavior.
__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
Posted:  11 Nov 2005 00:45
sent details via email..
Posted:  16 Nov 2005 14:25
any luck with this?
Posted:  16 Nov 2005 15:37
I replied to the email that I need all the seo_board_forums entries in order to make a local copy and debug it. I suspect that the error is related to your modifications (showing snippets of text in latest forum posts on the front forum page). Try turning off the latest posts and maybe the problem will disappear.
__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com