-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update to J4 gives error JEventDispatcher when searching site #32805
Comments
All I know is that there was a promise: Notes on Search (com_search)
( https://docs.joomla.org/Joomla_3.x_to_4.x_Step_by_Step_Migration ) I haven't heard any news about that for a long time. |
Search was decoupled. There's a branch here containing the fixes. You should have an update site setup on update - see: https://github.com/joomla-extensions/search/blob/4.0-dev/src/components/com_search/Model/SearchModel.php |
As @wilsonge said, this is something that is solved by properly updating the com_search component. Thus this issue can be closed. |
For me, "properly updating" involved manually copying the com_search folders from /administrator/components and /components from a fresh (non-upgraded) install of Joomla 4. If anyone knows of a more sane method please do tell. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32805. |
That would be really astonishing, since com_search isn't part of Joomla 4 anymore. |
I updated from 3.6.10 to 4.1.0. Using the smart search module produced the error Using System Dashboard >> Update >> Joomla >> Check for Updates Home Dashboard >> Components >> Smart Search >> Index This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32805. |
Can you please add the link to the component here? Also what about the translations of this component. Most probably translaters are not aware of it yet. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32805. |
I have this problem right away. I did a clean install of joomla 4.1.2 and Helix Ultimate 2.0.7. What should I do? To upgrade to joomla 4 I preferred to recreate my site from scratch. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32805. |
I get the problem. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32805. |
thanks!
Clean installation from joomla.org of joomla 4.1.2, then I installed helix
ultimate 2.0.7 only tempate.
Both without demo material.
Il giorno mer 20 apr 2022 alle ore 10:59 Brian Teeman <
***@***.***> ha scritto:
… Did you install joomla and then helix - or was it an all in one
installation.
I ask because on a clean joomla install there is only one search module so
I wonder how you have the module.
[image: image]
<https://user-images.githubusercontent.com/1296369/164191483-e727e007-585b-44fc-81e4-4857b5de50b7.png>
—
Reply to this email directly, view it on GitHub
<#32805 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKKKRHRA3K4FRCMQBO2HJILVF7BPBANCNFSM4ZS7ZNDA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
can I then uninstall the normal search module?
Il giorno mer 20 apr 2022 alle ore 15:37 Asperger Way - Ilaria e Simone <
***@***.***> ha scritto:
… thanks!
Clean installation from joomla.org of joomla 4.1.2, then I installed
helix ultimate 2.0.7 only tempate.
Both without demo material.
Il giorno mer 20 apr 2022 alle ore 10:59 Brian Teeman <
***@***.***> ha scritto:
> Did you install joomla and then helix - or was it an all in one
> installation.
>
> I ask because on a clean joomla install there is only one search module
> so I wonder how you have the module.
>
> [image: image]
> <https://user-images.githubusercontent.com/1296369/164191483-e727e007-585b-44fc-81e4-4857b5de50b7.png>
>
> —
> Reply to this email directly, view it on GitHub
> <#32805 (comment)>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AKKKRHRA3K4FRCMQBO2HJILVF7BPBANCNFSM4ZS7ZNDA>
> .
> You are receiving this because you commented.Message ID:
> ***@***.***>
>
|
I solved it by uninstalling the old search package and all related extensions. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/32805. |
I can confirm the solution by @aspergerway. Turns out my earlier solution involved copying over an older version of the old search package (I thought it was included with Joomla 4 but it wasn't). |
However the Smart Search indexer currently reports "undefined Call to undefined method Joomla\Component\Finder\Administrator\Indexer\Helper::getContentPath()" as some other people are experiencing. |
I removed the finder plugins for Phoca Download and now it indexes fine. |
Please don't post (new) stuff in closed issues. No one is looking at closed issues. |
Remember, this is in the spirit of helping out anybody who came here since the issue was closed on January 17. If it is somehow interfering with your workflow then I am sorry. |
Sorry for being so direct, but the place for support is forum.joomla.org. The original issue was solved by pointing to an update of com_search, everything else after that was unrelated to that. |
Where can i find any developer documentation for Joomla 4? |
Funny :) Did you ever visit this site? It is almost empty.
Looks like more easily to write new CMS (with blackjack and hookers) that to upgrade my old extensions from J3.x to J4.x |
Yes that was a very unhelpful link as that site is just beginning. I would check out this link https://docs.joomla.org/Potential_backward_compatibility_issues_in_Joomla_4. And this one (still a work in progress) https://github.com/nikosdion/joomla_extensions_development |
did you know that we are a "real" community driven project ? |
@alikon thats not helpful and as vp I would expect more |
i hate do that for client 10 years ago... as i hate it do now :) bot they pay :) For sample, checkout Yii project, comunity and documentation. |
i'm sorry to have a completely different perspective from yours, but objective facts must be exposed, and both of you are on the wrong side, first do it and then complain, only complain is not productive |
This one sometimes helps, but.... for sample
It is not more static accessable, $app = \Joomla\CMS\Factory::getApplication() to get access to App. \Joomla\CMS\Factory::getApplication()->triggerEvent() but will be deprecated at version 5 (next year? ) Maybe solutions i found is wrrong, but i work only 3 days on issue - upgrade components from J3.x to J4.x. Previous time seen Joomla ~7 years ago.
Still in progress :( (was looking, does ever exist any book about joomla 4) But read again, just to upgrade extensions (last time we spent 3 months for development (if i remember right), this time we dont have so much time) |
ah and, yes, i was check CMS top - links i visit Joomla was in average top 3. :) If i dont like Joomla so much, how bad is other CMS? |
Steps to reproduce the issue
update 3.10 to 4 site (4 beta 8 DEV)
Expected result
when searching in the updated site, get search results
Actual result
Search produces error: Class 'JEventDispatcher' not found
System information (as much as possible)
**`#Date: 2021-03-22 12:07:51 UTC
#Software: Joomla! 4.0.0-beta8-dev Development [ Mañana ] 2-February-2021 20:02 GMT
#Fields: datetime priority clientip category message
2021-03-22T12:07:51+00:00 CRITICAL ::1 error Uncaught Throwable of type Error thrown with message "Class 'JEventDispatcher' not found". Stack trace: #0 /Applications/MAMP/htdocs/jug/libraries/src/MVC/View/AbstractView.php(146): SearchModelSearch->getAreas()
#1 /Applications/MAMP/htdocs/jug/components/com_search/views/search/view.html.php(41): Joomla\CMS\MVC\View\AbstractView->get('areas')
#2 /Applications/MAMP/htdocs/jug/libraries/src/MVC/Controller/BaseController.php(692): SearchViewSearch->display()
#3 /Applications/MAMP/htdocs/jug/components/com_search/controller.php(34): Joomla\CMS\MVC\Controller\BaseController->display(false, false)
#4 /Applications/MAMP/htdocs/jug/libraries/src/MVC/Controller/BaseController.php(730): SearchController->display()
#5 /Applications/MAMP/htdocs/jug/components/com_search/search.php(13): Joomla\CMS\MVC\Controller\BaseController->execute('')
#6 /Applications/MAMP/htdocs/jug/libraries/src/Dispatcher/LegacyComponentDispatcher.php(69): require_once('/Applications/M...')
#7 /Applications/MAMP/htdocs/jug/libraries/src/Dispatcher/LegacyComponentDispatcher.php(71): Joomla\CMS\Dispatcher\LegacyComponentDispatcher::Joomla\CMS\Dispatcher{closure}('/Applications/M...')
#8 /Applications/MAMP/htdocs/jug/libraries/src/Component/ComponentHelper.php(389): Joomla\CMS\Dispatcher\LegacyComponentDispatcher->dispatch()
#9 /Applications/MAMP/htdocs/jug/libraries/src/Application/SiteApplication.php(206): Joomla\CMS\Component\ComponentHelper::renderComponent('com_search')
#10 /Applications/MAMP/htdocs/jug/libraries/src/Application/SiteApplication.php(245): Joomla\CMS\Application\SiteApplication->dispatch()
#11 /Applications/MAMP/htdocs/jug/libraries/src/Application/CMSApplication.php(266): Joomla\CMS\Application\SiteApplication->doExecute()
#12 /Applications/MAMP/htdocs/jug/includes/app.php(63): Joomla\CMS\Application\CMSApplication->execute()
#13 /Applications/MAMP/htdocs/jug/index.php(32): require_once('/Applications/M...')
#14 {main}`**
Additional comments
above the results of everything.php that shows the error.
The text was updated successfully, but these errors were encountered: