You are missing our premiere tool bar navigation system! Register and use it for FREE!

NukeCops  
•  Home •  Downloads •  Gallery •  Your Account •  Forums • 
Readme First
- Readme First! -

Read and follow the rules, otherwise your posts will be closed
Modules
· Home
· FAQ
· Buy a Theme
· Advertising
· AvantGo
· Bookmarks
· Columbia
· Community
· Donations
· Downloads
· Feedback
· Forums
· PHP-Nuke HOWTO
· Private Messages
· Search
· Statistics
· Stories Archive
· Submit News
· Surveys
· Theme Gallery
· Top
· Topics
· Your Account
Who's Online
There are currently, 40 guest(s) and 2 member(s) that are online.

You are Anonymous user. You can register for free by clicking here
Nuke Cops :: View topic - Database problem [ ]
 Forum FAQ  •  Search  •   •  Memberlist  •  Usergroups   •  Register  •  Profile •    •  Log in to check your private messages  •  Log in

 
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
Author Message
CLermen
Nuke Cadet
Nuke Cadet


Joined: Feb 27, 2003
Posts: 5

Location: Brasil

PostPosted: Thu Feb 27, 2003 4:28 am Reply with quoteBack to top

Hi

I just installed PHPNuke in my server with PostgreSQL and I get the following errors in the database:

Warning: pg_exec() query failed: ERROR: parser: parse error at or near "=" in /home/ncg_temp/webdir/includes/sql_layer.php on line 212

Warning: pg_result_error(): supplied resource is not a valid PostgreSQL result resource in /home/ncg_temp/webdir/includes/sql_layer.php on line 214

Warning: pg_numrows(): supplied argument is not a valid PostgreSQL result resource in /home/ncg_temp/webdir/includes/sql_layer.php on line 267

Anyone can give me an idea of what is going wrong? What should I do to fix this problem ?

Thanks in advance.
Find all posts by CLermenView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Feb 27, 2003 8:04 am Reply with quoteBack to top

Turn on debug mode please.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
CLermen
Nuke Cadet
Nuke Cadet


Joined: Feb 27, 2003
Posts: 5

Location: Brasil

PostPosted: Thu Feb 27, 2003 10:41 am Reply with quoteBack to top

How I do this?

Thanks.
Find all posts by CLermenView user's profileSend private message
Zhen-Xjell
Nuke Cops Founder
Nuke Cops Founder


Joined: Nov 14, 2002
Posts: 5939


PostPosted: Thu Feb 27, 2003 11:40 am Reply with quoteBack to top

Hi, this is documented in some threads around here. One in particular I can think of is the announcement forum.

_________________
Paul Laudanski, Microsoft MVP Windows-Security
CastleCops: [de] [en] [wiki]
Find all posts by Zhen-XjellView user's profileSend private messageSend e-mailVisit poster's website
CLermen
Nuke Cadet
Nuke Cadet


Joined: Feb 27, 2003
Posts: 5

Location: Brasil

PostPosted: Thu Feb 27, 2003 12:19 pm Reply with quoteBack to top

Thanks
I turned on the debug mode and I could see that the error is in the query passed to the PostgreSQL server:

SQL query: select bid, bkey, title, content, url, blockfile, view from nuke_blocks where position='r' AND active='1' ORDER BY weight ASC

Warning: pg_exec() query failed: ERROR: parser: parse error at or near "=" in /home/ncg_temp/webdir/includes/sql_layer.php on line 213

It seems that the problem is in the field "position", but I can´t figure out where really is the problem.

Thanks again
Find all posts by CLermenView user's profileSend private message
chatserv
General
General


Joined: Jan 12, 2003
Posts: 3128

Location: Puerto Rico

PostPosted: Thu Feb 27, 2003 12:24 pm Reply with quoteBack to top

If you are running nuke 6.5 then your database tables have not yet been updated as position is a field of nuke 6.0

_________________
Feed a man a fish and you feed him for a day. Teach a man to fish and you feed him for a lifetime.
ScriptHeaven | NukeResources
Find all posts by chatservView user's profileSend private messageVisit poster's website
CLermen
Nuke Cadet
Nuke Cadet


Joined: Feb 27, 2003
Posts: 5

Location: Brasil

PostPosted: Thu Feb 27, 2003 12:43 pm Reply with quoteBack to top

I,m running nuke 6.0 with PostgreSQL 7.1.
Should I change to nuke 6.5 or this is a PostgreSQL specific problem ?
I ran that query using phpPgAdmin and the same error was returned.
When I removed the clause "position = 'l'" from the query, it worked fine.

Thanks again
Find all posts by CLermenView user's profileSend private message
Display posts from previous:      
Post new topic  Reply to topicprinter-friendly view
View previous topic Log in to check your private messages View next topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2005 phpBB Group

Ported by Nuke Cops © 2003 www.nukecops.com
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::
Powered by · TOGETHER TEAM srl ITALY http://www.togetherteam.it · DONDELEO E-COMMERCE http://www.DonDeLeo.com
Web site engine's code is Copyright © 2002 by PHP-Nuke. All Rights Reserved. PHP-Nuke is Free Software released under the GNU/GPL license.
Page Generation: 0.185 Seconds - 306 pages served in past 5 minutes. Nuke Cops Founded by Paul Laudanski (Zhen-Xjell)
:: FI Theme :: PHP-Nuke theme by coldblooded (www.nukemods.com) ::