joomla-extensions/search

Incomplete installation on a new Joomla 4

mmsarki opened this issue · 6 comments

Steps to reproduce the issue

Installing pkg_search_4.0.1-dev.zip in a new Joomla 4

Expected result

The strings are not translated because the com_search language files are missing from the Joomla 4 language package
The table xxxx_core_log_searches is not created during installation, the following error message is displayed : 500 Table 'bdps_joomla4.x4gd6_core_log_searches' doesn't exist
The parameters are not accessible because the access.xml file is not indicated in the search.xml file of the component

Additional comments

The creation of the table in the database, the addition of the access.xml file and the linked language files make the search functional

@mmsarki Thanks for sharing the issue; I ran into the same one today :-) Could you add some details about your workaround?

  1. How did you create the missing database table?
  2. Is adding <filename>access.xml</filename> in the two instances of file search.xml from com_search.zip enough?
  3. What about the "linked language files"?

The search translations strings are missing is expected i would recommend to manually add the language strings to the language folder from an 3.10 language pack until there is a fully setup stable search component

@svenha

  1. Here is the SQL query to create the table, it comes from a Joomla 3 installation.
    CREATE TABLE IF NOT EXISTS XXX_core_log_searches( search_termvarchar(128) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '', hits int(10) UNSIGNED NOT NULL DEFAULT '0' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci; COMMIT;
  2. Yes
  3. As indicated by @zero-24

Thanks for your help. I think I applied all the suggested changes successfully. As admin, I disabled all 5 smart search related plugins and added a new menu item for com_search.

Now I can reach the old, familiar search interface. But searching never returns any results (and no visible problems on the surface). What am I missing?

The search translations strings are missing is expected i would recommend to manually add the language strings to the language folder from an 3.10 language pack until there is a fully setup stable search component

Is there just one file per language that I need to copy, namely joomla/language/*/*.com_search.ini ? I am asking because the options still carry strange names.

Now I can reach the old, familiar search interface. But searching never returns any results (and no visible problems on the surface). What am I missing?

I had to enable the Plugin named plg_search_content ; I was looking only for Content search as in #8. Is the strange name my fault or is this expected?