CMS MADE SIMPLE FORGE

CMS Made Simple Core

 

[#11538] Filepicker fatal error when double clicking subdirectory

avatar
Created By: stephen cooper (scooper)
Date Submitted: Mon Aug 14 13:42:46 -0400 2017

Assigned To:
Version: 2.2.2
CMSMS Version: 2.2.2
Severity: Minor
Resolution: Fixed
State: Closed
Summary:
Filepicker fatal error when double clicking subdirectory
Detailed Description:
This may in part be down to my slow cloud server - but I can repeat it
consistently across various sites:

Open an instance of the Filepicker module - using one from the Options tab of a
standard Content item will do.
Browse to a directory containing sub-directories.
Double click on a sub-directory as fast as you can. 
Filepicker fails with an error:

Fatal error: Uncaught LogicException: Invalid path_a passed to
FilePicker\PathAssistant::to_relative_sub: in
/var/sites/h/hwh3.co.uk/public_html/modules/FilePicker/lib/class.PathAssistant.php:40
Stack trace: #0
/var/sites/h/hwh3.co.uk/public_html/modules/FilePicker/lib/class.PathAssistant.php(71):
FilePicker\PathAssistant->to_relative_sub(false, '/var/sites/h/hw...') #1
/var/sites/h/hwh3.co.uk/public_html/modules/FilePicker/action.filepicker.php(70):
FilePicker\PathAssistant->to_relative('/var/sites/h/hw...') #2
/var/sites/h/hwh3.co.uk/public_html/lib/classes/class.CMSModule.php(1415):
include('/var/sites/h/hw...') #3
/var/sites/h/hwh3.co.uk/public_html/lib/classes/class.CMSModule.php(1489):
CMSModule->DoAction('filepicker', 'm1_', Array, '') #4
/var/sites/h/hwh3.co.uk/public_html/admin/moduleinterface.php(110):
CMSModule->DoActionBase('filepicker', 'm1_', Array, '', Object(Smarty_CMS)) #5
{main} thrown in
/var/sites/h/hwh3.co.uk/public_html/modules/FilePicker/lib/class.PathAssistant.php
on line 40

Close the modal window with the error in and reopen the Filepicker - you'll now
be in the sub-dir you tried to open.
You can navigate happily through the sub directories if you do a single click
and wait for the page to load.

I'm assuming this is some kind of race condition - but you'll have a better idea
than me I'm sure.

Happy to provide test login if you can't repeat. 

s.


History

Comments
avatar
Date: 2017-10-01 13:36
Posted By: Robert Campbell (calguy1000)

fixed in svn thanks
      
Updates

Updated: 2017-11-25 12:29
state: Open => Closed

Updated: 2017-10-01 13:36
resolution_id: => 7