Broken site - mysql authentication failed?

Author Message

Cefn Hoile

Thursday 22 September 2005 3:53:20 am

A colleague just pointed out that the site at http://that.labs.bt.com has broken. It has been running for some time, but now I get

Fatal error: Call to a member function on a non-object in /var/www/html/that.labs.bt.com/ezpublish/kernel/common/eztreemenuoperator.php on line 180
Fatal error: eZ publish did not finish its request

I think this may be because the username and password that the scripts were using to access the mysql database could have been revoked or changed. Therefore any data requests are coming back empty, when they shouldn't.

How can I set the correct database config in ezpublish?

How can I verify that ezpublish has the correct database config?

I think this was originally configured by an interactive install, and since the index page won't load, I'm not sure now where to set this right.

When I try to run the cron jobs I get this...

/usr/local/php-cli/bin/php -C runcronjobs.php
Error initializing script: database error: Access denied for user: 'root@localhost' (Using password: YES).

...as if the username and password stored in settings/site.ini is not being accessed. I have verified the username, password and database name which are stored in the site.ini file by interactive login to mysql.

If there's a better approach - for example to just install the latest version over the current one (3.5.1) then I'll consider that too. But I suspect this could make things worse still if the current one is not properly configured.

Cefn Hoile

Thursday 22 September 2005 7:55:49 am

OK, I couldn't work out how to do it manually, but went through the following procedure which worked OK in the end.

index.php will take you through a setup sequence if you change CheckValidity in settings/override/site.ini.append to true.

This will then recreate the original interactive setup session when you next visit index.php and this sesson will prompt you for mysql mail and admin account information.

To get the site to function again I had to choose the same templating settings (in my case the 'forum' template), and this process then ended up writing mysql username and password information into settings/siteaccess/forum and settings/siteaccess/forum_admin
in files called site.ini.append.php

I suppose this was where the original values were, and could potentially have been edited, but I couldn't find that at the time - assumed it would be in some sitewide config.

One key thing to remember is to choose not to add any capabilities when you configure it, and to ask it to preserve data without adding any.

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 16:07:23
Script start
Timing: Jan 18 2025 16:07:23
Module start 'layout'
Timing: Jan 18 2025 16:07:23
Module start 'content'
Timing: Jan 18 2025 16:07:23
Module end 'content'
Timing: Jan 18 2025 16:07:23
Script end

Main resources:

Total runtime0.9516 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0048 589.6563152.6406
Module start 'layout' 0.00480.0028 742.296939.4766
Module start 'content' 0.00760.9423 781.7734430.6406
Module end 'content' 0.94990.0017 1,212.41418.1250
Script end 0.9516  1,220.5391 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.3708160.0002
Check MTime0.00140.1429160.0001
Mysql Total
Database connection0.00050.055110.0005
Mysqli_queries0.907495.3549520.0175
Looping result0.00090.0909500.0000
Template Total0.918096.520.4590
Template load0.00270.288320.0014
Template processing0.915296.175320.4576
Template load and register function0.00020.016510.0002
states
state_id_array0.00200.205510.0020
state_identifier_array0.00190.204120.0010
Override
Cache load0.00240.2544230.0001
Sytem overhead
Fetch class attribute can translate value0.00110.113410.0011
Fetch class attribute name0.00150.158520.0008
XML
Image XML parsing0.00010.010010.0001
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00100.1063100.0001
String conversion0.00000.000940.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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: 12
 Number of unique templates used: 5

Time used to render debug report: 0.0003 secs