problem with list of category on phocagallery in administrator..

Phoca Gallery - image gallery extension
poonamtoonam
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Mar 2018, 06:31

problem with list of category on phocagallery in administrator..

Post 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..
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hi, did you add some categories to system?

Jan
If you find Phoca extensions useful, please support the project
poonamtoonam
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Mar 2018, 06:31

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

Post by poonamtoonam »

Hi jan,
i can create new category but cant select parent catergory

thanks,
regards.
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
poonamtoonam
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Mar 2018, 06:31

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

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post by Jan »

Hmmm, this is really hard to say when the function is modified as I cannot say what can change there :idea:

Jan
If you find Phoca extensions useful, please support the project
poonamtoonam
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Mar 2018, 06:31

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

Post 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
christine
Phoca Hero
Phoca Hero
Posts: 2725
Joined: 28 Nov 2010, 17:20

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

Post 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
poonamtoonam
Phoca Newbie
Phoca Newbie
Posts: 5
Joined: 17 Mar 2018, 06:31

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

Post 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
User avatar
Jan
Phoca Hero
Phoca Hero
Posts: 47810
Joined: 10 Nov 2007, 18:23
Location: Czech Republic
Contact:

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

Post 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
If you find Phoca extensions useful, please support the project
Post Reply