Blank FAQ Content (2.0.2)
Moderator: Thorsten
Blank FAQ Content (2.0.2)
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 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?
Hi,
can you please send me your SQL-Dump?
bye
Thorsten
can you please send me your SQL-Dump?
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
yes, I will download it the next days...
bye
Thorsten
yes, I will download it the next days...
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Hi,
you deleted the dump, so I couldn't do the test this weekend...
bye
Thorsten
you deleted the dump, so I couldn't do the test this weekend...
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist
Re: Blank FAQ Content (2.0.2)
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!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?
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
Re: Blank FAQ Content (2.0.2)
I've narrowed the problem to the file artikel.php line 57-62: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.
$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
Re: Blank FAQ Content (2.0.2)
FIXED: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...
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
Hi,
the current CVS snapshot also fixes this issue.
bye
Thorsten
the current CVS snapshot also fixes this issue.
bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
amazon.de Wishlist