google-code-backups / rsslounge

Automatically exported from code.google.com/p/rsslounge
0 stars 0 forks source link

New items in DB not showing up #21

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Install per wiki instructions
2. Run: http://{rssloungeurl}/update/silent

What is the expected output? What do you see instead?

The new items for my feeds are downloaded without error and added to the
items table. However, when I view the front-end of the site there are not
any items shown. The status at the bottom of the left column reads:

* all items 0
* unread items 0
* read items 0
* feeds 41

The following query returns 668:
SELECT count(id) FROM items i WHERE unread = 1

What version of the product are you using? On what operating system?

SVN - Revision 97
Ubunutu 9.10
Apache 2.2.12
PHP 5.2.10

Original issue reported on code.google.com by philwr...@gmail.com on 16 Feb 2010 at 8:12

GoogleCodeExporter commented 8 years ago
When the prepareSettings function in the itemcounter.php helper is called and 
passed
null it returns an array with starred set to 1. This is causing the resulting 
queries
to contain (i.starred=1) in the WHERE.

I short circuited prepareSettings to always return 0 for "starred". Obviously 
this
breaks the starred item functionality, but it does make everything else work. 

Why does Zend_Registry::get('session') have a "starred" with a value of 1?

Thanks

Original comment by philwr...@gmail.com on 17 Feb 2010 at 3:31

GoogleCodeExporter commented 8 years ago
If you select any category, "starred" will be set to 0. This will happen on 
events.js
(line 97). This given value will be saved on ItemController.php (Line 60). I 
can't
understand, why the option "starred" remain 1 on your installation.

Original comment by zzuzzlwuzzl@googlemail.com on 21 Feb 2010 at 6:32

GoogleCodeExporter commented 8 years ago

Original comment by zzuzzlwuzzl@googlemail.com on 17 Jul 2010 at 12:31