Hey everyone, I just fixed a mysterious error I was seeing in my httpd/errors log file. It said:
[Wed Dec 12 09:49:00 2001] [notice] child pid 32655 exit signal Segmentation fault (11)
[Wed Dec 12 09:49:03 2001] [error] NOTICE: Adding missing FROM-clause entry for table "ftr_cal_calendar"
This was also accompanied by "Blank Pages" in ie with a generic DNS error message, or in Netscape, a "Page contains no data" error.
I am using PHP 4.0.6, PostgreSQL 7.1.2 and Apache 1.3.20
As it turns out, it is a very simple thing to do when using postgresql and php. It may be valid with other programming languages too.
Here's an example SQL statement:
SELECT ftr_cal_events.*
FROM ftr_cal_events
WHERE ftr_cal_events.calendarid = ftr_cal_calendar.calendarid
AND ftr_cal_calendar.name = 'something'
AND ftr_cal_calendar.accountid = 'somethingelse'
Notice that I'm joining ftr_cal_events to ftr_cal_calendar on calendarid. The query works just fine, despite the fact that there is no explicit reference to ftr_cal_calendar in the FROM clause.
Putting this query on a page and then viewing that page about 10 times will result in 10 messages in your error log and 6-7 blank or "page contains no data" page views.
Matthew Nuzum
followers.net