admin login doesn't work - database problem

Author Message

Chris Green

Tuesday 30 January 2007 10:49:07 am

I just installed ezpublish version 3.90 and all appears to have gon OK..

I can log on to my site OK and edit pages etc. by logging in.

However I can't log in to the admin interface, I see an error at the top of the login screen that says:-

kernel::50
* No database connection could be made, the system might not behave properly.

Can anyone suggest what might be wrong, obviously the database is basically OK or the site wouldn't work at all. If anyone wants to take a look it's at http://home.isbd.net/ezpublish.

 

Steven E. Bailey

Wednesday 31 January 2007 3:41:11 am

Are you sure you are logging in to the admin interface using the correct siteaccess?

Check your ini files and make sure that the correct database info is in the appropriate siteaccess or override site.ini.append.php.

If you have the database info in your front end siteaccess but not the admin one, then this would happen. No idea why it would break on an install.

Certified eZPublish developer
http://ez.no/certification/verify/396111

Available for ezpublish troubleshooting, hosting and custom extension development: http://www.leidentech.com

Chris Green

Wednesday 31 January 2007 4:21:57 am

Yes, I was confused about my siteaccess.

It's not clear during the installation process but you seem to get as default when you install ezwebin_site and ezwebin_site_admin. I also seem to have (in my siteaccess subdirectory)
admin, eng and setup. eng and ezwebin_site seem identical, setup is empty, admin I'm not quite sure about.

I've read the section in the manual on siteaccess and I am a little bit less confused but it's not *totally* clear to me yet.

If I want to change the names for siteaccess can I just change the names of the subdirectories in /var/www/htdocs/ezpublish/settings/siteaccess? Can I safely remove the unwanted ones? It would seem to be sensible to have just the default (user) site access and the admin one.

Michael Maclean

Wednesday 31 January 2007 7:45:06 am

You can rename the siteaccesses if you want just by renaming the directories in settings/siteaccess/, though you will also want to edit the settings in settings/override/site.ini.append.php to match the new names - have a look particularly in the [SiteSettings] and [SiteAccessSettings] parts. You might also need to edit the anonymous user's role in the User Accounts section in the administration interface to allow login access to the new siteaccess names.

eZpedia community documentation project | http://ezpedia.org

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 22:32:34
Script start
Timing: Jan 18 2025 22:32:34
Module start 'layout'
Timing: Jan 18 2025 22:32:34
Module start 'content'
Timing: Jan 18 2025 22:32:35
Module end 'content'
Timing: Jan 18 2025 22:32:35
Script end

Main resources:

Total runtime1.0106 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0046 592.0156152.6406
Module start 'layout' 0.00460.0036 744.656339.4766
Module start 'content' 0.00821.0010 784.1328584.6563
Module end 'content' 1.00920.0013 1,368.789112.1250
Script end 1.0105  1,380.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.3263160.0002
Check MTime0.00130.1297160.0001
Mysql Total
Database connection0.00060.063510.0006
Mysqli_queries0.954694.4575620.0154
Looping result0.00060.0618600.0000
Template Total0.971996.220.4860
Template load0.00240.236720.0012
Template processing0.969595.935620.4847
Template load and register function0.00020.016910.0002
states
state_id_array0.00110.112410.0011
state_identifier_array0.00180.181820.0009
Override
Cache load0.00200.1974230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.057430.0002
Fetch class attribute name0.00100.095550.0002
XML
Image XML parsing0.00070.072230.0002
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00550.5396170.0003
String conversion0.00000.000740.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs