Forums / Install & configuration / How to create a root folder?

How to create a root folder?

Author Message

Cristian G. L.

Tuesday 08 June 2004 9:32:51 am

Hi everyone!

I want to manage multiple sites in one eZ publish installation, each site with different database.
I created the new database and initialized it executing the scripts in /kernel/sql/mysql. Then, i maked two new siteaccess, one for user site and another for de admin site.
Now i can access to admin site but... i don't have root folder! I tried to make a new folder but when i selected "folder" and click in the "New" button, the system does nothing and continues showing the "Object is unavailable" error.

How can i create the root folder?

(Sorry for my poor english)

Thanks in advance

Cristian

Lazaro Ferreira

Tuesday 08 June 2004 10:10:55 am

Hi,

Have you clear all of the EZP cache, after creating the new siteaccess ?

Case yes, turn on debug output at settings/siteaccess/youradminsite/site.ini.append... and clear the cache

Take a look at debug output, you should get useful information

Lazaro

Lazaro
http://www.mzbusiness.com

Cristian G. L.

Wednesday 09 June 2004 12:29:37 am

Hi
I turned on the debug, and i got a lot of error related to a permission problem. After i solved that error, i got the following errors:

Error: eZContentObject::fetch()  	Jun 09 2004 09:18:52
Object not found

Error: eZFunctionHandler::execute 	Jun 09 2004 09:18:52
Function 'object_by_attribute' in module 'content' did not return a result value

Error: eZTemplate @ design/base/templates/pagelayout.tpl:35[16] 	Jun 09 2004 09:18:52
Cannot retrieve attribute of a NULL

The problem continues being what don't exist a root folder. When i try to create a folder, i get this errors:

Error: eZContentObject::fetch()  	Jun 09 2004 09:29:31
Object not found

Error: eZTemplate @ design/admin/templates/pagelayout.tpl:82[98] 	Jun 09 2004 09:29:31
Cannot retrieve attribute of a NULL

What can i do?

Bye

Cristian

Cristian G. L.

Wednesday 09 June 2004 12:34:30 am

Hi

This information could be useful. In the admin interface, i get the same error when i try to create <b>any new object</b>.

Bye

Cristian

Lazaro Ferreira

Thursday 10 June 2004 2:57:55 am

Hi,

have you solved the permission problem at all ?

if you can afford it, install EZP 3.4.0 stable release using the setup wizard , it is better troubleshotting your installation

Also, have you checked your MySQL and PHP error logs ?, I'm assuming that you are using a LAMP setup

Lazaro

 

Lazaro
http://www.mzbusiness.com

Paul Forsyth

Thursday 10 June 2004 3:08:44 am

I notice in the 3.4 settings files you can change the root node assignment. Look in settings/content.ini for this:

[NodeSettings]
# The node ID of the normal content tree
RootNode=2
# The node ID of the user tree
UserRootNode=5
# The node ID for the media tree
MediaRootNode=43
# The node ID for the setup tree
SetupRootNode=48

I haven't tried this out but it sounds like it may work.

paul

--
http://www.visionwt.com

Cristian G. L.

Thursday 10 June 2004 7:06:28 am

Hi

The permission problem (solved) haven't relation with root folder problem.
I am using eZ publish 3.4.
The problem isn't specify which is the root node, rather it doesn't exist and i don't know how create it. Now, i can't make any object.

Thanks to all. Bye.

Cristian

Cristian G. L.

Monday 14 June 2004 2:47:27 am

Hi

The problem was the default content locale. In the database, the locale of all object was "eng-GB" (because "cleandata.sql" set it in this way), but in my site.ini.append i have "esl-ES".
I changed changed all locales in the database executing the following SQL sentences:

UPDATE ezcontentobject_name
SET
 content_translation='esl-ES',
 real_translation='esl-ES'
WHERE
 content_translation='eng-GB' OR
 real_translation='eng-GB';
UPDATE ezcontentobject_attribute
SET
 language_code='esl-ES'
WHERE
 language_code='eng-GB';

Thanks

Cristian