Blank FAQ Content (2.0.2)

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

Post Reply
Splash
Posts: 18
Joined: Wed Jun 13, 2007 9:38 am

Blank FAQ Content (2.0.2)

Post by Splash »

Hi,

I upgraded from 2.0.1 to 2.0.2, by replacing the changed files (except the style.css file) and ran the upgrade.php script. This completed successfully, but now there is no content in the FAQ's.

Each FAQ belongs to a specific group and all users.

Even the FAQ that is open to all users is blank.

http://faq.socsa.org.za

What would you suggest I look at?
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

can you please send me your SQL-Dump?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Splash
Posts: 18
Joined: Wed Jun 13, 2007 9:38 am

Post by Splash »

I have sent you a PM with the URL...
Thanks!
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

yes, I will download it the next days...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Splash
Posts: 18
Joined: Wed Jun 13, 2007 9:38 am

Post by Splash »

Thanks, in the mean time I will restore a backup of version 2.0.1.
Splash
Posts: 18
Joined: Wed Jun 13, 2007 9:38 am

Post by Splash »

Hi,
Did you have any luck with this problem?
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

you deleted the dump, so I couldn't do the test this weekend...

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Splash
Posts: 18
Joined: Wed Jun 13, 2007 9:38 am

Post by Splash »

Hi,

Sorry, I moved it to a backup dir when I restored the previous version.
I have put a copy back for you.
tipsen
Posts: 10
Joined: Mon Jul 02, 2007 10:11 am

Re: Blank FAQ Content (2.0.2)

Post by tipsen »

Splash wrote:Hi,

I upgraded from 2.0.1 to 2.0.2, by replacing the changed files (except the style.css file) and ran the upgrade.php script. This completed successfully, but now there is no content in the FAQ's.

Each FAQ belongs to a specific group and all users.

Even the FAQ that is open to all users is blank.

http://faq.socsa.org.za

What would you suggest I look at?
I'm experiencing the exact same symptoms! I also upgraded from v. 2.0.1 to 2.0.2 and now the faq-title and faq-content are missing - it's actually the {writeContent} placeholder that is not properly populated!

Looking further into artikel.tpl I realised that it's {writeThema}, {writeContent} and {writeArticleCategories} that's not properly populated!

The content is still in the database and I can edit the questions in the admin-interface - they just don't show up in the user-interface.

Regards, Tommy Ipsen
tipsen
Posts: 10
Joined: Mon Jul 02, 2007 10:11 am

Re: Blank FAQ Content (2.0.2)

Post by tipsen »

tipsen wrote:I'm experiencing the exact same symptoms! I also upgraded from v. 2.0.1 to 2.0.2 and now the faq-title and faq-content are missing - it's actually the {writeContent} placeholder that is not properly populated!

Looking further into artikel.tpl I realised that it's {writeThema}, {writeContent} and {writeArticleCategories} that's not properly populated!

The content is still in the database and I can edit the questions in the admin-interface - they just don't show up in the user-interface.
I've narrowed the problem to the file artikel.php line 57-62:

$content = $faq->faqRecord['content']; <-- working ok
$thema = $faq->getRecordTitle($id); <-- working ok
// Add Glossary entries
$oG = new PMF_Glossary($db, $LANGCODE);
$content = $oG->insertItemsIntoContent($content); <-- $content empty now!
$thema = $oG->insertItemsIntoContent($thema); <-- $content empty now!

It seems like it's parsing of glossary items causing the problems...

Regards, Tommy Ipsen
tipsen
Posts: 10
Joined: Mon Jul 02, 2007 10:11 am

Re: Blank FAQ Content (2.0.2)

Post by tipsen »

tipsen wrote:I've narrowed the problem to the file artikel.php line 57-62:

$content = $faq->faqRecord['content']; <-- working ok
$thema = $faq->getRecordTitle($id); <-- working ok
// Add Glossary entries
$oG = new PMF_Glossary($db, $LANGCODE);
$content = $oG->insertItemsIntoContent($content); <-- $content empty now!
$thema = $oG->insertItemsIntoContent($thema); <-- $content empty now!

It seems like it's parsing of glossary items causing the problems...
FIXED:
I further narrowed the problem to the file Glossary.php, the function insertItemsIntoContent():

...
// c. the glossary item could be everywhere as a distinct word
.'(\s+)('.$item['item'].')\b' // <-- new line
//.'(\s+)('.$item['item'].')(\s+)' <-- old line

Also see the following:
viewtopic.php?t=5146
viewtopic.php?t=5036

Regards, Tommy Ipsen
Thorsten
Posts: 15724
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

the current CVS snapshot also fixes this issue.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply