1. jridgway
  2. Commercial Templates
  3. Sunday, 02 March 2014
  4.  Subscribe via email
I am running Calibra on Joomla 3.2.2 and trying to set up the Thumbs Gallery, and the image folder drop down list doesn't populate, with the following errors on the module tab.

Warning
JFolder: :folder: Path is not a folder. Path: /home/www/...DSimages

Warning: Invalid argument supplied for foreach() in /home/www/.../libraries/joomla/filesystem/folder.php on line 687

This is line 660 to 716 of the folders.php file - I've never changed this file.
/**
* Lists folder in format suitable for tree display.
*
* @param string $path The path of the folder to read.
* @param string $filter A filter for folder names.
* @param integer $maxLevel The maximum number of levels to recursively read, defaults to three.
* @param integer $level The current level, optional.
* @param integer $parent Unique identifier of the parent folder, if any.
*
* @return array Folders in the given folder.
*
* @since 11.1
*/
public static function listFolderTree($path, $filter, $maxLevel = 3, $level = 0, $parent = 0)
{
$dirs = array();

if ($level == 0)
{
$GLOBALS['JFolder_folder_tree_index'] = 0;
}

if ($level < $maxLevel)
{
$folders = self::folders($path, $filter);

// First path, index foldernames
foreach ($folders as $name)
{
$id = ++$GLOBALS['_JFolder_folder_tree_index'];
$fullName = JPath::clean($path . '/' . $name);
$dirs[] = array('id' => $id, 'parent' => $parent, 'name' => $name, 'fullname' => $fullName,
'relname' => str_replace(JPATH_ROOT, '', $fullName));
$dirs2 = self::listFolderTree($fullName, $filter, $maxLevel, $level + 1, $id);
$dirs = array_merge($dirs, $dirs2);
}
}

return $dirs;
}

/**
* Makes path name safe to use.
*
* @param string $path The full path to sanitise.
*
* @return string The sanitised string.
*
* @since 11.1
*/
public static function makeSafe($path)
{
$regex = array('#[^A-Za-z0-9_\\\/\(\)\[\]\{\}\#\$\^\+\.\'~`!@&=;,-]#');

return preg_replace($regex, '', $path);
}
}

So I've been digging around to see if I can understand this error without success.
I was running php 5.3 on the site, changed to 5.4 ... no change to the error.
Seems like it should be a simple problem, but it is escaping me.

btw ... thanks for the great templates! Can't wait to get a site to build on Virtuoso!!! The demo looks fantastic and I love the way it's so smooth in adjusting the width. Great work!
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

A slight issue with the module itself where the elements folder was not been called in the template XML.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 1
Accepted Answer Pending Moderation
0
Votes
Undo
Thanks for the quick response and fix!
Can you clarify what the problem was, or was it a bug in the module?
I hate to bother you for problems like this if its something I can solve myself.
Thanks again!!!!
  1. more than a month ago
  2. Commercial Templates
  3. # 2
Accepted Answer Pending Moderation
0
Votes
Undo
Hello

Could you try installing the attached update which should hopefully reolve the issue.

Ciarán
  1. more than a month ago
  2. Commercial Templates
  3. # 3
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!

Join Our Newsletter

* indicates required
We respect your privacy and do not tolerate spam and will never sell, rent, lease or give away your information (name, email, number, etc.) to any third party. Nor will we send you unsolicited email.
Joomla51 - Mullaghmore, Co. Sligo, Ireland
Joomla51.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by
Open Source Matters
the trademark holder in the United States and other countries.