Page 1 of 1

Error on Migrated Phoca Gallery From Joomla 2.5.x to 3.3.x

Posted: 03 Sep 2015, 06:11
by Suraphol
Hi,

I have followed the migration process as indicated in "https://www.phoca.cz/phocagallery/50-joo ... o-joomla-3". I have checked the content in the Joomla 3.3.x DB to contain the imported values in the jos_phocagallery_xxxx tables fine. I have already had a fresh installation of Phoca Gallery version 4.2.0. The Phoca Gallery component displays fine, with all the categories in place.

When I click on the menu item for my gallery (the menu item "Menu Item Type" set o "List of images (Category View). I always get the message:

404 - Category is unpublished or does not exist

With this stack trace:

Category is unpublished or does not exist

Call stack
# Function Location
1 JApplicationCms->execute() /home/puitakadmin/public_html/v3.puitakschool.org/index.php:40
2 JApplicationSite->doExecute() /home/puitakadmin/public_html/v3.puitakschool.org/libraries/cms/application/cms.php:251
3 JApplicationSite->dispatch() /home/puitakadmin/public_html/v3.puitakschool.org/libraries/cms/application/site.php:237
4 JComponentHelper::renderComponent() /home/puitakadmin/public_html/v3.puitakschool.org/libraries/cms/application/site.php:191
5 JComponentHelper::executeComponent() /home/puitakadmin/public_html/v3.puitakschool.org/libraries/cms/component/helper.php:332
6 require_once() /home/puitakadmin/public_html/v3.puitakschool.org/libraries/cms/component/helper.php:352
7 JControllerLegacy->execute() /home/puitakadmin/public_html/v3.puitakschool.org/components/com_phocagallery/phocagallery.php:56
8 PhocaGalleryController->display() /home/puitakadmin/public_html/v3.puitakschool.org/libraries/legacy/controller/legacy.php:730
9 JControllerLegacy->display() /home/puitakadmin/public_html/v3.puitakschool.org/components/com_phocagallery/controller.php:30
10 PhocaGalleryViewCategory->display() /home/puitakadmin/public_html/v3.puitakschool.org/libraries/legacy/controller/legacy.php:693
11 JError::raiseError() /home/puitakadmin/public_html/v3.puitakschool.org/components/com_phocagallery/views/category/view.html.php:40
12 JError::raise() /home/puitakadmin/public_html/v3.puitakschool.org/libraries/legacy/error/error.php:253



The temp web site is 'v3.puitakschool.org'. Do you know what may be causing this error? I really need to make this work a.s.a.p. Please help... :cry:


Thanks,
Suraphol

Re: Error on Migrated Phoca Gallery From Joomla 2.5.x to 3.3

Posted: 03 Sep 2015, 22:14
by Jan
Hi, when I see the menu link to the gallery, it is a list of images (category view), but there is ID = 0 which probably means, that there no category was select.

- try to select a category in menu link
- try to recreate menu link to gallery (you can try to create menu link to categories view, to know if Phoca Gallery is working OK)

v3.puitakschool.org/index.php?option=com_phocagallery&view=category&id=0&Itemid=216

Jan

Re: Error on Migrated Phoca Gallery From Joomla 2.5.x to 3.3

Posted: 04 Sep 2015, 19:11
by Suraphol
Thanks for your quick reply.

For my current 2.5x version web site, when clicking at the menu link, it displays a list of categories (no images) like:
category_1 category_2 category_3 (level 1)

I guess that is why no category was selected. It works fine in that version. In the migrated version (Joomla! 3.3.x), the same link does not work (I checked the imported phoca gallery data, it is the same as in the older Joomla DB tables).

For testing, I just created a 'wrapping level' category in my migrated site, so it now looks like:
all_galleries (level 1)
category_1 category_2 category_3 (level 2)

then, I set the menu link to point to 'all_galleries'. Now I can see the lower level categories (level 2) and access the images.

Really appreciate,
Suraphol

Re: Error on Migrated Phoca Gallery From Joomla 2.5.x to 3.3

Posted: 06 Sep 2015, 22:38
by Jan
Hi, now I can see the images Ok, the ID in url is zero (Null) which is wrong, when Phoca Gallery gets URL with ID null, it just cannot display any category as category null does not exist (mostly this is caused when the category is not selected in menu link to category) :idea:

Jan