Page 1 of 1

problem with list of category on phocagallery in administrator..

Posted: 28 Mar 2018, 06:28
by poonamtoonam
Hi sir,
Am using phocagallery 4.3.10
joomla version:3.8.5

i have issues with administrator=> phocagallery=>categories.
In category Not listing parent category, sub category, so i cannot create subcategory ..it also not listing in multiple add =>category in select category..
please help me last 12 day i have same problem ..

33000 image,,11000category..
administrator/components/com_phocagallery/views/phocagallerycs/ view.html.php

i edit this
// Limit the level of tree
if (!$maxLevel || ($maxLevel && $level < $maxLevel))
{
foreach ($data as $key)
{
$show_text = $text . $key->title;

static $iCT = 0;// All displayed items
}====>add this braces

sorry for my bad english

thanks,
regards..

Re: problem with list of category on phocagallery in administrator..

Posted: 30 Mar 2018, 10:57
by Jan
Hi, did you add some categories to system?

Jan

Re: problem with list of category on phocagallery in administrator..

Posted: 02 Apr 2018, 06:26
by poonamtoonam
Hi jan,
i can create new category but cant select parent catergory

thanks,
regards.

Re: problem with list of category on phocagallery in administrator..

Posted: 03 Apr 2018, 14:50
by Jan
Hmmm, testing now, on different servers, without any problems :idea:

Image

When you look on your server on errorLog, do you see any error there:
https://www.phoca.cz/documents/16-jooml ... rs-on-site

Jan

Re: problem with list of category on phocagallery in administrator..

Posted: 04 Apr 2018, 06:37
by poonamtoonam
When you look on your server on errorLog, do you see any error there:
https://www.phoca.cz/documents/16-jooml ... rs-on-site

Am not see any error on my error log sir :-(

Sir am also edit this line
administrator/components/com_phocagallery/libraries/phocagallery/html/category.php

this code am edit
public static function CategoryTreeOption($data, $tree, $id=0, $text='', $currentId) {

foreach ($data as $key) {
$show_text = $text . $key->text;


if ($key->parentid == $id && $currentId != $id && $currentId != $key->value) {
$tree[$key->value] = new JObject();
$tree[$key->value]->text = $show_text;
$tree[$key->value]->value = $key->value;
$tree = self::CategoryTreeOption($data, $tree, $key->value, $show_text . " - ", $currentId );

}
return($tree);
}=====> am move this
}

}
=========== orginal=======
}
}
return($tree);
}
}


regards
poonam

Re: problem with list of category on phocagallery in administrator..

Posted: 08 Apr 2018, 14:56
by Jan
Hmmm, this is really hard to say when the function is modified as I cannot say what can change there :idea:

Jan

Re: problem with list of category on phocagallery in administrator..

Posted: 17 Apr 2018, 11:35
by poonamtoonam
Hi,
Sorry for troubling you again. I changed the coding back to the original, the way it is as downloaded.
Now, when i run it , i am getting the following error

Fatal error: Maximum execution time of 30 seconds exceeded in /home/demo/public_html/administrator/components/com_phocagallery/views/phocagallerycs/view.html.php on line 173

I had also tried changing execution time to 90 secs but still the same error occurs.

Kindly advise,
thanks and regards

Re: problem with list of category on phocagallery in administrator..

Posted: 17 Apr 2018, 11:54
by christine
Hi,
poonamtoonam wrote: 17 Apr 2018, 11:35Fatal error: Maximum execution time of 30 seconds exceeded in /home/demo/public_html/administrator/components/com_phocagallery/views/phocagallerycs/view.html.php on line 173
could you check this please: https://www.codexworld.com/how-to/incre ... tion-time/
in addition maybe also: memory_limit = xxxM i.e. 128M

Kind regards
Christine

Re: problem with list of category on phocagallery in administrator..

Posted: 20 Apr 2018, 12:22
by poonamtoonam
hi, i have already increased the execution time to 330M
and have also increase memory_limit to 500M
but still the error occurs,
kindly advise,
thanks and regards
Poonam

Re: problem with list of category on phocagallery in administrator..

Posted: 22 Apr 2018, 14:47
by Jan
Hi, which error you get after the change? If still the same, seems like your changes in your server didn't work (check the server settings if the changes applied well on your server)

Jan