Forums / Setup & design / Admin sitemap - unable to get more than 1st page of objects

Admin sitemap - unable to get more than 1st page of objects

Author Message

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!

Lance Leger

Tuesday 29 April 2003 5:20:40 pm

Mike:

I'm having the same problem, not sure if it was just me.. Let me know
if you find a solution.

Thanks!

jonathan howes

Tuesday 29 April 2003 9:42:43 pm

Hi,

I am having similar problem - I thought it had something to do with the virtual host settings in apache and Ez Publish but it does not - are you using EZ Online? -I am trying to find a solution now.

Jonathan

jonathan howes

Tuesday 29 April 2003 10:19:24 pm

I have rebuilt my web server to version 3.01 (I had done a fresh install to 3.02) and the site map problem is gone.

I then deleted 3.01 and went back to 3.02 (with a new database of demo data) and sitemap problem again.

Im at a loss

jonathan

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" )
);

Hugo Gallo

Wednesday 15 October 2003 10:04:03 am

Can you explain exactly how to implement this bug fix? For example, where does one place all this content on the page? Are you to write over anything? Or just paste it all at the end? Might there be an explanation as to how to "read" or implement bug fixes correctly when viewed in this format? Any help would be great.