Issue with Class JEventDispatcher not found in J4 - using com_search Topic is solved
Moderator: General Support Moderators
Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting.
Forum Post Assistant - If you are serious about wanting help, you should use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10
- mojito
- Joomla! Guru
- Posts: 754
- Joined: Wed Sep 07, 2005 10:18 pm
- Location: London
- Contact:
Issue with Class JEventDispatcher not found in J4 - using com_search
Am having the same error, I am running cassiopeia so that's confusing. It's only when I run the search component and the page also 404's
error - Uncaught Throwable of type Error thrown with message "Class "JEventDispatcher" not found". Stack trace: #0 [ROOT]/libraries/src/MVC/View/AbstractView.php(146): SearchModelSearch->getAreas() #1 [ROOT]/components/com_search/views/search/view.html.php(41): Joomla\CMS\MVC\View\AbstractView->get() #2 [ROOT]/libraries/src/MVC/Controller/BaseController.php(645): SearchViewSearch->display() #3 [ROOT]/components/com_search/controller.php(34): Joomla\CMS\MVC\Controller\BaseController->display() #4 [ROOT]/libraries/src/MVC/Controller/BaseController.php(678): SearchController->display() #5 [ROOT]/components/com_search/search.php(13): Joomla\CMS\MVC\Controller\BaseController->execute() #6 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/home/....') #7 ..[ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() #8 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() #9 [ROOT]/libraries/src/Application/SiteApplication.php(208): Joomla\CMS\Component\ComponentHelper::renderComponent() #10 [ROOT]/libraries/src/Application/SiteApplication.php(249): Joomla\CMS\Application\SiteApplication->dispatch() #11 [ROOT]/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\SiteApplication->doExecute() #12 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute() #13 [ROOT]/index.php(32): require_once('/home/u91792887...') #14 {main}
I will report back if I find the issue. Have tried resetting the menu item to the native joomla search item type.
error - Uncaught Throwable of type Error thrown with message "Class "JEventDispatcher" not found". Stack trace: #0 [ROOT]/libraries/src/MVC/View/AbstractView.php(146): SearchModelSearch->getAreas() #1 [ROOT]/components/com_search/views/search/view.html.php(41): Joomla\CMS\MVC\View\AbstractView->get() #2 [ROOT]/libraries/src/MVC/Controller/BaseController.php(645): SearchViewSearch->display() #3 [ROOT]/components/com_search/controller.php(34): Joomla\CMS\MVC\Controller\BaseController->display() #4 [ROOT]/libraries/src/MVC/Controller/BaseController.php(678): SearchController->display() #5 [ROOT]/components/com_search/search.php(13): Joomla\CMS\MVC\Controller\BaseController->execute() #6 [ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): require_once('/home/....') #7 ..[ROOT]/libraries/src/Dispatcher/LegacyComponentDispatcher.php(73): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher\{closure}() #8 [ROOT]/libraries/src/Component/ComponentHelper.php(361): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch() #9 [ROOT]/libraries/src/Application/SiteApplication.php(208): Joomla\CMS\Component\ComponentHelper::renderComponent() #10 [ROOT]/libraries/src/Application/SiteApplication.php(249): Joomla\CMS\Application\SiteApplication->dispatch() #11 [ROOT]/libraries/src/Application/CMSApplication.php(293): Joomla\CMS\Application\SiteApplication->doExecute() #12 [ROOT]/includes/app.php(61): Joomla\CMS\Application\CMSApplication->execute() #13 [ROOT]/index.php(32): require_once('/home/u91792887...') #14 {main}
I will report back if I find the issue. Have tried resetting the menu item to the native joomla search item type.
Last edited by toivo on Wed Sep 27, 2023 8:34 am, edited 1 time in total.
Reason: mod note: split from someone elses already resolved topic - please create your own topics in the future!
Reason: mod note: split from someone elses already resolved topic - please create your own topics in the future!
I am a freelance SEO (https://cambs.eu) web designer and developer working with Wordpress and Joomla since Mambo.
-
- Joomla! Hero
- Posts: 2774
- Joined: Fri Jul 05, 2013 10:35 am
- Location: Parts Unknown
Re: 0 Class 'JEventDispatcher' not found after migrating from Joomla 3.10 to 4
Update Search extension. You can download it from here https://github.com/joomla-extensions/search/releases. And consider migrating to Smart Search or a 3rd party search extension.
- mojito
- Joomla! Guru
- Posts: 754
- Joined: Wed Sep 07, 2005 10:18 pm
- Location: London
- Contact:
Re: 0 Class 'JEventDispatcher' not found after migrating from Joomla 3.10 to 4
Thank you sharky, that has removed the error for me. I get no search results and also tried the smart search. I am doing this work on a preview domain and that is causing a few things to not work as expected but this fixed the IMMEDIATE issue for me. Thanks.
I am a freelance SEO (https://cambs.eu) web designer and developer working with Wordpress and Joomla since Mambo.
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Sep 26, 2023 6:26 pm
Re: 0 Class 'JEventDispatcher' not found after migrating from Joomla 3.10 to 4
Hello @SharkyKZ , @mojito
Please can you give me more details what to do after downloading the file "pkg-search-4.1.0.zip " from https://github.com/joomla-extensions/search/releases. ?
how to update the search extension? i am totally new for this
is it somewhere here (attached image) where I should do anything?
Please can you give me more details what to do after downloading the file "pkg-search-4.1.0.zip " from https://github.com/joomla-extensions/search/releases. ?
how to update the search extension? i am totally new for this
is it somewhere here (attached image) where I should do anything?
You do not have the required permissions to view the files attached to this post.
- AMurray
- Joomla! Exemplar
- Posts: 9324
- Joined: Sat Feb 13, 2010 7:35 am
- Location: Australia
Re: 0 Class 'JEventDispatcher' not found after migrating from Joomla 3.10 to 4
Customise Templates is not the correct section. You install Extensions through Extension Manager.
A "package" extension simply contains a mixture of plugin, component or module. Normally extensions are named like mod_filename or plg_filename, com_filename, but pkg_filename is also an extension type (or rather as said above, contains multiple extensions that are installed in one go).
If you're new to Joomla please read this information:
https://docs.joomla.org/Installing_an_extension
and for an overall grounding in Joomla, start with: https://docs.joomla.org/Portal:Beginners
A "package" extension simply contains a mixture of plugin, component or module. Normally extensions are named like mod_filename or plg_filename, com_filename, but pkg_filename is also an extension type (or rather as said above, contains multiple extensions that are installed in one go).
If you're new to Joomla please read this information:
https://docs.joomla.org/Installing_an_extension
and for an overall grounding in Joomla, start with: https://docs.joomla.org/Portal:Beginners
Regards - A Murray
- mojito
- Joomla! Guru
- Posts: 754
- Joined: Wed Sep 07, 2005 10:18 pm
- Location: London
- Contact:
Re: 0 Class 'JEventDispatcher' not found after migrating from Joomla 3.10 to 4
As Al said. On left site click system then there is a block on the left called Install then click Extensions in that block. You then want the second tab 'Upload Package File' hit the downloaded zip and you should see a success message. Then usually under components you will get a new menu item pertaining to what you just installed.
I am a freelance SEO (https://cambs.eu) web designer and developer working with Wordpress and Joomla since Mambo.
- toivo
- Joomla! Master
- Posts: 16951
- Joined: Thu Feb 15, 2007 5:48 am
- Location: Sydney, Australia
Re: Issue with Class JEventDispatcher not found in J4 - using com_search
The solution staring us in the eye here is to discard the old Search component com_search and its plugins and start using Smart Search, com_finder, with its own plugins.
Here are two articles from the Joomla Magazine that will get you started:
Transition your Joomla 4 website from Search to Smart Search
Customizing Joomla 4's Smart Search Results Pages with Images, Custom Fields and a new Layout
Here are two articles from the Joomla Magazine that will get you started:
Transition your Joomla 4 website from Search to Smart Search
Customizing Joomla 4's Smart Search Results Pages with Images, Custom Fields and a new Layout
Toivo Talikka, Global Moderator
-
- Joomla! Fledgling
- Posts: 2
- Joined: Tue Sep 26, 2023 6:26 pm
Re: Issue with Class JEventDispatcher not found in J4 - using com_search
Thank you AMurray, mojito, & Toivo, this was so helpful. have great day and keep up the good work.