Hi guys,
Having a strange issue after upgrading Joomla from 3.6.2 to 3.6.4.
Upgraded Flexi 3.1.0-rc3 to 3.1.1.
When in the administrator and going to edit an item that is of any type which has an "image" field associated, Joomla fails with the error:
"[0] Class 'JFolder' not found"
Enabling the debugger gives the following:
Code:
Call stack
# Function Location
1 JApplicationCms->execute() .../administrator/index.php:51
2 JApplicationAdministrator->doExecute() .../libraries/cms/application/cms.php:261
3 JApplicationAdministrator->dispatch() .../libraries/cms/application/administrator.php:152
4 JComponentHelper::renderComponent() .../libraries/cms/application/administrator.php:98
5 JComponentHelper::executeComponent() .../libraries/cms/component/helper.php:380
6 require_once() .../libraries/cms/component/helper.php:405
7 require_once() .../administrator/components/com_flexicontent/flexicontent.php:22
8 JControllerLegacy->execute() .../administrator/components/com_flexicontent/admin.flexicontent.php:291
9 FlexicontentControllerItems->edit() .../libraries/legacy/controller/legacy.php:702
10 FlexicontentViewItem->display() .../administrator/components/com_flexicontent/controllers/items.php:1464
11 FLEXIUtilities::call_FC_Field_Func() .../administrator/components/com_flexicontent/views/item/view.html.php:372
12 plgFlexicontent_fieldsFieldgroup->onDisplayField() .../components/com_flexicontent/classes/flexicontent.helper.php:6154
13 FlexicontentFields::getFieldFormDisplay() .../plugins/flexicontent_fields/fieldgroup/fieldgroup.php:96
14 FLEXIUtilities::call_FC_Field_Func() .../components/com_flexicontent/classes/flexicontent.fields.php:456
15 plgFlexicontent_fieldsImage->onDisplayField() .../components/com_flexicontent/classes/flexicontent.helper.php:6154
Unfortunately after attempting to debug why this is happening I am lost as to why the plugins/flexicontent_fields/image/image.php isn't seeing the JFolder class.
Adding the following:
Code:
JLoader::register('JFile', JPATH_LIBRARIES . '/joomla/filesystem/file.php');
JLoader::register('JFolder', JPATH_LIBRARIES . '/joomla/filesystem/folder.php');
to the top of the file (after the _JEXEC or die check) registers the classes naturally, but I'm concerned about the deeper cause of the issue.
I see the way the plugins are being instantiated and called has switched around a little bit in administrator/components/com_flexicontent/flexicontent.helper.php (~6116 etc.)
Would appreciate any insight you can give!
Many thanks!