kernel(50) - error

Author Message

Paolo Tramontani

Tuesday 02 September 2003 9:55:21 am

Hallo,
I downloaded the 3.2 beta 1 with the whole win2k installer
I installed the packet as is.
Then I followed instructions, I choosed the corporate layout and I renamed site in "softone" and site admin in "softone_admin".
I completed the setup and all goes well.
Then sometimes when I acceed (http://localhost/index.php/softone) I got the admin page with the login form preceeded by
"Kernel(50)
No database connection could be made, the system might not behave properly"

From now on the message appear everytime I try the connection.

I tried to connect to the database with mysql-front and all goes well (user: "root", password: "")
I tried to conncet via php page directly with
$db = @mysql_connect("localhost","root","");
mysql_select_db("publish", $db);
and all goes well...

Where can the error be?

Thanks

Paul Borgermans

Tuesday 02 September 2003 11:54:48 am

Look into the settings/override

and make sure your new site access is available (do it like its doe for admin/user in site.ini).

Do you have the correct database settings in
settings/softone/site.ini.append?

You may want to put the datbase configs in
settings/override/site.ini.append.php if you are using only one database.

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paolo Tramontani

Wednesday 03 September 2003 1:33:18 am

Hi Paul, thanks for your answer.

I found the problem:
files
settings\siteaccess\softone\site.ini.append
and
settings\siteaccess\softone_admin\site.ini.append
missed all crlf characters: it means that all settings lines was merged in a unique line, making impossible to distinguish any single option or setting.

I opened these files with the notepad and I inserted manually a crlf at the end of each line and now all goes well.

The question is:
1. these files was automatically generated by the setup and was correct (since I had a correct access to both the sites in my first access).
2. I never opened this files, so it was not a fault of some windows editor.
-> 3. Perhaps some internal procedure have opened these files during normal navigation and saved or wrongly generated them.

Note that I was looking at the tutorial published by Rob Purser on SitePoint (eZ publish 3.1: Take It For A Spin). So my actions was: I created the folder mydesign in settings/siteaccess; I created the file site.ini.append in this folder with the content described in the tutorial; I added the line "AvailableSiteAccessList[]=mydesign" in the settings\site.ini file; I created the mydesign/override/templates directories in the design directory... but at this point the access to the normal softone site was impossible (error kernel(50))...

Hope this help you to understand what can have caused the problem.

Jan Borsodi

Wednesday 03 September 2003 1:37:17 am

The behaviour of opening files on Windows was changed in one of the latest PHP versions, I'll do some testing of this before the final 3.2 version. Hopefully this is just some changes to the various fopens we use.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

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

Main resources:

Total runtime0.5544 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.0047 589.3359152.6250
Module start 'layout' 0.00470.0026 741.960939.4453
Module start 'content' 0.00730.5458 781.4063596.7266
Module end 'content' 0.55310.0013 1,378.132812.1719
Script end 0.5544  1,390.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5870160.0002
Check MTime0.00120.2226160.0001
Mysql Total
Database connection0.00060.103510.0006
Mysqli_queries0.499390.0613620.0081
Looping result0.00060.1086600.0000
Template Total0.526895.020.2634
Template load0.00220.391420.0011
Template processing0.524694.616020.2623
Template load and register function0.00020.027410.0002
states
state_id_array0.00120.216410.0012
state_identifier_array0.00090.162320.0005
Override
Cache load0.00190.3417470.0000
Sytem overhead
Fetch class attribute can translate value0.00040.080130.0001
Fetch class attribute name0.00120.219560.0002
XML
Image XML parsing0.00110.204430.0004
class_abstraction
Instantiating content class attribute0.00000.002460.0000
General
dbfile0.00080.1515240.0000
String conversion0.00000.001340.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/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/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: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs