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

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

Main resources:

Total runtime0.6960 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0067 588.0313152.6406
Module start 'layout' 0.00680.0031 740.671939.4766
Module start 'content' 0.00990.6843 780.1484596.5156
Module end 'content' 0.69420.0018 1,376.664116.1484
Script end 0.6960  1,392.8125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4726160.0002
Check MTime0.00130.1869160.0001
Mysql Total
Database connection0.00140.201710.0014
Mysqli_queries0.624089.6493740.0084
Looping result0.00070.1052720.0000
Template Total0.658694.620.3293
Template load0.00210.297420.0010
Template processing0.656594.322020.3282
Template load and register function0.00020.032010.0002
states
state_id_array0.00160.235710.0016
state_identifier_array0.00210.299420.0010
Override
Cache load0.00190.2682600.0000
Sytem overhead
Fetch class attribute can translate value0.00080.115230.0003
Fetch class attribute name0.00110.154880.0001
XML
Image XML parsing0.00030.049630.0001
class_abstraction
Instantiating content class attribute0.00000.002180.0000
General
dbfile0.00070.1069100.0001
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
8content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
16content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 35
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs