Forums / Install & configuration / Error: eZDataType::loadAndRegisterType - Please help me sort this

Error: eZDataType::loadAndRegisterType - Please help me sort this

Author Message

Tim Dickinson

Saturday 14 August 2004 3:55:14 pm

Can someone please help me with this.

The problem seems really odd, and I just can't see, to work it out at all.
Most of my site now works again after upgrading from 3.2-1 to 3.4.1 (it has taken a few attempts ;)

That is templates work fine, links directory, download reviews (something I added myself), sitemap, search, etc... all work great. In fact the only thing that doesn't work are news/articles (and the folders they are in).

It doesn't make a difference which siteaccess I use for them, I have tried admin, standard, demo and my own (melodic), but none will show the articles.

I have got debug on, and everytime I go to an article page or an articles folder I get the following errors:

____________________________________________________________

Fatal error: Call to a member function on a non-object in /home/amelody/public_html/kernel/classes/ezcontentobjectattribute.php on line 767
Fatal error: eZ publish did not finish it's request

The execution of eZ publish was abruptly ended, the debug output is present below.

Warning: PHP Aug 14 2004 18:33:25
Undefined variable: navigationPartIdentifier in /home/amelody/public_html/kernel/classes/eznodeviewfunctions.php on line 69

Error: eZDataType::loadAndRegisterType Aug 14 2004 18:33:25
Datatype not found: , searched in these directories: kernel/classes/datatypes

Error: eZDataType::loadAndRegisterType Aug 14 2004 18:33:25
Datatype not found: , searched in these directories: kernel/classes/datatypes
____________________________________________________

<i>If it makes any difference, the only thing that I haven't managed to get to work in the update scripts is updatetranslations.php

which gives the following error (in debug):</i>
____________________________________________________

Error: (eZDataType::loadAndRegisterType)
Datatype not found: , searched in these directories: kernel/classes/datatypes
____________________________________________________

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Tim Dickinson

Saturday 14 August 2004 5:40:03 pm

Whoops - forget to add some info on my setup.

I'm running ezpublish with php as a CGI, and the patch from Bruce Morrison (which has been great) as I don't have CLI.

I'm running it on a shared linux box with:

PHP version 4.3.4
MySQL version 4.0.20-standard
cPanel Build 9.4.1-STABLE 65
Apache version 1.3.29 (Unix)

I did have it working fine with version 3.2-1, with the help of the cgi-patch.

Thanks in advance,

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

Tim Dickinson

Sunday 15 August 2004 5:09:31 am

Well, I've worked out that it all seems to be to do with the ezcontentobject_attribute table.

For the objects that work, the datatype_string field says ezxmltext, ezurl, ezstring, etc..., but the ones that don't work have a blank field.

I have found where the problem (for me lies), and that is in the dbupdate-3.2-4-to-3.3-1 sql update script.

In fact it is in this section:

create table ezcontent_attribute_tmp as select ezcontentobject_attribute.*, ezcontentclass_attribute.data_type_string from ezcontentobject_attribute, ezcontentclass_attribute where ezcontentobject_attribute.contentclassattribute_id=ezcontentclass_attribute.id and ezcontentclass_attribute.version=0;

delete from ezcontentobject_attribute;

alter table ezcontentobject_attribute add data_type_string varchar(50) not null;

insert into ezcontentobject_attribute select * from ezcontent_attribute_tmp;
drop table ezcontent_attribute_tmp;

Only problem is, I can'r get it to work, it keeps giving errors??
Any ideas?

Thanks,

Tim

http://www.AdBalance.com - Ad network news and reviews
http://www.DevPublisher.com - Website publisher guides, tools and news
http://www.AudioMelody.com - Make better music

K259

Friday 29 October 2004 2:39:40 am

I'll refer to this topic(because it's maybe the same bug): http://www.ez.no/community/forum/developer/fatal_error_ez_publish#msg61808

where I also get this error-message when debugging:
Warning: PHP Oct 29 2004 10:50:00
Undefined variable: navigationPartIdentifier in /kernel/classes/eznodeviewfunctions.php on line 69

This is the debug after the user tries to log in and get the fatal error and is not able to enter the ez publish admin-part.

eZ debug

Timing: Jan 19 2025 04:24:13
Script start
Timing: Jan 19 2025 04:24:13
Module start 'content'
Timing: Jan 19 2025 04:24:14
Module end 'content'
Timing: Jan 19 2025 04:24:14
Script end

Main resources:

Total runtime1.1366 sec
Peak memory usage4,096.0000 KB
Database Queries197

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0090 590.4609180.7891
Module start 'content' 0.00900.9496 771.2500567.4375
Module end 'content' 0.95860.1779 1,338.6875341.3438
Script end 1.1365  1,680.0313 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00490.4304210.0002
Check MTime0.00160.1431210.0001
Mysql Total
Database connection0.00090.080810.0009
Mysqli_queries1.042891.74671970.0053
Looping result0.00320.28101950.0000
Template Total1.101296.920.5506
Template load0.00250.218420.0012
Template processing1.098796.665320.5494
Template load and register function0.00030.023410.0003
states
state_id_array0.00070.063210.0007
state_identifier_array0.00210.182720.0010
Override
Cache load0.00210.1870630.0000
Sytem overhead
Fetch class attribute can translate value0.00310.269130.0010
Fetch class attribute name0.00150.130750.0003
XML
Image XML parsing0.00100.089930.0003
class_abstraction
Instantiating content class attribute0.00000.001570.0000
General
dbfile0.00230.1986270.0001
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
10content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 33
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs