CMS MADE SIMPLE FORGE

Gallery

 

[#10866] jsposition

avatar
Created By: Matt Hornsby (DIGI3) (DIGI3)
Date Submitted: Sat Jan 30 17:28:22 -0500 2016

Assigned To: Jos (josvd)
Version: 2.1
CMSMS Version: 2.1.1
Severity: None
Resolution: Fixed
State: Closed
Summary:
jsposition
Detailed Description:
Since upgrading to 2.1, getting the following error in the log:
PHP Notice:  Undefined index: jsposition in
[path]/modules/Gallery/action.default.php on line 389

PHP is version 5.5.31


History

Comments
avatar
Date: 2016-03-15 17:37
Posted By: Jos (josvd)

Sorry I can't reproduce.
      
avatar
Date: 2016-03-25 04:34
Posted By: Ruud van der Velden (ruudvdvelden)

Jos, please have a look at: class.Gallery_utils.php

public static function Getgalleryinfo($path) 

Line 138: the query does not include the jsposition from the template table. 

In some circumstances this is the only query used to retrieve template
properties (Gallery tag WITHOUT use of 'template' parameter for a gallery that
does have a default template configured).

I guess adding gt.jsposition to the SELECT statement could fix this (not
tested).

A case where this seems reproduced:
http://forum.cmsmadesimple.org/viewtopic.php?f=13&t=74565
      
avatar
Date: 2016-03-25 14:17
Posted By: Jos (josvd)

fixed in version 2.1.3
      
Updates

Updated: 2016-03-25 14:17
resolution_id: 10 => 7
state: Open => Closed

Updated: 2016-03-15 17:37
resolution_id: => 10
severity_id: 3 => 12
assigned_to_id: 100 => 11752