Running but with an error (1.5.0.rc5) and Postgres 7.3.9

In this board you can talk about general questions about phpMyFAQ

Moderator: Thorsten

gevans
Posts: 14
Joined: Thu Jun 30, 2005 9:36 pm
Location: Washington State
Contact:

Running but with an error (1.5.0.rc5) and Postgres 7.3.9

Post by gevans »

Hello,

After much grumbling and many mysql issues (never did get it working properly), I decided to user PostgreSQL and got phpmyfaq up and running :) I do have a few problems though:

When I try to add a category:
Error: ERROR: parser: parse error at or near "," at character 76

When I try to add a user:
database error!ERROR: parser: parse error at or near "," at character 71

Any help would be greatly appreciated. If I need to downgrade to one of the releases/stable versions, I can happily do that since I do not presently have anything in the FAQ nor have I made any customizations.

Thanks in advance...
--Databases are like women. When I sarted playing with them they were flat and I undestood them. Over time, they became multidimensional and I understand them less each day--
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

could you please enable the debug mode in admin/index.php and change the line

Code: Select all

define("DEBUG", FALSE);
to

Code: Select all

define("DEBUG", TRUE);
and post the results here and try both actions again. Thanks!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gevans
Posts: 14
Joined: Thu Jun 30, 2005 9:36 pm
Location: Washington State
Contact:

Sure Thing...

Post by gevans »

Will do first thing when I get to work in the morning Thorsten.

Thanks,

Greg
--Databases are like women. When I sarted playing with them they were flat and I undestood them. Over time, they became multidimensional and I understand them less each day--
gevans
Posts: 14
Joined: Thu Jun 30, 2005 9:36 pm
Location: Washington State
Contact:

Updated Errors

Post by gevans »

Hi Thorsten,

Here are the results of the test with DEBUG set to true:

Add Category:
Error: ERROR: parser: parse error at or near "," at character 76

Category Adminstration

DEBUG INFORMATION:

DELETE FROM faqadminsessions WHERE time < 1120208937
SELECT usr, pass FROM faqadminsessions WHERE uin = 'a7dbae1d7fbc60d47f61d74e9753ac15'
UPDATE faqadminsessions SET time = 1120210737 WHERE uin = 'a7dbae1d7fbc60d47f61d74e9753ac15'
SELECT id, name, realname, email, pass, rights FROM faquser WHERE name = 'admin' AND pass = '3608b5913f0c1b10660408e2fb74636a'
SELECT nextval('faqcategories_id_seq') as current_id;
INSERT INTO faqcategories (id, lang, parent_id, name, description) VALUES (, 'en', 0, 'EMAIL', 'Issues Involving Email Clients')

Adding a User:
database error!ERROR: parser: parse error at or near "," at character 71

User Administration

DEBUG INFORMATION:

DELETE FROM faqadminsessions WHERE time < 1120209126
SELECT usr, pass FROM faqadminsessions WHERE uin = 'a7dbae1d7fbc60d47f61d74e9753ac15'
UPDATE faqadminsessions SET time = 1120210926 WHERE uin = 'a7dbae1d7fbc60d47f61d74e9753ac15'
SELECT id, name, realname, email, pass, rights FROM faquser WHERE name = 'admin' AND pass = '3608b5913f0c1b10660408e2fb74636a'
SELECT ID FROM faquser WHERE NAME='TestUser'
SELECT nextval('faquser_id_seq') as current_id;
INSERT INTO faquser (id, name, realname, email, pass, rights) VALUES (, 'TestUser', 'Test User', 'test@test.com', '25d55ad283aa400af464c76d713c07ad', '0000000000000000000000')

I am no SQL god, in fact I barely know anything about it, but I am going to guess that it has something to do with the first "," in the VALUES part of adding the record.

Thanks in advance for your help,

Greg
--Databases are like women. When I sarted playing with them they were flat and I undestood them. Over time, they became multidimensional and I understand them less each day--
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

okay... I'll fix it. Thank you!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gevans
Posts: 14
Joined: Thu Jun 30, 2005 9:36 pm
Location: Washington State
Contact:

Hi Thorsten

Post by gevans »

Just wondering if you will post here when it has been fixed? :) Also if that will become an RC6 version or ???

Thanks

Greg
--Databases are like women. When I sarted playing with them they were flat and I undestood them. Over time, they became multidimensional and I understand them less each day--
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

I will post it here if it is fixed. :-)

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi,

what do you get from the PostgreSQL command line interface when you're executing the following queries:

Code: Select all

SELECT nextval('faqcategories_id_seq') as current_id;
SELECT nextval('faquser_id_seq') as current_id;
Thanks for your help!

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gevans
Posts: 14
Joined: Thu Jun 30, 2005 9:36 pm
Location: Washington State
Contact:

Test result

Post by gevans »

first command results:

Code: Select all

      current_id
------------------------
faqcategories_id_seq
(1 row)
second command results:

Code: Select all

ERROR: Relation "faquser_id_seq" does not exist
Hope that helps with whatever the problem is...maybe it is on my end somewhere?

Thanks again,

Greg
--Databases are like women. When I sarted playing with them they were flat and I undestood them. Over time, they became multidimensional and I understand them less each day--
gevans
Posts: 14
Joined: Thu Jun 30, 2005 9:36 pm
Location: Washington State
Contact:

Post by gevans »

I should probably add that my command from the command line to get to the DB was 'psql -U faqs cparkfaqs' (I am assuming that is correct as 'faqs' is the user that owns the db...)

Regards,

Greg
--Databases are like women. When I sarted playing with them they were flat and I undestood them. Over time, they became multidimensional and I understand them less each day--
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Greg,

I need more information:

Code: Select all

SELECT * FROM faqcategories;
SELECT * FROM faquser;
Thanks for your help!

I'll test it on my PostgreSQL 8 box tomorrow, too.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
gevans
Posts: 14
Joined: Thu Jun 30, 2005 9:36 pm
Location: Washington State
Contact:

Post by gevans »

more info as per your request :)

first command:

Code: Select all

 id | lang | parent_id | name | description
----+------+-----------+------+-------------
(0 rows)
second command:

Code: Select all

 id | name  | pass                            | realname   | email                | rights
----+-------+---------------------------------+------------+----------------------+-----------------------
1   | admin |3608b5913f0c1b10660408e2fb74636a | Greg Evans | myemail@mydomain.com | 1111111111111111111111
--Databases are like women. When I sarted playing with them they were flat and I undestood them. Over time, they became multidimensional and I understand them less each day--
tomr
Posts: 3
Joined: Wed Jul 06, 2005 1:55 am

Missing sequence

Post by tomr »

Hi,

The missing sequence is the problem... I think that the error is in the installation stage.

Did you get any errors when creating the tables?

Thanks,

Tom
gevans
Posts: 14
Joined: Thu Jun 30, 2005 9:36 pm
Location: Washington State
Contact:

Post by gevans »

Hi Tom,

I don't recall any errors during installation. Is there an easy way to uninstall the whole thing and re-install? maybe Drop the database from within psql and then start over at the installer.php (or whatever it was called) page?

Thanks

Greg
--Databases are like women. When I sarted playing with them they were flat and I undestood them. Over time, they became multidimensional and I understand them less each day--
Thorsten
Posts: 15834
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Post by Thorsten »

Hi Greg,

we'll fix the problem in the installer script. The best way should be then dropping all tables and deleting all files and then doing a fresh install.

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