Home
Help
Sitemap
Login
Register
Elxis.org
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News
:
Elxis 4.x documentation
for users and developers
Elxis CMS Forum
>
Support
>
Database
>
Bug: Postgresql 8
Pages: [
1
]
« previous
next »
Print
Author
Topic: Bug: Postgresql 8 (Read 2181 times)
forgetms
Newbie
Offline
Posts: 42
Bug: Postgresql 8
«
on:
October 14, 2009, 06:30:50 »
Not sure if this is the right place for bug reporting but...
bug 1: The errors occur during the installation shows "postgre 7" but it is "postgresql 8" that was chosen.
Bug 2: The error occurs after login as administrator:
ERROR: column "session.username" must appear in the GROUP BY clause or be used in an aggregate function at character 8
STATEMENT: SELECT username, time, userid, usertype, gid, ip FROM session GROUP BY ip ORDER BY time DESC LIMIT 10 OFFSET 0
elxis-bug2.jpg
(85.41 KB, 971x400 - viewed 250 times.)
Logged
datahell
Elxis Team
Hero Member
Offline
Posts: 7595
Re: Bug: Postgresql 8
«
Reply #1 on:
October 14, 2009, 08:06:15 »
Sorry for tis.
Open
installation/includes/elxisinstaller.php
Go to line 1080
Change this:
if (!preg_match('^'.$this->_config['dbprefix'].'', $pg_table)) { continue; }
to this:
if (!preg_match('#^'.$this->_config['dbprefix'].'#', $pg_table)) { continue; }
This problem affects only Elxis installation under postgres. The Elxis release was updated with this fix.
«
Last Edit: October 14, 2009, 08:22:24 by datahell
»
Logged
Elxis Team
|
Is Open Source
|
IOS Reservations | IOS Eshop
forgetms
Newbie
Offline
Posts: 42
Re: Bug: Postgresql 8
«
Reply #2 on:
October 14, 2009, 09:14:33 »
Many thanks for the fast response!
I have modified that statement as you instructed.
More issues follow after the modification:
ERROR: invalid input syntax for integer: "" at character 82
STATEMENT: UPDATE menu
SET checked_out='0', checked_out_time='1979-12-19 00:00:00'
WHERE id=''
ERROR: relation "idx_section" already exists
STATEMENT: CREATE INDEX idx_section ON content (sectionid)
ERROR: relation "idx_access" already exists
STATEMENT: CREATE INDEX idx_access ON content (access)
ERROR: relation "idx_checkout" already exists
STATEMENT: CREATE INDEX idx_checkout ON content (checked_out)
ERROR: relation "published" already exists
STATEMENT: CREATE INDEX published ON newsfeeds (published)
LOG: duration: 74.964 ms statement: CREATE TABLE poll_data (
id SERIAL,
pollid INTEGER DEFAULT 0 NOT NULL,
text TEXT,
hits INTEGER DEFAULT 0 NOT NULL,
PRIMARY KEY (id)
)
Logged
datahell
Elxis Team
Hero Member
Offline
Posts: 7595
Re: Bug: Postgresql 8
«
Reply #3 on:
October 14, 2009, 11:44:03 »
First empty your database and then re-try.
Logged
Elxis Team
|
Is Open Source
|
IOS Reservations | IOS Eshop
forgetms
Newbie
Offline
Posts: 42
Re: Bug: Postgresql 8
«
Reply #4 on:
October 19, 2009, 17:52:29 »
Quote from: datahell on October 14, 2009, 11:44:03
First empty your database and then re-try.
Just dropped the database, unzip'ed elxis, modified elxisinstaller.php, re-ran installation, and got the errors and warnings from PostgreSQL log as in the attachment.
errors.txt
(14.05 KB - downloaded 712 times.)
Logged
Pages: [
1
]
Print
« previous
next »
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> News and announcements
-----------------------------
Support
-----------------------------
=> FAQs
=> General
=> Installation
=> Security
=> Administration
=> Database
=> Language
=> Elxis 4.x DEV
=> Elxis 2008 developers guide
=> Technical support
=> Public Speaking
-----------------------------
Extensions
-----------------------------
=> Components
=> Modules
=> Bots and plugins
=> Tools
=> Bridges
=> Templates
-----------------------------
Community
-----------------------------
=> Elxis Community
=> Elxis 2008.x Olympus (dev)
=> Build with Elxis...
-----------------------------
Ελληνικό Forum
-----------------------------
=> Γενικά Θέματα για το Elxis CMS
=> Εγκατάσταση
=> Διαχείριση
=> Γλώσσες - Πολυγλωσσία
=> Πρόσθετα
=> Ασφάλεια
=> Βάσεις Δεδομένων
=> Σχετικά με το Forum
=> Δημόσιο Βήμα
-----------------------------
International zone
-----------------------------
=> Dutch
=> Deutsch
=> Français
=> Italiano
=> Indonesian
=> فارسی - Persian
=> Русский
=> Srpski - Српски
=> Türkiye
Loading...