update 3.10 to 4 site (4 beta 8 DEV)
when searching in the updated site, get search results
Search produces error: Class 'JEventDispatcher' not found
**`#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}`**
above the results of everything.php that shows the error.
Labels |
Added:
?
|
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
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2022-01-17 17:24:17 |
Closed_By | ⇒ | Quy | |
Labels |
Added:
No Code Attached Yet
Removed: ? |
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.
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
class JEventDispatcher not found.
The command grep -R 'JEvent' JOOMLA__ROOT/
found JEvent in JOOMLA__ROOT/components/com_search/models/search.php
Using in the administrator's backend IExtensions:Manage
I first disabled all search and Search related entries
and then uninstalled all search and Search related entries.
Using System Dashboard >> Update >> Joomla >> Check for Updates
I clicked on
Reinstall Joomla! core files
Success.
The command grep -R 'JEvent' JOOMLA__ROOT/
did not find JEvent any more.
Home Dashboard >> Components >> Smart Search >> Index
showed a lot of entries
and voilà
using the Search feature in the front end succeeded.
Can you please add the link to the component here?
https://downloads.joomla.org/extensions
Also what about the translations of this component. Most probably translaters are not aware of it yet.
I have this problem right away. I did a clean install of joomla 4.1.2 and Helix Ultimate 2.0.7.
Even reinstalling the joomla core the problem does not go away.
Every time I search for something it appears:
0
Class 'JEventDispatcher' not found
What should I do?
To upgrade to joomla 4 I preferred to recreate my site from scratch.
But until I solve this thing I can't go on.
Help me please!
I get the problem.
I had understood that in clean installations the com_search component was not present but the advanced search was present.
So when I created the module I saw Search and chose that one, instead I had to choose the advanced search one.
But if they removed the search component, why the hell was the search module left?
I've been going crazy for a week!
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.
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.
This is unreleased documentation for Joomla! Programmers Documentation v4.3.x (upcoming) version.
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 ?
and all of us do it for free, in their free time ?
so my question to you is where is your contribution ?
before to complain ask to yourself what i've done to enanche the project
did you ?
did you know that we are a "real" community driven project ? and all of us do it for free, in their free time ? so my question to you is where is your contribution ? before to complain ask to yourself what i've done to enanche the project did you ?
i hate do that for client 10 years ago... as i hate it do now :) bot they pay :)
looks like not all of you do that for free :) chronoforms for sample :)
i just looking for some documentation...
at least, i will do my job gob trought code... but if your excuse is that you are open free, and so terible, then better dont do that.
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
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.
This one sometimes helps, but.... for sample JAdministratorHelper::findOption()
:
JAdministratorHelper has been removed without replacement. (It's been merged into JApplicationAdministrator.)
It is not more static accessable, $this->option
not always accessible or null. At least find out $this->app->findOption()
, or finally
$app = \Joomla\CMS\Factory::getApplication()
to get access to App.
With JDispatcher
same 'shit'... $dispatcher->dispatch() no mo accept array as parameter - costly refactoring,
there is solusion as
\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.
And this one (still a work in progress) https://github.com/nikosdion/joomla_extensions_development
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?
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.