Current time: 03-20-2010, 04:36 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] mybb1.4.2 and PostgreSQL
10-16-2008, 12:44 PM
Post: #1
[F] mybb1.4.2 and PostgreSQL
Anyone successfully using mybb1.4.2 (or previous 1.4.x versions) together with Postgres ? I'm using Postgres 8.2.3 and successfully installed mybb1.4.2. I can log in as admin. Unfortunately I get a lot of SQL errors while performing various tasks. Examples:

Register a new user
MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
0 - ERROR: relation "mybb_userfields_ufid_seq" does not exist
Query:
SELECT currval('mybb_userfields_ufid_seq') AS last_value

Create a new group

SQL Error:
0 - ERROR: invalid input syntax for integer: ""
Query:
SELECT g.gid, COUNT(u.uid) AS users FROM mybb_users u LEFT JOIN mybb_usergroups g ON (','|| u.additionalgroups|| ',' LIKE '%,'|| g.gid|| ',%') WHERE g.gid != '' GROUP BY g.gid


Save a new group
SQL Error:
0 - ERROR: invalid input syntax for integer: ""
Query:
UPDATE mybb_usergroups SET type='2', title='SCO Staff', description='', namestyle='{username}', usertitle='', stars='0', starimage='images/star.gif', image='', isbannedgroup='0', canview='1', canviewthreads='1', canviewprofiles='1', candlattachments='1', canpostthreads='1', canpostreplys='1', canpostattachments='1', canratethreads='1', caneditposts='1', candeleteposts='1', candeletethreads='1', caneditattachments='1', canpostpolls='1', canvotepolls='1', canusepms='1', cansendpms='1', cantrackpms='1', candenypmreceipts='1', pmquota='100', maxpmrecipients='5', cansendemail='1', maxemails='4', canviewmemberlist='1', canviewcalendar='1', canaddevents='1', canbypasseventmod='0', canmoderateevents='0', canviewonline='1', canviewwolinvis='0', canviewonlineips='0', cancp='0', issupermod='0', cansearch='1', canusercp='1', canuploadavatars='1', canchangename='0', showforumteam='0', usereputationsystem='1', cangivereputations='1', reputationpower='1', maxreputationsday='5', attachquota='5000', cancustomtitle='0', canwarnusers='0', canreceivewarnings='1', maxwarningsday='0', canmodcp='0', candisplaygroup='' WHERE gid='8'

Anyone can help here ?

Thanks[/b]
Find all posts by this user
10-16-2008, 03:18 PM
Post: #2
RE: mybb1.4.2 and PostgreSQL
What is postgres?? And what plugins do you have installed??

My Personal Site - Twitter
MyBB Support Team
[Image: lqscs]
Visit this user's website Find all posts by this user
10-16-2008, 03:27 PM
Post: #3
RE: mybb1.4.2 and PostgreSQL
(10-16-2008 03:18 PM)Matt_ Wrote:  What is postgres?? And what plugins do you have installed??

postgres = PostgreSQL is the database and I have no plugins installed (default 1.4.2 installation).
Find all posts by this user
10-16-2008, 03:32 PM
Post: #4
RE: mybb1.4.2 and PostgreSQL
Is it just me or is that not in the list of databases to select on installation?? Huh

My Personal Site - Twitter
MyBB Support Team
[Image: lqscs]
Visit this user's website Find all posts by this user
10-16-2008, 06:05 PM
Post: #5
RE: mybb1.4.2 and PostgreSQL
(10-16-2008 03:32 PM)Matt_ Wrote:  Is it just me or is that not in the list of databases to select on installation?? Huh

It's just you. MyBB 1.4 came with PostgreSQL and SQLite support.

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Hosting available, PM for details
Visit this user's website Find all posts by this user
10-16-2008, 06:12 PM
Post: #6
RE: mybb1.4.2 and PostgreSQL
(10-16-2008 06:05 PM)DennisTT Wrote:  
(10-16-2008 03:32 PM)Matt_ Wrote:  Is it just me or is that not in the list of databases to select on installation?? Huh

It's just you. MyBB 1.4 came with PostgreSQL and SQLite support.

Would that only show on the list if it was installed on the server?? Because it wasn't on the list for me.

My Personal Site - Twitter
MyBB Support Team
[Image: lqscs]
Visit this user's website Find all posts by this user
10-16-2008, 06:18 PM (This post was last modified: 10-16-2008 06:19 PM by Dennis Tsang.)
Post: #7
RE: mybb1.4.2 and PostgreSQL
(10-16-2008 06:12 PM)Matt_ Wrote:  
(10-16-2008 06:05 PM)DennisTT Wrote:  
(10-16-2008 03:32 PM)Matt_ Wrote:  Is it just me or is that not in the list of databases to select on installation?? Huh

It's just you. MyBB 1.4 came with PostgreSQL and SQLite support.

Would that only show on the list if it was installed on the server?? Because it wasn't on the list for me.

Yes.


For kvikkjokk, could you try this groups.php? Upload it to admin/modules/user/groups.php. It should fix the second and third problems.


Attached File(s)
.php  groups.php (Size: 50.96 KB / Downloads: 283)

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Hosting available, PM for details
Visit this user's website Find all posts by this user
10-16-2008, 06:38 PM
Post: #8
RE: mybb1.4.2 and PostgreSQL
(10-16-2008 06:18 PM)DennisTT Wrote:  
(10-16-2008 06:12 PM)Matt_ Wrote:  
(10-16-2008 06:05 PM)DennisTT Wrote:  
(10-16-2008 03:32 PM)Matt_ Wrote:  Is it just me or is that not in the list of databases to select on installation?? Huh

It's just you. MyBB 1.4 came with PostgreSQL and SQLite support.

Would that only show on the list if it was installed on the server?? Because it wasn't on the list for me.

Yes.


For kvikkjokk, could you try this groups.php? Upload it to admin/modules/user/groups.php. It should fix the second and third problems.

Hi Dennis,
wonderful !!! #2 and #3 solved. Superb work. Any thoughts about #1 ?

Thanks for your support
Find all posts by this user
10-17-2008, 06:26 PM
Post: #9
RE: mybb1.4.2 and PostgreSQL
Hi kvikkjokk

Just wondering, do you get the 1st error when a new user registers on the front end, and also when you try to create a user in the Admin CP?

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Hosting available, PM for details
Visit this user's website Find all posts by this user
10-17-2008, 08:49 PM
Post: #10
RE: mybb1.4.2 and PostgreSQL
Looks like the installation script forgot to create the proper sequences. For each table create a sequence using something like:

Code:
CREATE SEQUENCE mybb_userfields_ufid_seq
Find all posts by this user


Forum Jump: