Forums / Setup & design / 3.4.1 and MatchOrder=host problem

3.4.1 and MatchOrder=host problem

Author Message

Nicolas Heiringhoff

Tuesday 07 September 2004 3:16:02 am

Hello everybody,

we have an eZ Publish 3.3.5 installation which runs multiple sites using the MatchOrder=host access. We now have migrated all the sites from the 3.3.5 installation to an 3.4.1 installation on the same linux/apache server to use the new features of 3.4.1. Everything is fine so far, exept that we can not access the sites via MatchOrder=host but only by MatchOrder=uri. We can not figure out where the problem is. Switching from MatchOrder=host to MatchOrder=uri is no problem under 3.3.5 but it does not work for us under 3.4.1.

We get the followong error message:
"kernel 50 error, no database connection could be made"

Has anybody perhaps the same problem and a solution ;-) ?

http://www.heiringhoff.de

Ole Morten Halvorsen

Tuesday 07 September 2004 5:34:04 am

Hi,

Seems like eZ publish cant connect to the database. Check your database settings. Do you have your database settings in <i>settings/override/site.ini.append</i> or <i>settings/siteaccess/my_siteaccess/site.ini.append</i>?

Could you post your HostMatchMapItems from <i>settings/override/site.ini.append</i>?

Check out these threads:
http://ez.no/community/forum/install_configuration/database_would_not_accept_the_connection
http://ez.no/community/forum/install_configuration/kernel_error_50

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Nicolas Heiringhoff

Tuesday 07 September 2004 5:56:01 am

Hi Ole,

we have the database settings in <i>settings/siteaccess/my_siteaccess/site.ini.append</i>

the HostMatchMapItems from <i>settings/override/site.ini.append</i> are the following:

MatchOrder=host
HostMatchType=map

HostMatchMapItems[]=faktorzwei.iddisweb.iddis.de;faktorzwei
HostMatchMapItems[]=www.faktorzwei.iddisweb.iddis.de;faktorzwei
HostMatchMapItems[]=admin.faktorzwei.iddisweb.iddis.de;faktorzwei_admin
HostMatchMapItems[]=iddisweb.iddis.de;iddisweb
HostMatchMapItems[]=www.iddisweb.iddis.de;iddisweb
HostMatchMapItems[]=admin.iddisweb.iddis.de;iddisweb_admin
HostMatchMapItems[]=ralf.iddis.de;ralf
HostMatchMapItems[]=www.ralf.iddis.de;ralf
HostMatchMapItems[]=admin.ralf.iddis.de;ralf_admin
HostMatchMapItems[]=nico.iddis.de;nico
HostMatchMapItems[]=www.nico.iddis.de;nico
HostMatchMapItems[]=admin.nico.iddis.de;nico_admin

I post the other settings aswell:

[SiteSettings]
DefaultAccess=
SiteList[]
SiteList[]=news
SiteList[]=ralf
SiteList[]=nico
SiteList[]=faktorzwei
SiteList[]=iddis

[SiteAccessSettings]
CheckValidity=false
AvailableSiteAccessList[]
AvailableSiteAccessList[]=news
AvailableSiteAccessList[]=news_admin
AvailableSiteAccessList[]=ralf
AvailableSiteAccessList[]=ralf_admin
AvailableSiteAccessList[]=nico
AvailableSiteAccessList[]=nico_admin
AvailableSiteAccessList[]=faktorzwei
AvailableSiteAccessList[]=faktorzwei_admin
AvailableSiteAccessList[]=iddis
AvailableSiteAccessList[]=iddis_admin

thank you,
Nico

http://www.heiringhoff.de

Ole Morten Halvorsen

Tuesday 07 September 2004 6:23:05 am

Try turning on debug and siteaccess debug.

settings/override/site.ini.append:
[DebugSettings]
DebugOutput=enabled
[SiteAccessSettings]
DebugAccess=enabled
DebugExtraAccess=enabled

Look for any warnings/errors in the debug output.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Nicolas Heiringhoff

Tuesday 07 September 2004 7:05:41 am

We have put the debug-enable-code in the settings/override/site.ini.append
but unfortunately we do not get any debug code. When we switch to MatchOrder=uri we see the debug output

All we get is

kernel (50)

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

http://www.heiringhoff.de

eZ debug

Timing: Jan 18 2025 19:04:17
Script start
Timing: Jan 18 2025 19:04:17
Module start 'content'
Timing: Jan 18 2025 19:04:18
Module end 'content'
Timing: Jan 18 2025 19:04:18
Script end

Main resources:

Total runtime0.8960 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 588.8516180.8281
Module start 'content' 0.00710.7193 769.6797582.3828
Module end 'content' 0.72640.1695 1,352.0625341.3984
Script end 0.8959  1,693.4609 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00470.5252210.0002
Check MTime0.00200.2189210.0001
Mysql Total
Database connection0.00100.110510.0010
Mysqli_queries0.792188.41162000.0040
Looping result0.00210.23961980.0000
Template Total0.859695.920.4298
Template load0.00220.241220.0011
Template processing0.857495.698520.4287
Template load and register function0.00010.010910.0001
states
state_id_array0.00140.156510.0014
state_identifier_array0.00220.248420.0011
Override
Cache load0.00190.2137720.0000
Sytem overhead
Fetch class attribute can translate value0.00160.180230.0005
Fetch class attribute name0.00240.271660.0004
XML
Image XML parsing0.00090.095330.0003
class_abstraction
Instantiating content class attribute0.00000.002380.0000
General
dbfile0.00570.6413270.0002
String conversion0.00000.000630.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
13content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 32
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs