Fatal error: Undefined class name 'ezcontentobjecttreenode'

Author Message

Stephan Staubli

Monday 06 March 2006 6:32:01 am

hy there

after installation with the ezpublish wizzard i get this error when i try to access the page:

<i>
<b>Fatal error</b>: Undefined class name 'ezcontentobjecttreenode' in /var/www/html/virtualdomains/10/ezpublish30.net/documents/ezpublish/kernel/common/eztreemenuoperator.php on line 193
Fatal error: eZ publish did not finish its request
</i>

we offer an automatic installation of ezpublish to the clients of our hosting software.
if a client orderd this installation, we unpack the ezpublish tar into directory ezpublish (thats the only thing we changed to the original tar, we renamed the folder ezpublish-3.7.3 to ezpublish) on his domain and use a perlscript to enter all data into <i>kickstart.ini</i> so that the wizard only shows the "welcome" and the "finish" screen.
because we dont want the adminuser to be named "admin" with pass "publish" we edit automatically the values in <i>share/db_data.dba</i> to look eg like this:
<i>
array (
0 => '14',
1 => 'nospam@ez.no',
2 => 'ad2638',
3 => 'd30d0e168b84b9bed20906f8d354fcb4',
4 => '1',
</i>

if you can give me any tips to solve this fatalerror-problem ill be very happy because i try to fix this now for 2 days! if i can solve this with ur help, this will bring a huge new number of ezpublish users to ur comunity.

thank you very much.

here my kickstart.ini (intro comments removed)

[email_settings]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## Type=<email-type>
## Type of email handler
## <email-type>:
## - mta - Use Sendmail/MTA
## - smtp - Use SMTP
#Type=mta
## Server=<hostname>
## Which server to use for SMTP
#Server=
## User=<username>
## Which user to use for SMTP
#User=
## Password=<hostname>
## Which password to use for SMTP
Password=VMg+_wt93P

[database_choice]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## Type=<database-system>
## Which database system to use
## <database-system>:
## - mysql - Use mysql
## - postgresql - Use postgresql
## other values are possible if provided by extension
Type=mysql

[database_init]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## Server=<hostname>
## Which hostname has the database server
Server=10.1.1.100
## Database=<database>
## Which database to use
Database=ezpublish_ad2639
## User=<username>
## Which user should be used in database
User=ad2639
## Server=<password>
## Which password should be used for user
Password=VMg+_wt93P
## Socket=<socket-path>
## Path to socket or empty for no socket
#Socket=

[language_options]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## Primary=<locale>
## The primary language for the site
Primary=eng-GB
## Languages[]=<locale>
## Additional languages
#Languages[]

[site_types]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## Sites[]=<identifier>
## Which site to install, identifier is taken from site package (ezpkg)
Sites[]
Sites[]=news

[site_packages]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## Packages[]=<identifier>
## Which additional package to install, identifier is taken from addon package (ezpkg)
Packages[]
Packages[]=gallery

[site_access]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## Access=<access-type>
## <access-type>:
## - url - Use url/path for matching
## - port - Use port for matching
## - hostname - Use hostname for matching
Access=url

[site_details]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## Title[<site-identifier>]=<string>
## The title to use for a given site-identifier
## if not supplied it uses the site type name
#Title[]
#Title[news]=My cool new site

## URL[<site-identifier>]=<url>
## The URL to use for a given site-identifier
## if not supplied it will generate it from the current url
#URL[]
#URL[news]=

## Access[<site-identifier>]=<string>
## The access name to use for user page
## if not supplied it will use site identifier
#Access[]
#Access[news]=news

## AdminAccess[<site-identifier>]=<string>
## The access name to use for admin page
## if not supplied it will use site identifier + _admin
#AdminAccess[]
AdminAccess[news]=news_admin

## AccessPort[<site-identifier>]=<number>
## The access port to use for user page
#AccessPort[]
#AccessPort[news]=8080

## AdminAccessPort[<site-identifier>]=<number>
## The access port to use for admin page
#AdminAccessPort[]
#AdminAccessPort[news]=8081

## AccessHostname[<site-identifier>]=<url>
## The access hostname to use for user page
#AccessHostname[]
#AccessHostname[news]=news.test.com

## AdminAccessHostname[<site-identifier>]=<url>
## The access hostname to use for admin page
#AdminAccessHostname[]
#AdminAccessHostname[news]=news-admin.test.com

## Database[<site-identifier>]=<databasename>
## The database name to use for site
#Database[]
#Database[news]=ezp35test

## DatabaseAction[<site-identifier>]=<action>
## What to do with the database, can be one of:
## <action>:
## - ignore
## Try to add entries without cleaning up
## - remove
## Clean up entries and add new ones
## - skip
## Do not insert database schema + data
#DatabaseAction[]
DatabaseAction[news]=ignore

[site_admin]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## FirstName=[string]
## The first name of the administrator user
FirstName=
## LastName=[string]
## The first name of the administrator user
LastName=
## Email=[string]
## The email address of the administrator user
Email=
## Password=[string]
## The password of the administrator user
Password=VMg+_wt93P

[security]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true

[registration]
## Continue=<true|false>
## Whether this step should continue after reading the data
Continue=true
## Comments=<string>
## Comment string to add to registration email
#Comments=
## Send=<boolean>
## Whether to send registration email or not
Send=false

Betsy Gamrat

Monday 06 March 2006 7:41:36 am

Add this line to the beginning of your script.

include_once( "kernel/classes/ezcontentobjecttreenode.php" );

Stephan Staubli

Tuesday 07 March 2006 12:03:10 am

thanks for your answer Betsy.

to which script should i add this line?
its an ezpublish script which comes up with this error when i try to access
www.domainname.tld/ezpublish/index.php
or ezpublish/index.php?/news

Stephan Staubli

Tuesday 07 March 2006 12:29:52 am

if i dont use the kickstart.ini and enter the data manually, it works...
but with kickstart.ini i get the error when i want to visit the page after the wizard.
strange

Stephan Staubli

Tuesday 07 March 2006 5:40:43 am

works now.

the only things i changed:
- provide an email adr for admin
- provide a database for Database[news]=

****CLOSE****

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.