Hi, I am geteting this error on panels pages when I try to edit content.
warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "panels_views" does not exist in /var/www/html/drupal-5.7/includes/database.pgsql.inc on line 125.
user warning: query: SELECT * FROM panels_views in /var/www/html/drupal-5.7/includes/database.pgsql.inc on line 144.

I have researched it but am coming up blank. Can anyone help?

Comments

NGTLD’s picture

Title: SQL error when panel views is enabled » SQL error when panel views are enabled
w3host’s picture

Version: 5.x-2.0-beta2 » 5.x-1.2

The panels.install script doesn't create the tables for panels module.
You should have panels_area and panels_info tables in database after installation.

There is a syntax error in the script:

In the line 8:
switch ($GLOBALS['dbtype']) {

should be

switch ($GLOBALS['db_type']) {

w3host’s picture

Category: support » bug
Gijs’s picture

That bit of code is corrected, yet I still get that same bug

# warning: pg_query() [function.pg-query]: Query failed: ERROR: relation "panels_views" does not exist in (path/)database.pgsql.inc on line 125.
# user warning: query: SELECT * FROM panels_views in (path/)database.pgsql.inc on line 144.

using drupal 5.8 and 5.x-2.0-beta5

Now what?

sun’s picture

Status: Active » Closed (won't fix)

Sorry, Panels 1.x is no longer maintained. Consider upgrading to 2.x, please.