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.