anyone else having problems with page offset commands?

Author Message

Dan Zembrosky

Tuesday 29 April 2003 4:34:56 pm

they seem to fail miserably and call line 120 in view.php as the source of the prob. Can't figure it out tho. I mean, it doesnt work even in the admin which means I cannot browse more than one page of content in a node.

Dan Zembrosky

Tuesday 29 April 2003 5:33:02 pm

I just did a fresh install with the XP installer on another machine. The Navigator simply does not work. When attempting to view any offset/# it returns that the object is unavailable. I will report this as a bug momentarily.

Jørgen Skogstad

Saturday 03 May 2003 11:27:27 pm

Yep .. I see this too .. it is on a more or less "clean" 3.0.2 install .. running on linux ..

Damn!

Kindest,
Jørgen

Jan Borsodi

Monday 05 May 2003 4:25:48 am

What are the url's you trying (both the original and the one with the offset), could you paste the path parts in the forum here?

What PHP version are you using?

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

Sergiy Pushchin

Wednesday 07 May 2003 12:42:27 am

Fix for this problem.
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" )
);

Menyhert Gretas

Wednesday 07 May 2003 1:48:32 am

I'm so glead that you finde for us this solution

Menyhert

Ekkehard Dörre

Thursday 08 May 2003 4:36:38 am

I made the changes in 302 and later in rev 2414
It is not working for me.
http://dummy.tld/index.php/admin/content/view/sitemap/2/
http://dummy.tld/index.php/admin/content/view/sitemap/2/offset/15

Linux gamma 2.4.20
Apache/1.3.26

<strong>solved:</strong>
I took the three 301 files and made the changes.
It works.

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Joel Finkel

Thursday 15 May 2003 9:33:06 pm

Can someone please tell me how to apply this fix.

Obviously this fix is being presented in a standard format, but I am unfamiliar with it. I assume it is a script for an editor of some sort.

Thank you for informing me of what this is. I am stuck in my attempt to learn how to use eZ Publish until I can fix this.

Joel

Ekkehard Dörre

Friday 16 May 2003 1:33:10 am

@ Joel: View the last posting in the tread:

http://ez.no/developer/ez_publish_3/forum/developer/offsets_not_working_object_not_available_reported_bugs_

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Joel Finkel

Friday 16 May 2003 9:08:40 am

Thanks, Ekke. Now I see that the lines to be changed are given within the context of the code. Very nice.

The changes work just fine.

Joel

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 30 2025 16:39:15
Script start
Timing: Jan 30 2025 16:39:15
Module start 'layout'
Timing: Jan 30 2025 16:39:15
Module start 'content'
Timing: Jan 30 2025 16:39:15
Module end 'content'
Timing: Jan 30 2025 16:39:15
Script end

Main resources:

Total runtime0.0250 sec
Peak memory usage8,192.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 588.2734151.2266
Module start 'layout' 0.00490.0047 739.5000220.7188
Module start 'content' 0.00960.0136 960.21881,009.8047
Module end 'content' 0.02320.0018 1,970.023445.9922
Script end 0.0249  2,016.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.003212.8391140.0002
Check MTime0.00114.4625140.0001
Mysql Total
Database connection0.00062.524110.0006
Mysqli_queries0.002510.050730.0008
Looping result0.00000.100210.0000
Template Total0.00135.210.0013
Template load0.00103.936910.0010
Template processing0.00031.256310.0003
Override
Cache load0.00072.812210.0007
General
dbfile0.00031.033180.0000
String conversion0.00000.035340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs