Mike Baker
|
Tuesday 29 April 2003 2:34:52 am
I am using ezp 3.1, installed with no demo data. I have been adding my folder structure, but can't get a display of any page in the sitemap other than page 1. When I try to (by clicking "next" or "2") I get kernel error 3 and "no object available". Also, the drop down list of objects in the top left corner by the "new" button is now empty, although I didn't think it used to be. The drop down list by the "create here" button is populated with my classes. Help!
|
Geoff Burke
|
Tuesday 06 May 2003 11:30:22 am
I get the same. eZ Debug says 'Undefined index: object in /opt/ezpublish/sites/default/kernel/content/view.php on line 120 and that's where it dies. line 120 reads: $object = $operationalResult [ 'object' ]; Can anyone take that further? Geoff
|
Marco Zinn
|
Tuesday 06 May 2003 12:48:32 pm
Hi Folks,
stop it ;)
It's a bug in 3.0.2, I reported it last weekend. There seems to be a bug in the offset function, thus, just the first page of sitemap/slideshow will work.
This was working in 3.0.1, if downgrading (temporarly) is an option for you.
Hope that helps. http://ez.no/developer/ez_publish_3/bug_reports/slideshow_or_offset_wont_work_anymore
Marco
http://www.hyperroad-design.com
|
Sergiy Pushchin
|
Wednesday 07 May 2003 12:39:18 am
Here is the fix for that bug.
Index: kernel/classes/ezcontentobject.php
===================================================================
--- kernel/classes/ezcontentobject.php (revision 2412)
+++ kernel/classes/ezcontentobject.php (working copy)
@@ -1680,7 +1680,7 @@
include_once( 'kernel/classes/datatypes/ezuser/ezuser.php' );
include_once( 'kernel/classes/ezuserdiscountrule.php' );
$user =& eZUser::currentUser();
- $languageCode = $Params['LanguageCode'];
+ $languageCode = $Params['Language'];
$language = $languageCode;
if ( $language == '' )
$language = eZContentObject::defaultLanguage();
Index: kernel/content/view.php
===================================================================
--- kernel/content/view.php (revision 2412)
+++ kernel/content/view.php (working copy)
@@ -48,7 +48,7 @@
$ViewMode = $Params['ViewMode'];
$NodeID = $Params['NodeID'];
$Module =& $Params['Module'];
-$LanguageCode = $Params['LanguageCode'];
+$LanguageCode = $Params['Language']; $Offset = $Params['Offset'];
if ( !is_numeric( $Offset ) )
Index: kernel/content/module.php
===================================================================
--- kernel/content/module.php (revision 2412)
+++ kernel/content/module.php (working copy)
@@ -75,7 +75,7 @@
"functions" => array( 'read' ),
"default_navigation_part" => 'ezcontentnavigationpart',
"script" => "view.php",
- "params" => array( "ViewMode", "NodeID", "LanguageCode" ),
+ "params" => array( "ViewMode", "NodeID" ),
"unordered_params" => array( "language" => "Language",
"offset" => "Offset" ) );
|