Share » Forums » Install & configuration » RC2 - content unavailable

RC2 - content unavailable

RC2 - content unavailable

Friday 07 February 2003 4:35:26 am - 4 replies

Author Message

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!

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu