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.