- Posts: 220
- Thank you received: 8
Peculiar: problem Menu categories listing and Phoca Guestbook
3 years 3 months ago #353445
by Udo
Peculiar: problem Menu categories listing and Phoca Guestbook was created by Udo
-- HikaShop version -- : 4.7.4
-- Joomla version -- : 4.3.3
-- PHP version -- : 8.0.25
-- Error-message(debug-mod must be tuned on) -- : 0 Call to undefined method PhocaguestbookRouter::getCategories()
Hi,
I have an peculiar problem after upgrading Joomla 3.10 to Joomla 4.3.2
The website also has a menu Phoca Guestbook. Clicking the Hikashop menu Categories listing results in a white page with this error:
I can't understand why the guestbook is called when opening the Hikashop menu.
The main category in the Hikashop menu is the parent of all subcategories. Remarkable: when selecting as main category one of the subcategories the problem is gone.!
Somehow only the parent category is triggering the guestbook.
The problem is gone after disabling SEF urls in the Global configuration.
The problem is also gone after disabling the guestbook.
Changing the template makes no difference
Please advise.
Udo
-- Joomla version -- : 4.3.3
-- PHP version -- : 8.0.25
-- Error-message(debug-mod must be tuned on) -- : 0 Call to undefined method PhocaguestbookRouter::getCategories()
Hi,
I have an peculiar problem after upgrading Joomla 3.10 to Joomla 4.3.2
The website also has a menu Phoca Guestbook. Clicking the Hikashop menu Categories listing results in a white page with this error:
Code:
0 Call to undefined method PhocaguestbookRouter::getCategories()
Call stack
# Function Location
1 () JROOT\components\com_phocaguestbook\router.php:70
2 PhocaguestbookRouter->getCategorySegment() JROOT\libraries\src\Component\Router\RouterView.php:118
3 Joomla\CMS\Component\Router\RouterView->getPath() JROOT\libraries\src\Component\Router\Rules\StandardRules.php:237
4 Joomla\CMS\Component\Router\Rules\StandardRules->build() JROOT\libraries\src\Component\Router\RouterView.php:229
5 Joomla\CMS\Component\Router\RouterView->build() JROOT\libraries\src\Router\SiteRouter.php:444
6 Joomla\CMS\Router\SiteRouter->buildSefRoute() JROOT\libraries\src\Router\Router.php:407
7 Joomla\CMS\Router\Router->processBuildRules() JROOT\libraries\src\Router\Router.php:194
8 Joomla\CMS\Router\Router->build() JROOT\libraries\src\Router\Route.php:150
9 Joomla\CMS\Router\Route::link() JROOT\libraries\src\Router\Route.php:99
10 Joomla\CMS\Router\Route::_() JROOT\plugins\system\sef\sef.php:108
11 PlgSystemSef->onAfterRender() JROOT\libraries\src\Plugin\CMSPlugin.php:284
12 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() JROOT\libraries\vendor\joomla\event\src\Dispatcher.php:486
13 Joomla\Event\Dispatcher->dispatch() JROOT\libraries\src\Application\EventAware.php:111
14 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT\libraries\src\Application\CMSApplication.php:1031
15 Joomla\CMS\Application\CMSApplication->render() JROOT\libraries\src\Application\SiteApplication.php:724
16 Joomla\CMS\Application\SiteApplication->render() JROOT\libraries\src\Application\CMSApplication.php:298
17 Joomla\CMS\Application\CMSApplication->execute() JROOT\includes\app.php:61
18 require_once() JROOT\index.php:32
I can't understand why the guestbook is called when opening the Hikashop menu.
The main category in the Hikashop menu is the parent of all subcategories. Remarkable: when selecting as main category one of the subcategories the problem is gone.!
Somehow only the parent category is triggering the guestbook.
The problem is gone after disabling SEF urls in the Global configuration.
The problem is also gone after disabling the guestbook.
Changing the template makes no difference
Please advise.
Udo
Please Log in or Create an account to join the conversation.
3 years 3 months ago #353446
by nicolas
Replied by nicolas on topic Peculiar: problem Menu categories listing and Phoca Guestbook
Hi,
Maybe you have a module from Phoca which requires creating a URL or something displayed on the page.
The error is in the router of Phocaguestbook and it looks like a bug in that router, so you'll have to check with the developers of Phoca.
Maybe you have a module from Phoca which requires creating a URL or something displayed on the page.
The error is in the router of Phocaguestbook and it looks like a bug in that router, so you'll have to check with the developers of Phoca.
The following user(s) said Thank You: Udo
Please Log in or Create an account to join the conversation.
3 years 3 months ago #353485
by Udo
Replied by Udo on topic Peculiar: problem Menu categories listing and Phoca Guestbook
Thanks, Nicolas.
Your suggestion to look for a module on the page led me to the solution.
I realized that 2 modules are loaded in the category description, and there's a link to the guestbook in this description.
That link turned out to be the cause. This link was not updated after the Joomla 4 upgrade of Phoca Guestbook.
As so often the solution of a problem is simple if you know were to look at...
Surprising that the mere existence of the wrong link caused a white page, without even activating it.
Thanks,
Udo
Your suggestion to look for a module on the page led me to the solution.
I realized that 2 modules are loaded in the category description, and there's a link to the guestbook in this description.
That link turned out to be the cause. This link was not updated after the Joomla 4 upgrade of Phoca Guestbook.
As so often the solution of a problem is simple if you know were to look at...
Surprising that the mere existence of the wrong link caused a white page, without even activating it.
Thanks,
Udo
Please Log in or Create an account to join the conversation.
3 years 3 months ago #353492
by nicolas
Replied by nicolas on topic Peculiar: problem Menu categories listing and Phoca Guestbook
Hi,
That's probably because the URL you added there is not SEFed and you've activated the setting of the Joomla SEF plugin to parse the HTML of the pages to automatically SEF URLs that are not SEFed. And in that case, the Joomla router will ask the corresponding extension for the SEFed version of the URL.
That's probably because the URL you added there is not SEFed and you've activated the setting of the Joomla SEF plugin to parse the HTML of the pages to automatically SEF URLs that are not SEFed. And in that case, the Joomla router will ask the corresponding extension for the SEFed version of the URL.
Please Log in or Create an account to join the conversation.
3 years 3 months ago #353512
by Udo
Replied by Udo on topic Peculiar: problem Menu categories listing and Phoca Guestbook
You're right, that link was non-SEF.
I didnot realize that this would have that effect.
Thanks for the information.
Udo
I didnot realize that this would have that effect.
Thanks for the information.
Udo
Please Log in or Create an account to join the conversation.
Time to create page: 0.122 seconds