Problem working with Postgres

Author Message

Mazin Mustafa

Thursday 01 July 2004 8:50:39 am

I'm trying to perform a fresh install on eZ publish 3.4.0 and have it use Postgres. The setup dectects the presence of Postgres and allows me to select. At the screen where the host, user name, and password are entered, it fails with this message:

"Please make sure that the username and the password is correct. Verify that your PostgreSQL database is configured correctly."

I run a simple php test script:

$link = pg_connect("host=localhost dbname=ezpublish user=postgres password=password");
if (!$link) {
die("Could not connect: " .pg_last_error());
}
echo 'Connected successfully';

And it connects just fine.
Is there some Postgres parameter that ez Publish needs set ?

phpinfo returns the following on postgres

pgsql
PostgreSQL Support enabled
PostgreSQL(libpq) Version 7.3.4
Multibyte character support enabled
SSL support enabled
Active Persistent Links 0
Active Links 0

Directive Local Value Master Value
pgsql.allow_persistent On On
pgsql.auto_reset_persistent Off Off
pgsql.ignore_notice Off Off
pgsql.log_notice Off Off
pgsql.max_links Unlimited Unlimited
pgsql.max_persistent Unlimited Unlimited

Thanks

Vadym Savchuk

Thursday 01 July 2004 10:42:20 am

Yes, this is a known bug.
Please look at the following bugreport:
http://ez.no/community/bug_reports/database_connection_fails_with_installation_wizard

You can just wait until eZ Publish 3.4.1 is released (in a few days), which already includes the fix. Alternatively, upgrade to the latest 3.4 SVN revision.

Mazin Mustafa

Thursday 01 July 2004 12:24:20 pm

Thank you. I just tested the fix and it worked for me also.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 19:10:10
Script start
Timing: Jan 18 2025 19:10:10
Module start 'layout'
Timing: Jan 18 2025 19:10:10
Module start 'content'
Timing: Jan 18 2025 19:10:11
Module end 'content'
Timing: Jan 18 2025 19:10:11
Script end

Main resources:

Total runtime1.0012 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.1484152.6406
Module start 'layout' 0.00710.0023 741.789139.4766
Module start 'content' 0.00950.9905 781.2656474.0234
Module end 'content' 0.99990.0013 1,255.28918.4609
Script end 1.0012  1,263.7500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.3381160.0002
Check MTime0.00130.1337160.0001
Mysql Total
Database connection0.00120.123110.0012
Mysqli_queries0.951995.0742570.0167
Looping result0.00060.0556550.0000
Template Total0.966896.620.4834
Template load0.00220.216620.0011
Template processing0.964696.342720.4823
Template load and register function0.00030.027010.0003
states
state_id_array0.00140.135610.0014
state_identifier_array0.00070.069120.0003
Override
Cache load0.00180.1797360.0000
Sytem overhead
Fetch class attribute can translate value0.00080.077820.0004
Fetch class attribute name0.00190.186430.0006
XML
Image XML parsing0.00030.034320.0002
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00060.0567100.0001
String conversion0.00000.000640.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 17
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs