From: Miles B. <mil...@gm...> - 2006-05-18 18:15:14
|
I just got the following error after deleting a feed. Now when I click on a feed with unread items I get the above error. Fatal error: Call to a member function on a non-object in /var/www/fofredux_0.4-dev/view.php on line 83 Any idea of how to correct this? -Miles |
From: Kevin <ke...@dr...> - 2006-05-18 18:46:03
|
> I just got the following error after deleting a feed. Now when I click > on a feed with unread items I get the above error. > > Fatal error: Call to a member function on a non-object in > /var/www/fofredux_0.4-dev/view.php on line 83 > > Any idea of how to correct this? Which revision is it? I made changes to view.php recently and the line numbers don't match up. --=20 Kevin |
From: Miles B. <mil...@gm...> - 2006-05-18 18:47:48
|
On 5/18/06, Kevin <ke...@dr...> wrote: > > Which revision is it? I made changes to view.php recently and the line > numbers don't match up. $Id: view.php 396 2006-04-30 19:51:00Z eroth $ |
From: Miles B. <mil...@gm...> - 2006-05-18 18:52:47
|
On 5/18/06, Kevin <ke...@dr...> wrote: > > > On 5/18/06, Kevin <ke...@dr...> wrote: > >> > >> Which revision is it? I made changes to view.php recently and the lin= e > >> numbers don't match up. > > Try changing/adding this line in config.php. It is most likely throwing = a > database error and we're thinking it succeeded. > > define('FOF_DB_DEBUG', true); Now when I try to login I get the below error: (mysql): SELECT name, value FROM fr_config Error (0): Warning: Cannot modify header information - headers already sent by (output started at /var/www/fofredux_0.4-dev/adodb_lite/adodb.inc.php:307) in /var/www/fofredux_0.4-dev/header.php on line 21 |
From: Miles B. <mil...@gm...> - 2006-05-18 18:58:26
|
On 5/18/06, Miles Beck <mil...@gm...> wrote: > > Now when I try to login I get the below error: > > (mysql): SELECT name, value FROM fr_config > Error (0): > > Warning: Cannot modify header information - headers already sent by > (output started at > /var/www/fofredux_0.4-dev/adodb_lite/adodb.inc.php:307) in > /var/www/fofredux_0.4-dev/header.php on line 21 > I also turned on the php debugging to see if that resulted in any more information. In addition to the above error I saw this with php debugging on. Not sure if it's related but thought more might be helpful. Notice: Undefined index: username in /var/www/fofredux_0.4-dev/header.php on line 21 |
From: Kevin <ke...@dr...> - 2006-05-18 19:05:07
|
> On 5/18/06, Kevin <ke...@dr...> wrote: >> >> > On 5/18/06, Kevin <ke...@dr...> wrote: >> >> >> >> Which revision is it? I made changes to view.php recently and the >> line >> >> numbers don't match up. >> >> Try changing/adding this line in config.php. It is most likely throwi= ng >> a >> database error and we're thinking it succeeded. >> >> define('FOF_DB_DEBUG', true); > > Now when I try to login I get the below error: > > (mysql): SELECT name, value FROM fr_config > Error (0): > > Warning: Cannot modify header information - headers already sent by > (output started at > /var/www/fofredux_0.4-dev/adodb_lite/adodb.inc.php:307) in > /var/www/fofredux_0.4-dev/header.php on line 21 Hmm. this will require some timing. * disable debug in config.php * login and go to the page that throws the error in view.php line 83 * enable debug in config.php * refresh the page and see what it prints out. I'm interested in non-zer= o error codes after it prints out an sql query. "Error (NNN): something blew up..." -- Kevin |
From: Miles B. <mil...@gm...> - 2006-05-18 19:11:25
|
On 5/18/06, Kevin <ke...@dr...> wrote: > * disable debug in config.php > * login and go to the page that throws the error in view.php line 83 > * enable debug in config.php > * refresh the page and see what it prints out. I'm interested in non-zer= o > error codes after it prints out an sql query. > > "Error (NNN): something blew up..." The following error was displayed before the link box. (mysql): SELECT name, value FROM fr_config Error (0): Warning: Cannot modify header information - headers already sent by (output started at /var/www/fofredux_0.4-dev/adodb_lite/adodb.inc.php:307) in /var/www/fofredux_0.4-dev/header.php on line 83 then after the search field but before the feeds listing the following error was displayed: (mysql): select feed.id, feed.url, feed.title, feed.link, feed.category_id, cat.title as category_title, feed.latitude, feed.longitude, feed.update_enabled, feed.last_update from fr_feeds feed, fr_categories cat WHERE cat.id =3D feed.category_id Error (0): (mysql): SELECT COUNT( i.feed_id ) as count, i.feed_id as id FROM fr_feeds f, fr_items i WHERE f.id =3D i.feed_id AND (flag is null OR flag =3D 0) GROUP BY i.feed_id Error (0): (mysql): select count( feed_id ) as count, feed_id as id from fr_feeds f, fr_items i where f.id =3D i.feed_id group by i.feed_id Error (0): |
From: Kevin <ke...@dr...> - 2006-05-18 20:34:53
|
> On 5/18/06, Kevin <ke...@dr...> wrote: >> * disable debug in config.php >> * login and go to the page that throws the error in view.php line 83 >> * enable debug in config.php >> * refresh the page and see what it prints out. I'm interested in >> non-zero >> error codes after it prints out an sql query. >> >> "Error (NNN): something blew up..." > > The following error was displayed before the link box. > (mysql): SELECT name, value FROM fr_config > Error (0): > > Warning: Cannot modify header information - headers already sent by > (output started at > /var/www/fofredux_0.4-dev/adodb_lite/adodb.inc.php:307) in > /var/www/fofredux_0.4-dev/header.php on line 83 > > then after the search field but before the feeds listing the following > error was displayed: > > (mysql): select feed.id, feed.url, feed.title, feed.link, > feed.category_id, cat.title as category_title, feed.latitude, > feed.longitude, feed.update_enabled, feed.last_update from fr_feeds > feed, fr_categories cat WHERE cat.id =3D feed.category_id > Error (0): > > (mysql): SELECT COUNT( i.feed_id ) as count, i.feed_id as id FROM > fr_feeds f, fr_items i WHERE f.id =3D i.feed_id AND (flag is null OR > flag =3D 0) GROUP BY i.feed_id > Error (0): > > (mysql): select count( feed_id ) as count, feed_id as id from fr_feeds > f, fr_items i where f.id =3D i.feed_id group by i.feed_id > Error (0): Okay, so this is the queries that happen on the panel/index page. Try hitting a link for unread items on a feed. What are the queries/errors when view.php is run. --=20 Kevin |
From: Miles B. <mil...@gm...> - 2006-05-18 21:09:41
|
On 5/18/06, Kevin <ke...@dr...> wrote: > Okay, so this is the queries that happen on the panel/index page. Try > hitting a link for unread items on a feed. What are the queries/errors > when view.php is run. This was all before the links box. (mysql): SELECT name, value FROM fr_config Error (0): (mysql): select url, title, link, id, category_id, latitude, longitude, auto_tag, update_enabled, last_update from fr_feeds where id =3D '2' Error (0): Warning: Cannot modify header information - headers already sent by (output started at /var/www/fofredux_0.4-dev/adodb_lite/adodb.inc.php:307) in /var/www/fofredux_0.4-dev/header.php on line 83 Between the search dialog and the Old to New link was the following error: (mysql): SELECT i.flag as item_read, f.title as feed_title, f.link as feed_link, i.id as item_id, i.link as item_link, i.title as item_title, i.cache_time, i.content as item_content, i.publish_time, i.dccreator as dccreator, i.dcsubject as dcsubject, i.latitude as latitude, i.longitude as longitude, cat.id as category_id, cat.title as category_title, i.enclosure_link as enclosure_link, i.enclosure_type as enclosure_type, f.url as feed_url FROM fr_feeds f JOIN fr_categories cat ON (f.category_id =3D cat.id) JOIN fr_items i ON (i.feed_id =3D f.id) WHERE 1 =3D 1 AND f.id =3D '2' AND (i.flag is NULL OR i.flag =3D 0) order by i.publish_time desc, i.id desc LIMIT 0, Error (1064): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 And lastly the following error: Fatal error: Call to a member function on a non-object in /var/www/fofredux_0.4-dev/view.php on line 83 |
From: Evan R. <eva...@gm...> - 2006-05-18 21:23:44
|
that SQL is good on my side when i run it in phpmyadmin. returning no results (nothing unread) but not dying on me at least. what version of mysql are you on? obviously the error is getting thrown, since the recordset is not created...thus no object. in other words, we could beef up error handling here as well. /evan On 5/18/06, Miles Beck <mil...@gm...> wrote: > > On 5/18/06, Kevin <ke...@dr...> wrote: > > Okay, so this is the queries that happen on the panel/index page. Try > > hitting a link for unread items on a feed. What are the queries/errors > > when view.php is run. > > This was all before the links box. > > (mysql): SELECT name, value FROM fr_config > Error (0): > > (mysql): select url, title, link, id, category_id, latitude, > longitude, auto_tag, update_enabled, last_update from fr_feeds where > id =3D '2' > Error (0): > > Warning: Cannot modify header information - headers already sent by > (output started at > /var/www/fofredux_0.4-dev/adodb_lite/adodb.inc.php:307) in > /var/www/fofredux_0.4-dev/header.php on line 83 > > Between the search dialog and the Old to New link was the following error= : > (mysql): SELECT i.flag as item_read, f.title as feed_title, f.link as > feed_link, i.id as item_id, i.link as item_link, i.title as > item_title, i.cache_time, i.content as item_content, i.publish_time, > i.dccreator as dccreator, i.dcsubject as dcsubject, i.latitude as > latitude, i.longitude as longitude, cat.id as category_id, cat.title > as category_title, i.enclosure_link as enclosure_link, > i.enclosure_type as enclosure_type, f.url as feed_url FROM fr_feeds f > JOIN fr_categories cat ON (f.category_id =3D cat.id) JOIN fr_items i ON > (i.feed_id =3D f.id) WHERE 1 =3D 1 AND f.id =3D '2' AND (i.flag is NULL O= R > i.flag =3D 0) order by i.publish_time desc, i.id desc LIMIT 0, > Error (1064): You have an error in your SQL syntax; check the manual > that corresponds to your MySQL server version for the right syntax to > use near '' at line 1 > > And lastly the following error: > Fatal error: Call to a member function on a non-object in > /var/www/fofredux_0.4-dev/view.php on line 83 > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > |
From: Miles B. <mil...@gm...> - 2006-05-18 21:33:05
|
On 5/18/06, Evan Roth <eva...@gm...> wrote: > what version of mysql are you on? > obviously the error is getting thrown, since the recordset is not > created...thus no object. in other words, we could beef up error handlin= g > here as well. > > /evan I'm using php4 on a Debian install. What I don't understand is why this happened after deleting a feed. -Miles |
From: Miles B. <mil...@gm...> - 2006-05-19 06:49:10
|
On 5/18/06, Evan Roth <eva...@gm...> wrote: > ah...i get it...you probably deleted feed number 2? could that be? (it'= d > have been the 2nd feed you added since starting from a clean db) > > i'll try this this weekend then...should be reproducable somehow Should I restore the database from a backup? Or is there a way to fix this install? -Miles |
From: Kevin <ke...@dr...> - 2006-05-19 16:00:17
|
Miles wrote: > On 5/18/06, Evan Roth <eva...@gm...> wrote: >> ah...i get it...you probably deleted feed number 2? could that be? >> (it'd >> have been the 2nd feed you added since starting from a clean db) >> >> i'll try this this weekend then...should be reproducable somehow If feed 2 no longer existed, then the query would return no rows. It shouldn't generate a syntax error. Actually if feed 2 didn't exist, it shouldn't show up in the feed list at all. Miles, Does this only happen when viewing items by feed? what about by category, all unread, all today, etc? > Should I restore the database from a backup? > > Or is there a way to fix this install? What database type/version is this, and was it changed recently? Someon= e else had a problem where the db was upgraded and it munged the data a bit= . --=20 Kevin |
From: Miles B. <mil...@gm...> - 2006-05-19 16:05:39
|
On 5/19/06, Kevin <ke...@dr...> wrote: > Miles, > Does this only happen when viewing items by feed? what about by > category, all unread, all today, etc? I did not try anything other than clicking on a feed with unread items. I have restored my database from a backup and the problem no longer occurs. > What database type/version is this, and was it changed recently? Someon= e > else had a problem where the db was upgraded and it munged the data a bit= . This is a mysql database version 4. I'll make a copy of the database and see if I can get this to happen again. -Miles |
From: Miles B. <mil...@gm...> - 2006-05-19 17:57:05
|
Hm, in looking at this some more I found the real reason this was occuring. It has to do with the "list only feeds with unread items" option. What I had done before was delete a feed, then I wondered if it was really gone so I went into the options section and then de-selected the checkbox for "list only feeds with unread items" and then saved. Once you deselect that option and then try and click on a feed with new items in it the error is generated. Various errors also happen when clicking on "view new items", "view all items, paged", "view today's items" and "view saved items". This is easily reproducible at least on my machine with the steps outlined above. -Miles |
From: Evan R. <eva...@gm...> - 2006-05-19 18:27:18
|
ok, that was my added feature...so probably my bug too. i'll take a look a= t it this week...i'm assuming you can still use the app normally otherwise? /evan On 5/19/06, Miles Beck <mil...@gm...> wrote: > > Hm, in looking at this some more I found the real reason this was > occuring. > > It has to do with the "list only feeds with unread items" option. > > What I had done before was delete a feed, then I wondered if it was > really gone so I went into the options section and then de-selected > the checkbox for "list only feeds with unread items" and then saved. > > Once you deselect that option and then try and click on a feed with > new items in it the error is generated. Various errors also happen > when clicking on "view new items", "view all items, paged", "view > today's items" and "view saved items". > > This is easily reproducible at least on my machine with the steps > outlined above. > > -Miles > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > |
From: Miles B. <mil...@gm...> - 2006-05-19 18:31:48
|
On 5/19/06, Evan Roth <eva...@gm...> wrote: > ok, that was my added feature...so probably my bug too. i'll take a look= at > it this week...i'm assuming you can still use the app normally otherwise? > > /evan Yes. In testing this I was restoring from a backup of the database. Which I did several times to narrow down the problem. So for right now I still have the option enabled and things are fine. When you think you have it fixed I can grab the new snapshot and then verify here that it works for me as well. -Miles |
From: Kevin <ke...@dr...> - 2006-05-19 19:10:11
|
> ok, that was my added feature...so probably my bug too. i'll take a lo= ok > at > it this week...i'm assuming you can still use the app normally otherwis= e? I'm running today's snapshot and don't see the probem Miles describes.=20 There have been quite a few model/db changes recently, most likely his bu= g was fixed as a side effect. -Kevin > On 5/19/06, Miles Beck <mil...@gm...> wrote: >> >> Hm, in looking at this some more I found the real reason this was >> occuring. >> >> It has to do with the "list only feeds with unread items" option. >> >> What I had done before was delete a feed, then I wondered if it was >> really gone so I went into the options section and then de-selected >> the checkbox for "list only feeds with unread items" and then saved. >> >> Once you deselect that option and then try and click on a feed with >> new items in it the error is generated. Various errors also happen >> when clicking on "view new items", "view all items, paged", "view >> today's items" and "view saved items". >> >> This is easily reproducible at least on my machine with the steps >> outlined above. >> >> -Miles >> >> >> ------------------------------------------------------- >> Using Tomcat but need to do more? Need to support web services, >> security? >> Get stuff done quickly with pre-integrated technology to make your job >> easier >> Download IBM WebSphere Application Server v.1.0.1 based on Apache >> Geronimo >> http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 >> _______________________________________________ >> Fofredux-devel mailing list >> Fof...@li... >> https://lists.sourceforge.net/lists/listinfo/fofredux-devel >> > --=20 Kevin |
From: Miles B. <mil...@gm...> - 2006-05-19 19:18:46
|
On 5/19/06, Kevin <ke...@dr...> wrote: > I'm running today's snapshot and don't see the probem Miles describes. > There have been quite a few model/db changes recently, most likely his bu= g > was fixed as a side effect. > > -Kevin Ah, I'll download the snapshot and see what happens. -Miles |
From: Miles B. <mil...@gm...> - 2006-05-19 19:59:23
|
On 5/19/06, Miles Beck <mil...@gm...> wrote: > On 5/19/06, Kevin <ke...@dr...> wrote: > > I'm running today's snapshot and don't see the probem Miles describes. > > There have been quite a few model/db changes recently, most likely his = bug > > was fixed as a side effect. > > > > -Kevin Hm, with today's snapshot I am receiving the same error as before plus a new one. I turned on debugging for more information. This is the error before the links box. (mysql): SELECT name, value FROM fr_config Error (0): Warning: Cannot modify header information - headers already sent by (output started at /var/www/fofredux-20060519/adodb_lite/adodb.inc.php:307) in /var/www/fofredux-20060519/header.php on line 83 This is the error after the search field. (mysql): SELECT feed.id, feed.url, feed.title, feed.link, feed.category_id, feed.latitude, feed.longitude, feed.update_enabled, feed.auto_tag, feed.last_update FROM fr_feeds feed WHERE 1 =3D 1 ORDER BY title ASC Error (0): (mysql): SELECT * FROM fr_categories WHERE id =3D '1' Error (0): Fatal error: Call to a member function on a non-object in /var/www/fofredux-20060519/lib/model/feed.php on line 441 |
From: Evan R. <eva...@gm...> - 2006-05-21 12:20:41
|
hey there miles, are you still getting this problem? i've been trying to reproduce it, but for the life of me, it's not breaking. if you do still have it, would you mind detailing the steps you take to get there as exactly as you can? thanks, /evan On 5/19/06, Miles Beck <mil...@gm...> wrote: > > On 5/19/06, Miles Beck <mil...@gm...> wrote: > > On 5/19/06, Kevin <ke...@dr...> wrote: > > > I'm running today's snapshot and don't see the probem Miles describes= . > > > There have been quite a few model/db changes recently, most likely hi= s > bug > > > was fixed as a side effect. > > > > > > -Kevin > > Hm, with today's snapshot I am receiving the same error as before plus > a new one. > > I turned on debugging for more information. > > This is the error before the links box. > > (mysql): SELECT name, value FROM fr_config > Error (0): > > Warning: Cannot modify header information - headers already sent by > (output started at > /var/www/fofredux-20060519/adodb_lite/adodb.inc.php:307) in > /var/www/fofredux-20060519/header.php on line 83 > > This is the error after the search field. > > (mysql): SELECT feed.id, feed.url, feed.title, feed.link, > feed.category_id, feed.latitude, feed.longitude, feed.update_enabled, > feed.auto_tag, feed.last_update FROM fr_feeds feed WHERE 1 =3D 1 ORDER > BY title ASC > Error (0): > > (mysql): SELECT * FROM fr_categories WHERE id =3D '1' > Error (0): > > Fatal error: Call to a member function on a non-object in > /var/www/fofredux-20060519/lib/model/feed.php on line 441 > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > |
From: Miles B. <mil...@gm...> - 2006-05-21 12:41:40
|
On 5/21/06, Evan Roth <eva...@gm...> wrote: > hey there miles, > > are you still getting this problem? i've been trying to reproduce it, bu= t > for the life of me, it's not breaking. > > if you do still have it, would you mind detailing the steps you take to g= et > there as exactly as you can? > > thanks, > /evan Yes, I am still seeing this problem. Go to the Options page. De-select "list only feeds with unread items" and then click the button "Save Options". Then click on a feed with new items. Then the error occurs. On a side note, I also still cannot use a snapshot past the 19th. I tried the snapshot from yesterday as well as the snapshot from the 19th and am still getting a few errors that I detailed in my last email. -Miles |
From: Evan R. <eva...@gm...> - 2006-05-21 12:57:16
|
frustrating, since everything is working fine here and i can't reproduce your problems at all. although the login is no longer working. kev, have you disabled this on purpose? /evan On 5/21/06, Miles Beck <mil...@gm...> wrote: > > On 5/21/06, Evan Roth <eva...@gm...> wrote: > > hey there miles, > > > > are you still getting this problem? i've been trying to reproduce it, > but > > for the life of me, it's not breaking. > > > > if you do still have it, would you mind detailing the steps you take to > get > > there as exactly as you can? > > > > thanks, > > /evan > Yes, I am still seeing this problem. > > Go to the Options page. De-select "list only feeds with unread items" > and then click the button "Save Options". Then click on a feed with > new items. Then the error occurs. > > On a side note, I also still cannot use a snapshot past the 19th. I > tried the snapshot from yesterday as well as the snapshot from the > 19th and am still getting a few errors that I detailed in my last > email. > > -Miles > > > ------------------------------------------------------- > Using Tomcat but need to do more? Need to support web services, security? > Get stuff done quickly with pre-integrated technology to make your job > easier > Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronim= o > http://sel.as-us.falkag.net/sel?cmdlnk&kid=120709&bid&3057&dat=121642 > _______________________________________________ > Fofredux-devel mailing list > Fof...@li... > https://lists.sourceforge.net/lists/listinfo/fofredux-devel > |