Forums / Install & configuration / Fatal error: content-tools.php

Fatal error: content-tools.php

Author Message

Leszek Jakubowski

Friday 16 November 2007 3:50:26 pm

Fatal error: Call to a member function on a non-object in c:\ezpublish\ezpublish\var\storage\packages\eZ-systems\ezwebin_site\settings\content-tools.php on line 202
Fatal error: eZ Publish did not finish its request

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

This is an error I get from my eZpublish WinXP install (ezpublish-3.10.0_installer.exe) right after the "Registration" page of the setup guide.

function getNodeIdByName( $nodeNameParam, $contentClassIdParam = false )
{
	//TODO: this code was copied from another function, and may need some rewrite to make sense to a developer
	//init vars
	$returnVar = false;
	
	//build up the conditions
	$conditions = array( 'name' => $nodeNameParam );
	
	if ( $contentClassIdParam )
		array_merge( $conditions, array( 'contentclass_id' => $contentClassIdParam ) );
	
	addError( array("conditions"=>$conditions), false);
	//fetch the treenode to move
	$moveTheseContentObjects = eZContentObject::fetchList( true, $conditions, 0, 1 );
	addError( array("movethesecontentobjects"=>$moveTheseContentObjects), false);
	$returnVar = $moveTheseContentObjects[0]->mainNodeID(); //<-- line 202 is here

	return $returnVar;
}

The non-default options I chose during installation: main language Polish, secondary English (US), user path:"web" admin path: "adm", web interface installed, and the title changed...