Forums / Install & configuration / RC2 - content unavailable

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!

eZ debug

Timing: Jan 18 2025 11:27:07
Script start
Timing: Jan 18 2025 11:27:07
Module start 'content'
Timing: Jan 18 2025 11:27:07
Module end 'content'
Timing: Jan 18 2025 11:27:08
Script end

Main resources:

Total runtime0.9510 sec
Peak memory usage4,096.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 588.8438180.8359
Module start 'content' 0.00700.7994 769.6797535.4297
Module end 'content' 0.80640.1445 1,305.1094338.1250
Script end 0.9509  1,643.2344 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00440.4647210.0002
Check MTime0.00160.1652210.0001
Mysql Total
Database connection0.00080.084510.0008
Mysqli_queries0.868191.28222000.0043
Looping result0.00200.20631980.0000
Template Total0.922297.020.4611
Template load0.00250.259820.0012
Template processing0.919796.707520.4599
Template load and register function0.00020.022910.0002
states
state_id_array0.00090.098010.0009
state_identifier_array0.00140.151920.0007
Override
Cache load0.00210.2197510.0000
Sytem overhead
Fetch class attribute can translate value0.00180.189030.0006
Fetch class attribute name0.00120.121450.0002
XML
Image XML parsing0.00050.054130.0002
class_abstraction
Instantiating content class attribute0.00000.000950.0000
General
dbfile0.00480.5039210.0002
String conversion0.00000.000630.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 29
 Number of unique templates used: 5

Time used to render debug report: 0.0002 secs