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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 18 2025 11:41:12
Script start
Timing: Jan 18 2025 11:41:12
Module start 'layout'
Timing: Jan 18 2025 11:41:12
Module start 'content'
Timing: Jan 18 2025 11:41:13
Module end 'content'
Timing: Jan 18 2025 11:41:13
Script end

Main resources:

Total runtime0.8112 sec
Peak memory usage4,096.0000 KB
Database Queries82

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.3047152.6563
Module start 'layout' 0.00530.0043 741.960939.5078
Module start 'content' 0.00960.8001 781.4688783.2813
Module end 'content' 0.80970.0015 1,564.750020.0938
Script end 0.8112  1,584.8438 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4021160.0002
Check MTime0.00120.1539160.0001
Mysql Total
Database connection0.00070.091310.0007
Mysqli_queries0.732390.2666820.0089
Looping result0.00100.1271800.0000
Template Total0.777595.820.3887
Template load0.00190.237920.0010
Template processing0.775695.603320.3878
Template load and register function0.00030.035810.0003
states
state_id_array0.00120.152210.0012
state_identifier_array0.00150.180720.0007
Override
Cache load0.00180.2248800.0000
Sytem overhead
Fetch class attribute can translate value0.00080.098670.0001
Fetch class attribute name0.00140.1730110.0001
XML
Image XML parsing0.00210.254470.0003
class_abstraction
Instantiating content class attribute0.00000.0022110.0000
General
dbfile0.00110.1412280.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
8content/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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 30
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs