latest entries don't show after being logged in

Please report bugs here!

Moderator: Thorsten

Post Reply
WSchn123
Posts: 100
Joined: Wed Feb 02, 2005 11:00 am

latest entries don't show after being logged in

Post by WSchn123 » Thu Jun 27, 2013 1:21 pm

Hi,
just updated from 2.8.0 to the newest 2.8.1 and noticed a possible bug in regards to the "latest entries" list . When not logged in, the latest entries list displays correctly and shows the most recent 5 entries. After I log in, the latest entries list gives the message "Es gibt noch keine Einträge" (there are no entries as of yet). Even after adding a FAQ, this remains the same. After logging out, the newest entries list is displayed again and the new entry is also shown.
I did check the situation also with the "default" template set ... it's the same.
Cheers,
Wolfgang

The situation can be viewed at 2 screenshots: http://faq.bibelcenter.de/2.8.1.loggedout.jpg and http://faq.bibelcenter.de/2.8.1.loggedin.jpg

Thorsten
Posts: 15090
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: latest entries don't show after being logged in

Post by Thorsten » Thu Jun 27, 2013 5:30 pm

Hi,

can you send me a database dump of your FAQ? I cannot reproduce this.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

WSchn123
Posts: 100
Joined: Wed Feb 02, 2005 11:00 am

Re: latest entries don't show after being logged in

Post by WSchn123 » Thu Jun 27, 2013 6:24 pm

Thorsten
Thorsten wrote:Hi,
can you send me a database dump of your FAQ? I cannot reproduce this.
the databse dump is on its way to you via email ...
Cheers,
Wolfgang

StefanGl
Posts: 9
Joined: Tue Jun 25, 2013 4:15 pm

Re: latest entries don't show after being logged in

Post by StefanGl » Mon Jul 01, 2013 9:46 am

I have the same problem. But I never can see these entries (logged in or logged out).

Thorsten
Posts: 15090
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: latest entries don't show after being logged in

Post by Thorsten » Mon Jul 01, 2013 9:55 am

phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

StefanGl
Posts: 9
Joined: Tue Jun 25, 2013 4:15 pm

Re: latest entries don't show after being logged in

Post by StefanGl » Mon Jul 01, 2013 10:14 am

It doesn't work for me :(

Thorsten
Posts: 15090
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: latest entries don't show after being logged in

Post by Thorsten » Mon Jul 01, 2013 10:21 am

Hi,

already updated to 2.8.1?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

StefanGl
Posts: 9
Joined: Tue Jun 25, 2013 4:15 pm

Re: latest entries don't show after being logged in

Post by StefanGl » Mon Jul 01, 2013 10:32 am

Yes, I'm running on 2.8.1.

I've checked the generated SQL. There I got group_id = NULL for every entry. I can't setup groups in the admin-area and the table faqgroup is empty (I found /admin/index.php?action=group by try and error, but I can't add a new group - is this an upcoming feature?).

So I removed the check against groups in the functions getLatestData() and getTopTenData()

Code: Select all

remove:
|| !in_array($row->group_id, $this->groups)
and now it works for me.

Best regards,
Stefan

Thorsten
Posts: 15090
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: latest entries don't show after being logged in

Post by Thorsten » Mon Jul 01, 2013 10:54 am

Hi,

do you have basic or medium permissions?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

StefanGl
Posts: 9
Joined: Tue Jun 25, 2013 4:15 pm

Re: latest entries don't show after being logged in

Post by StefanGl » Mon Jul 01, 2013 11:01 am

I don't know, what's the difference between them?!

I've tested it with an admin-user and with the anonymous user. I think the empty group table could be the solution for it.

Thorsten
Posts: 15090
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: latest entries don't show after being logged in

Post by Thorsten » Mon Jul 01, 2013 2:15 pm

HI,

no, I ask for what you have set in the main configuration in the admin section.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

StefanGl
Posts: 9
Joined: Tue Jun 25, 2013 4:15 pm

Re: latest entries don't show after being logged in

Post by StefanGl » Mon Jul 01, 2013 2:47 pm

It was set to basic.

Thorsten
Posts: 15090
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: latest entries don't show after being logged in

Post by Thorsten » Mon Jul 01, 2013 2:53 pm

Hi,

thanks, I'll check it.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist

Jackie
Posts: 1
Joined: Tue Jul 02, 2013 12:49 pm
Location: Quebec, Canada
Contact:

Re: latest entries don't show after being logged in

Post by Jackie » Tue Jul 02, 2013 1:47 pm

Hi,

I had the same issue.

My web host fisharebest said :
The patch in GitHub does not help.
But the patch suggested by StefaniG appears to work well.
http://www.tetreaugenealogie.org/phpmyfaq/

StefanGl
Posts: 9
Joined: Tue Jun 25, 2013 4:15 pm

Re: latest entries don't show after being logged in

Post by StefanGl » Tue Jul 02, 2013 3:35 pm

Hi,

I have one additional hint. The fix
is echoing at line 1999

Code: Select all

echo 'latest';
which should be removed.

Best regards,
Stefan

Post Reply