Offsets not working -> Object not available / reported bugs ..

Author Message

Jørgen Skogstad

Saturday 03 May 2003 11:25:17 pm

Kindest ..

It seems that I have run into the same problems as a few other people here. I see there are two reported bugs with respect to offsets;

http://www.ez.no/developer/ez_publish_3/bug_reports/slideshow_or_offset_wont_work_anymore
http://www.ez.no/developer/ez_publish_3/bug_reports/navigator_offset_page_commands_fail_object_not_available

Have anyone actually gotten this to work? I am working with 3.0.2 og Ez .. and this is as "always" an urgent fix.

Any comments from the Ez people?

Kindest,
Jørgen Skogstad

Jørgen Skogstad

Sunday 04 May 2003 6:12:46 am

Just a note .. I just downgraded to v3.0-1 and now the offset thing works. Something must have changed ..

.. anywyas; it seems that the database structure is the same between v3.0-1 and v3.0-2 .. so I will continue with the v3.0-1 for the time being until this bug has been fixed.

Just thought you guys wanted to know!

Sergiy Pushchin

Wednesday 07 May 2003 12:44:30 am

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

Adolfo Barragán

Thursday 08 May 2003 5:03:55 am

Ok, but...
How can I apply these changes?

Sergiy Pushchin

Friday 09 May 2003 1:15:53 am

Two ways. One is using 'patch' command in unix another is by ha nands.

You need to modify three files:
kernel/classes/ezcontentobject.php
go to line 1680
look for line down and modify the string
$languageCode = $Params['LanguageCode'];
to
$languageCode = $Params['Language'];

If you see in you should just modify line marked with '-' to line marked with '+'

kernel/content/view.php
$LanguageCode = $Params['LanguageCode'];
to
$LanguageCode = $Params['Language'];

kernel/content/module.php
"params" => array( "ViewMode", "NodeID", "LanguageCode" ),
to
"params" => array( "ViewMode", "NodeID" ),

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:40:35
Script start
Timing: Jan 18 2025 11:40:35
Module start 'layout'
Timing: Jan 18 2025 11:40:35
Module start 'content'
Timing: Jan 18 2025 11:40:37
Module end 'content'
Timing: Jan 18 2025 11:40:37
Script end

Main resources:

Total runtime1.5819 sec
Peak memory usage4,096.0000 KB
Database Queries65

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0071 589.2734152.6563
Module start 'layout' 0.00710.0038 741.929739.4922
Module start 'content' 0.01091.5692 781.4219585.3281
Module end 'content' 1.58010.0017 1,366.750016.1094
Script end 1.5818  1,382.8594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2083160.0002
Check MTime0.00130.0834160.0001
Mysql Total
Database connection0.00100.062110.0010
Mysqli_queries1.511195.5222650.0232
Looping result0.00070.0429630.0000
Template Total1.547597.820.7738
Template load0.00190.119120.0009
Template processing1.545697.707020.7728
Template load and register function0.00010.005810.0001
states
state_id_array0.00100.063010.0010
state_identifier_array0.00060.039320.0003
Override
Cache load0.00170.1071800.0000
Sytem overhead
Fetch class attribute can translate value0.00090.054230.0003
Fetch class attribute name0.00140.090170.0002
XML
Image XML parsing0.00120.074930.0004
class_abstraction
Instantiating content class attribute0.00000.001190.0000
General
dbfile0.00100.0649220.0000
String conversion0.00000.000740.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
8content/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