I cannot approve new records

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

davidfoo
Posts: 8
Joined: Mon Sep 04, 2006 1:42 pm

I cannot approve new records

Post by davidfoo »

Hello,

First of all, thanks for your attention. I'm using phpmyfaq for two weeks now, and i'm having problems in approving the records in the admin area.

I select the radion button ACTIVE, and click on the submit button save, but the record does not update. Everytime, i have to mannualy change the status active to "yes" in my database.

Any help? :(

Thanks and long live to phpmyfaq!! :)
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

which version do you use?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
davidfoo
Posts: 8
Joined: Mon Sep 04, 2006 1:42 pm

Post by davidfoo »

Hi Thorsten,

Im using the latest one (1.6.4).
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I tested it and it works for me. What are the values in the database?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
davidfoo
Posts: 8
Joined: Mon Sep 04, 2006 1:42 pm

Post by davidfoo »

Here's an example of the record in the database, table FAQDATA:

id: 1
lang: pt
solution_id: 1000
revision_id: 0
active: no (i have to change
keywords: NULL
thema: "PROBLEMA - PROBLEM TEMA"
content: "SOLUÇÃO- RESINTALAR SISTEMA."
author: Fulano
emai: fulano@fulano.com
comment: y
datum: 20060831103841

If it helps, when i click in the SAVE submit button (to edit and consequently approve one record), the next page to appear is a blank page. The data is inserted in the faqdata table, but it does not receive the "yes" value in the active field.
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

could you please enable the debuggin in inc/init.php and try it again?

Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
davidfoo
Posts: 8
Joined: Mon Sep 04, 2006 1:42 pm

Post by davidfoo »

Here's the output, after trying to approve a new record:

DEBUG INFORMATION:

DELETE FROM faqadminsessions WHERE time < 1157456555
SELECT usr, pass FROM faqadminsessions WHERE uin = 'f7312cb8133361ca5f9abe730e93a964'
UPDATE faqadminsessions SET time = 1157458355 WHERE uin = 'f7312cb8133361ca5f9abe730e93a964'
SELECT id, name, realname, email, pass, rights FROM faquser WHERE name = 'admin' AND pass = '98b7b02f81594b8a2c12ea08cd69859e'
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

nothing more?

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
davidfoo
Posts: 8
Joined: Mon Sep 04, 2006 1:42 pm

Post by davidfoo »

I tried again and received the same messages:

DELETE FROM faqadminsessions WHERE time < 1157472917
SELECT usr, pass FROM faqadminsessions WHERE uin = '7cdaa34a1c4cc54592c3e3f34ffeec75'
UPDATE faqadminsessions SET time = 1157474717 WHERE uin = '7cdaa34a1c4cc54592c3e3f34ffeec75'
SELECT id, name, realname, email, pass, rights FROM faquser WHERE name = 'admin' AND pass = '98b7b02f81594b8a2c12ea08cd69859e'


And it´s just that. Any ideas? :shock:


Here's my system information:

System Information

phpMyFAQ Version
phpMyFAQ 1.6.4
Server Software
Apache/2.2.2 (Win32) PHP/5.1.4
PHP Version
PHP 5.1.4
Register Globals
off
Safe Mode
off
Database Client Version
5.0.22
Database Server Version
5.0.22-community-nt
Webserver Interface
APACHE2HANDLER
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
davidfoo wrote:And it´s just that. Any ideas? :shock:
please check these steps below for approving a faq:
  1. Review the content (!);
  2. Assign category(ies) according to what addressed by the content proposal;
  3. Move the Active radio button to Yes.
If you're not seeing any feedback (just an empty page) after clicking on Save you're probably missing to select at least a category.

Please confirm my suggestion: we'll think to a more suitable feedback if the current approval workflow arises such an issue.

Regards,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
davidfoo
Posts: 8
Joined: Mon Sep 04, 2006 1:42 pm

Post by davidfoo »

matteo wrote:Hi,
davidfoo wrote:And it´s just that. Any ideas? :shock:
please check these steps below for approving a faq:
  1. Review the content (!);
  2. Assign category(ies) according to what addressed by the content proposal;
  3. Move the Active radio button to Yes.
If you're not seeing any feedback (just an empty page) after clicking on Save you're probably missing to select at least a category.

Please confirm my suggestion: we'll think to a more suitable feedback if the current approval workflow arises such an issue.

Regards,
Matteo
That's the problem! There are no categories been displayed in the admin approve record page (but they exist!!). The revision combobox is not beend displayed too.

I'm using firefox 1.5.0.6 in linux fedora core 4. I tried to truncate all tables and to insert new data, but the problem persists.

Any ideas? :cry:
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
davidfoo wrote:That's the problem! There are no categories been displayed in the admin approve record page (but they exist!!). The revision combobox is not beend displayed too.
"good": now we have the reason of the failure.
davidfoo wrote:I'm using firefox 1.5.0.6 in linux fedora core 4.
I think that this issue is not related to a Browser or an OS version.
davidfoo wrote:I tried to truncate all tables and to insert new data, but the problem persists.
What is exactly the meaning of your truncate all tables? Have you drop all the tables and start with a fresh installation or simply truncate some of them, e.g. faqcategory and/or faqcategoryrelations? If you try to add a faq content from scratch, can you see the categories dropdown?

Regards,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
davidfoo
Posts: 8
Joined: Mon Sep 04, 2006 1:42 pm

Post by davidfoo »

What is exactly the meaning of your truncate all tables? Have you drop all the tables and start with a fresh installation or simply truncate some of them, e.g. faqcategory and/or faqcategoryrelations? If you try to add a faq content from scratch, can you see the categories dropdown?

Regards,
Matteo
I simply truncate some of them. One interesting thing: if i try to add a record from the admin page, it works perfectly! The problem happens when i add a new record like a normal user (not admin). :roll:
matteo
Posts: 572
Joined: Sun Nov 20, 2005 6:53 pm
Location: Italy

Post by matteo »

Hi,
after several tests I'm not able to reproduce the issue: could you email us a backup of the DB without your sensitive data and the username with which you have the issue?

Regards,
Matteo
phpMyFAQ QA / Developer
Amazon.co.uk Wishlist
Tom-182
Posts: 5
Joined: Mon Sep 18, 2006 3:35 am
Contact:

Post by Tom-182 »

Hi everyone, i'm new around here :)
I have the same problem as davidfoo, i can't approve new records from user who submit one, and there's no category(s) to choose from the box.

Here's the screenshot:
Image

This is the debug information when i viewed the record.

Code: Select all

DEBUG INFORMATION:

DELETE FROM kb_faqadminsessions WHERE time < 1158545751
SELECT usr, pass FROM kb_faqadminsessions WHERE uin = '6d18f69b7a02731a62067b830ff5c4ce'
UPDATE kb_faqadminsessions SET time = 1158547551 WHERE uin = '6d18f69b7a02731a62067b830ff5c4ce'
SELECT id, name, realname, email, pass, rights FROM kb_faquser WHERE name = 'admin' AND pass = '7e8c9859601a9a9845765a39df49a066'
SELECT * FROM kb_faqcategories
SELECT id, lang, parent_id, name, description FROM kb_faqcategories WHERE lang = 'en' ORDER BY id
SELECT max(id) as current_id FROM kb_faqadminlog
INSERT INTO kb_faqadminlog (id, time, usr, text, ip) VALUES (22, 1158547551, 1, 'Beitragedit, 3', '127.0.0.1')
SELECT category_id, category_lang FROM kb_faqcategoryrelations WHERE record_id = 3 AND record_lang = 'en'
SELECT kb_faqdata.id AS id, kb_faqdata.lang AS lang, kb_faqdata.solution_id AS solution_id, kb_faqdata.revision_id AS revision_id, kb_faqdata.active AS active, kb_faqdata.keywords AS keywords, kb_faqdata.thema AS thema, kb_faqdata.content AS content, kb_faqdata.author AS author, kb_faqdata.email AS email, kb_faqdata.comment AS comment, kb_faqdata.datum AS datum FROM kb_faqdata WHERE id = 3 AND lang = 'en'
SELECT revision_id, datum, author FROM kb_faqdata_revisions WHERE id = 3 ORDER BY revision_id
SELECT id, name FROM kb_faquser
SELECT revision_id, usr, datum, what FROM kb_faqchanges WHERE beitrag = 3 ORDER BY id DESC
SELECT id, id_comment, usr, email, comment, datum FROM kb_faqcomments WHERE id = 3 ORDER BY datum DESC
Btw, i'm using PHP Version 5.0.4
Post Reply