Perhaps a simple question, but I get stuck and need your support.
The guestbook worked fine.
but now I get this red flagged error:
0 - Call to undefined method PhocaguestbookRouter::getCategories()
(on url: https://www.musicorda.nl/joomla/index.php/wie-bent-u)
Could this be due to the fact that I am on Joomla 4.4.8 and PHOCA Guestbook is on release 5.0 ?
Many thanks in advance.
Greetings Foleor
Error getCategories()
- Jan
- Phoca Hero
- Posts: 48402
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Error getCategories()
Hi, please enable debug mode to see whole error message including trace. Usually extension with version 5 should work on Joomla 4 but the guestbook included some Joomla core part (categories) so it is possible that there can be some conflict in Joomla core.
Jan
Jan
If you find Phoca extensions useful, please support the project
-
- Phoca Member
- Posts: 23
- Joined: 18 Nov 2011, 11:20
Re: Error getCategories()
Thanks for responding Jan,
Sorry I can't signup to Imgur (receive no code on email), so I dropped the text format.
Is this the debug info you are looking for?
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
Regards, Foleor
Sorry I can't signup to Imgur (receive no code on email), so I dropped the text format.
Is this the debug info you are looking for?
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
Regards, Foleor
-
- Phoca Hero
- Posts: 2819
- Joined: 28 Nov 2010, 17:20
Re: Error getCategories()
Hi,
a) I don't think you've done a pg migration from Joomla 3 to Joomla 4 (?)
https://www.phoca.cz/documentation/86-j ... o-joomla-4
b) The php version is also too low
c) I also see a problem with the template. It's very old (rhuk_milkyway from Joomla 1.5)
Switch to the standard template: cassiopeia (you should do that when migrating to Joomla 4).
You would then of course have to check/activate positions etc.
Then check again to see if there are any error messages.
Any (other) extensions should also be compatible with Joomla 4.
More informations, possible from Jan
Kind regards
Christine
Yes, that's great with the text.
a) I don't think you've done a pg migration from Joomla 3 to Joomla 4 (?)
https://www.phoca.cz/documentation/86-j ... o-joomla-4
b) The php version is also too low
c) I also see a problem with the template. It's very old (rhuk_milkyway from Joomla 1.5)
Switch to the standard template: cassiopeia (you should do that when migrating to Joomla 4).
You would then of course have to check/activate positions etc.
Then check again to see if there are any error messages.
Any (other) extensions should also be compatible with Joomla 4.
More informations, possible from Jan
Kind regards
Christine
-
- Phoca Member
- Posts: 23
- Joined: 18 Nov 2011, 11:20
Re: Error getCategories()
Thanks a lot Christine,
a) In my opinion I really performed a migration to J4 some time ago. As stated above I am on 4.4.8 (or at least expect to have it, as shown in my current control panel) Or do you see any suspicious flaws?
The very special way of migrating Guestbook to J4, as I read in the linked document, is quite new for me.
And since my Joomla is on 4.4.8 I have no clue if this still would work? Keep in mind my Guestbook component is already on 5.0!
Perhaps even better to fresh install the latest component version?
b) Yes, the PHP is low, Joomla suggests 8.1 now. I asked my provider to migrate for some earlier.
c) With the exception of the Guestbook, the site was and is still working fine on (yes, an old) rhuk_milkyway template.
So avoiding any riscs, I didn't see any purpose of leaving rhuk_milkyway.
Thanks for your support, Foleor
a) In my opinion I really performed a migration to J4 some time ago. As stated above I am on 4.4.8 (or at least expect to have it, as shown in my current control panel) Or do you see any suspicious flaws?
The very special way of migrating Guestbook to J4, as I read in the linked document, is quite new for me.
And since my Joomla is on 4.4.8 I have no clue if this still would work? Keep in mind my Guestbook component is already on 5.0!
Perhaps even better to fresh install the latest component version?
b) Yes, the PHP is low, Joomla suggests 8.1 now. I asked my provider to migrate for some earlier.
c) With the exception of the Guestbook, the site was and is still working fine on (yes, an old) rhuk_milkyway template.
So avoiding any riscs, I didn't see any purpose of leaving rhuk_milkyway.
Thanks for your support, Foleor
-
- Phoca Member
- Posts: 23
- Joined: 18 Nov 2011, 11:20
Re: Error getCategories()
Hi Christine (and all),
a) ...?
b) I changed PHP to the most recent one: 8.2 and I ran into a error because Joomla4 is not fully supporting it....
ok, revised it to 8.1. (Error is now yellow with the remark 8.1.29 will end after Nov 2024.)
c) I made Cassiopeia the standard template, but that ruined/made my menu-structure dissapeare. Probably that's what you mend by çheck/activate position'. Have figure out how in the hell I have to ..... (For the moment made rhuk_milkyway standard again)
Best regards, Foleor
a) ...?
b) I changed PHP to the most recent one: 8.2 and I ran into a error because Joomla4 is not fully supporting it....
ok, revised it to 8.1. (Error is now yellow with the remark 8.1.29 will end after Nov 2024.)
c) I made Cassiopeia the standard template, but that ruined/made my menu-structure dissapeare. Probably that's what you mend by çheck/activate position'. Have figure out how in the hell I have to ..... (For the moment made rhuk_milkyway standard again)
Best regards, Foleor
-
- Phoca Hero
- Posts: 2819
- Joined: 28 Nov 2010, 17:20
Re: Error getCategories()
Hi Foleor,
a) I don't know now, of course, whether the PG migration went through OK.
Try switching to Cassiopeia again.
If you want the menus to be on the left side again like on rhuk_milkyway, then set the main menu to: sidebar-left. In the backend under Site Module.
Also (by the way) there is something wrong with the language. Example: **Gebruikersnaam** (the asterisks)
Kind regards
Christine
a) I don't know now, of course, whether the PG migration went through OK.
No, you are on Joomla 4.3.3And since my Joomla is on 4.4.8 ...
c) The old template is not suitable for J4/j5.c) I made Cassiopeia the standard template, but that ruined/made my menu-structure dissapeare. Probably that's what you mend by çheck/activate position'. Have figure out how in the hell I have to ..... (For the moment made rhuk_milkyway standard again)
Try switching to Cassiopeia again.
If you want the menus to be on the left side again like on rhuk_milkyway, then set the main menu to: sidebar-left. In the backend under Site Module.
Also (by the way) there is something wrong with the language. Example: **Gebruikersnaam** (the asterisks)
Kind regards
Christine
-
- Phoca Member
- Posts: 23
- Joined: 18 Nov 2011, 11:20
Re: Error getCategories()
Pfff, An update of my small steps forward.
a) Joomla migrated from 4.3.3 to 4.4.8 now (really!).
b) PHP is on 8.1 now
c) Site FE is on Template Cassiopeia, although some fine tuning is still needed :)
However in Control Panel some: "0 Call to a member function get() on bool" still occur.
Guestbook replied:
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/clients/client24237/web26517/web/joomla/modules/mod_search/mod_search.php on line 44
Which is probably due to the change from "classical search" to "Smart search". I fixed it by by disabling search indexing on "web links".
Unfortunately on FE the search ends in error (conflict old/new seach ?)
Still the same kind of error for the Guestbook.
Regards, Foleor
a) Joomla migrated from 4.3.3 to 4.4.8 now (really!).
b) PHP is on 8.1 now
c) Site FE is on Template Cassiopeia, although some fine tuning is still needed :)
However in Control Panel some: "0 Call to a member function get() on bool" still occur.
Guestbook replied:
Deprecated: htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/clients/client24237/web26517/web/joomla/modules/mod_search/mod_search.php on line 44
Which is probably due to the change from "classical search" to "Smart search". I fixed it by by disabling search indexing on "web links".
Unfortunately on FE the search ends in error (conflict old/new seach ?)
Still the same kind of error for the Guestbook.
Regards, Foleor
-
- Phoca Member
- Posts: 23
- Joined: 18 Nov 2011, 11:20
Re: Error getCategories()
To be complete the error is : 0 Call to undefined method PhocaguestbookRouter::getCategories()
-
- Phoca Member
- Posts: 23
- Joined: 18 Nov 2011, 11:20
Re: Error getCategories()
Hi,
In my opinion (for now) I solved it. At least until new surprises pop up.
For readers who ran into the same situation:
In the end simple, but a bit drastic, I renamed the Guestbook (components - phoca guestbook - guestbooks - category)
And created a new one with the same (old) name. (Because I wanted to keep the old guestbook for reference.)
Modified the Menu items Guestbook to the 'new' Guestbook. (because the name change was adapted here)
And the Phoca Guestbook was function again (but empty)
Looking at the documentation "Migrating Phoca Guestbook from J3 to J4" there should a way to transfer the old messages (if you fancy to work with databases and sql etc :) )
For now I close the topic. Oeps :o not able to store guestbook messages.
Let's open another topic to keep it clean. See you on the other page. :shock:
In my opinion (for now) I solved it. At least until new surprises pop up.
For readers who ran into the same situation:
In the end simple, but a bit drastic, I renamed the Guestbook (components - phoca guestbook - guestbooks - category)
And created a new one with the same (old) name. (Because I wanted to keep the old guestbook for reference.)
Modified the Menu items Guestbook to the 'new' Guestbook. (because the name change was adapted here)
And the Phoca Guestbook was function again (but empty)
Looking at the documentation "Migrating Phoca Guestbook from J3 to J4" there should a way to transfer the old messages (if you fancy to work with databases and sql etc :) )
For now I close the topic. Oeps :o not able to store guestbook messages.
Let's open another topic to keep it clean. See you on the other page. :shock: