[solved] Invalid argument in phocagallery.php on line 618
Posted: 08 Jan 2009, 14:29
Hello!
I just been installed latest Phoca Gallery component and got error in frontend:
And this one in admin backend:
Here is the example on my demo polygon.
Any ideas?
System features:
Joomla 1.5.8 (legacy mode)
JoomFish 2.0 Stable (three languages are in use)
Database Version: 5.0.32-Debian_7etch6-log
Database Collation: utf8_general_ci
PHP Version: 5.2.0-8+etch13
Web Server: Apache/1.3.34 (Debian)
I just been installed latest Phoca Gallery component and got error in frontend:
Here is the code (foreach ($data as $key) is 618 line):Warning: Invalid argument supplied for foreach() in x:\home\test1.ru\www\components\com_phocagallery\helpers\phocagallery.php on line 618
Code: Select all
// Create tree of categories and subcategories - we need strings e.g. (first, first >> second, ...)
// text is name because of select
// value is id because of select
function CategoryTree($data, $tree, $id=0, $text='') {
foreach ($data as $key)
{
$show_text = $text . $key->text;
if ($key->parentid == $id)
{
Usage of the gallery impossible. A pity...Warning: Invalid argument supplied for foreach() in x:\home\test1.ru\www\administrator\components\com_phocagallery\helpers\phocagallery.php on line 1248
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in x:\home\test1.ru\www\libraries\joomla\database\database\mysql.php on line 342
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in x:\home\test1.ru\www\libraries\joomla\database\database\mysql.php on line 342
Here is the example on my demo polygon.
Any ideas?
System features:
Joomla 1.5.8 (legacy mode)
JoomFish 2.0 Stable (three languages are in use)
Database Version: 5.0.32-Debian_7etch6-log
Database Collation: utf8_general_ci
PHP Version: 5.2.0-8+etch13
Web Server: Apache/1.3.34 (Debian)