No Code Attached Yet
avatar peterhulst
peterhulst
7 Jan 2024

Steps to reproduce the issue

  • Module Search (=com_search) is added
  • Perform a search

Expected result

  • the search is found

Actual result

Error:
0 - Class "JEventDispatcher" not found
Call stack:
JROOT/components/com_search/models/search.php:231
JROOT/libraries/src/MVC/View/AbstractView.php:152
JROOT/components/com_search/views/search/view.html.php:41

System information (as much as possible)

PHP 8.1.26
10.5.22-MariaDB-cll-lve
Joomla! 4.4.1 Stable [ Pamoja ] 28-November-2023 16:00 GMT

Additional comments


Votes

# of Users Experiencing Issue
1/2
Average Importance Score
4.50

avatar peterhulst peterhulst - open - 7 Jan 2024
avatar peterhulst peterhulst - change - 7 Jan 2024
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 7 Jan 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 7 Jan 2024
avatar toivo
toivo - comment - 8 Jan 2024

The result is expected, because Joomla 4 does not have the class JEventDispatcher. The Search component, com_search is part of Joomla 3 and it is not required in Joomla 4. Joomla 4 uses Smart Search, com_finder.

It is better to post these types of issues first to the Joomla! forum, https://forum.joomla.org.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42625.

avatar ssnobben
ssnobben - comment - 8 Jan 2024

"The Search component, com_search is part of Joomla 3 and it is not required in Joomla 4. Joomla 4 uses Smart Search, com_finder." hmmm

Why is it not then removed in Joomla 4 and Joomla 5?
How can it then be possible to add the "Module Search (=com_search) is added" if it not work in Joomla 4 & 5? If so serious bug.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42625.

avatar ssnobben
ssnobben - comment - 8 Jan 2024

Maybe releated to issue I have here too https://issues.joomla.org/tracker/joomla-cms/42617


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42625.

avatar toivo
toivo - comment - 8 Jan 2024

com_search was decoupled from Joomla 4. Version 4.1.0 is available (not tested): https://github.com/joomla-extensions/search/releases


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42625.

avatar peterhulst
peterhulst - comment - 8 Jan 2024

Hellom
Thanks for all replies.
When: 'The Search component, com_search is part of Joomla 3 and it is not required in Joomla 4. Joomla 4 uses Smart Search, com_finder.'
it should be removed from the repository. A module which is not working/supported anymore should not be included.
And I reported here in the issue tracker, because it is a (serious) bug and not a forum question.
(remark: thera are more third party Joomla 4 components using JEventDispatcher e.g. JCE; so all these components are getting problems I guess).

Regards,
Peter


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42625.
avatar peterhulst
peterhulst - comment - 8 Jan 2024

Remerk 2: I upgraded from Joomla 3.10. May that's why com_search is there. It is not removed during upgrading.
May be it is an idea to check obsolete modules and remove them.

Regards,
Peter


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42625.

avatar peterhulst
peterhulst - comment - 8 Jan 2024

Remark 3: or offer an update of com_search. The https://raw.githubusercontent.com/joomla-extensions/search/main/manifest.xml does offer version 4.0.1-dev, but that is nog visible in the standard update path.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42625.

avatar embar-
embar- - comment - 8 Jan 2024

Proposal to enhance Update procedure:

  • make list of deprecated function (e.g. JEventDispatcher, JRequest)
  • prior upgrade test scan all source code of website and inspect modules having obsolete functions
  • propose to disable or remove identified modules/plugins/extensions and name/notify them.
  • Additionaly send names with versions to Joomla database to mark these modules as incompatible for upgrade for others (users and developers) to know too; this database could be more reliable source for flagging modules not with warning, but with exact info/problem for no-go of upgrade with them enabled.
  • even if user decides not to remove these blamed modules/plugins/extensions, disable them during upgrade.
    This would safe head aches of less experienced web admins.
    This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42625.
avatar embar-
embar- - comment - 8 Jan 2024
avatar Hackwar Hackwar - close - 24 Jan 2024
avatar Hackwar
Hackwar - comment - 24 Jan 2024

As has been written here, there is an update to com_search which fixes this issue. Closing this issue.

avatar Hackwar Hackwar - change - 24 Jan 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-01-24 07:41:37
Closed_By Hackwar

Add a Comment

Login with GitHub to post a comment