RC2 - content unavailable

Author Message

Christoph Schneider

Friday 07 February 2003 4:35:26 am

I get the following error message when trying to create a new content:

Fatal error: Call to a member function on a non-object in d:\htdocs\ezpublish-2.9-7\kernel\content\browse.php on line 68
Fatal error: eZ publish did not finish it's request

The execution of eZ publish was abruptly ended, the debug output is present below.
(see also http://shop.ez.no/bug/bugview/1854/)

Also, when I open the user site, I get (Error / kernel(3)) "Object not available"

I have made a clean install (on a system where RC1 still runs without such problems). I am using a new database (MySQL, and it doesn't matter if I install the demo data or not).

However, I can for instance add new content classes without problems...

An idea as what the reason could be, anyone?

Christoph Schneider

Friday 07 February 2003 5:23:49 am

Additional info:

I have checked the code and found that
"function &fetch( $nodeID )" in class kernel/classes/ezcontentobjecttreenode.php
sets the $returnValue only to the database output, if there is exactly 1 item found:

if ( count( $nodeListArray ) == 1 )
{
$retNodeArray =& eZContentObjectTreeNode::makeObjectsArray( $nodeListArray );
$returnValue =& $retNodeArray[0];
}

Why is that? (The database query seems to fetch the "My folder" item 3 times, so that the count==3 although it's only one item actually.)
I changed the operation to
if ( count( $nodeListArray ) > 0 ) ...
and I could finally add a new content.

Martin Ulrich

Thursday 13 February 2003 10:05:58 am

I have exactly the same problem.
truetext@web.de

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

Christoph Schneider

Friday 14 February 2003 2:16:30 am

> I have exactly the same problem.
> truetext@web.de

I am not entirely sure if that's the reason but I wanted to test "multi-language install" and this option seems to show an error in the SQL query or the result handling.

Have a look at my second post in this thread for an explanation of what I mean: http://developer.ez.no/forum/message/14282/

I have now re-setup RC2 with only one language, patched as proposed and played with the users (couldn't do much there)/roles... and it works now. Sorry if I can't be more specific than that describing what has helped.

Martin Ulrich

Friday 14 February 2003 9:03:07 am

Tank you :-)
perhabs it caused by the translation. I need German translation

site.ini

works not (content unavailable):

[RegionalSettings]
Locale=ger-DE
HTTPLocale=
ContentObjectLocale=ger-DE
TextTranslation=enabled

works fine:

[RegionalSettings]
Locale=ger-DE
HTTPLocale=
ContentObjectLocale=eng-GB
TextTranslation=enabled

_______________________

http://artenic.de ARTENIC - Publishing mit allen Mitteln!

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 11:25:22
Script start
Timing: Jan 18 2025 11:25:22
Module start 'layout'
Timing: Jan 18 2025 11:25:22
Module start 'content'
Timing: Jan 18 2025 11:25:24
Module end 'content'
Timing: Jan 18 2025 11:25:24
Script end

Main resources:

Total runtime1.3331 sec
Peak memory usage4,096.0000 KB
Database Queries63

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0065 587.9297152.6250
Module start 'layout' 0.00650.0033 740.554739.4453
Module start 'content' 0.00981.3222 780.0000530.3516
Module end 'content' 1.33200.0011 1,310.351612.1641
Script end 1.3331  1,322.5156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.2409160.0002
Check MTime0.00140.1062160.0001
Mysql Total
Database connection0.00090.066210.0009
Mysqli_queries1.276795.7655630.0203
Looping result0.00060.0415610.0000
Template Total1.292797.020.6463
Template load0.00200.148420.0010
Template processing1.290796.816720.6453
Template load and register function0.00020.015610.0002
states
state_id_array0.00170.124410.0017
state_identifier_array0.00090.069220.0005
Override
Cache load0.00180.1321510.0000
Sytem overhead
Fetch class attribute can translate value0.00090.065820.0004
Fetch class attribute name0.00110.082950.0002
XML
Image XML parsing0.00050.036520.0002
class_abstraction
Instantiating content class attribute0.00000.000750.0000
General
dbfile0.00060.0431100.0001
String conversion0.00000.000840.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
12content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs