Forums / General / anyone else having problems with page offset commands?

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

eZ debug

Timing: Jan 18 2025 10:19:32
Script start
Timing: Jan 18 2025 10:19:32
Module start 'content'
Timing: Jan 18 2025 10:19:33
Module end 'content'
Timing: Jan 18 2025 10:19:33
Script end

Main resources:

Total runtime0.8029 sec
Peak memory usage4,096.0000 KB
Database Queries225

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.8516180.8203
Module start 'content' 0.00550.6662 768.6719821.5000
Module end 'content' 0.67170.1311 1,590.1719349.3125
Script end 0.8028  1,939.4844 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00390.4844210.0002
Check MTime0.00150.1836210.0001
Mysql Total
Database connection0.00080.100310.0008
Mysqli_queries0.700787.27522250.0031
Looping result0.00230.28212230.0000
Template Total0.776696.720.3883
Template load0.00220.278020.0011
Template processing0.774496.446120.3872
Template load and register function0.00030.037910.0003
states
state_id_array0.00160.201810.0016
state_identifier_array0.00100.119920.0005
Override
Cache load0.00190.2333860.0000
Sytem overhead
Fetch class attribute can translate value0.00170.213180.0002
Fetch class attribute name0.00150.1900140.0001
XML
Image XML parsing0.00410.509780.0005
class_abstraction
Instantiating content class attribute0.00000.0034150.0000
General
dbfile0.00710.8836460.0002
String conversion0.00000.000730.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
10content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
14content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
6content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 37
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs