joomla-extensions / search

Legacy Search for Joomla
GNU General Public License v2.0
2 stars 6 forks source link

Incomplete installation on a new Joomla 4 #10

Open mmsarki opened 2 years ago

mmsarki commented 2 years ago

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

svenha commented 2 years ago

@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"?
zero-24 commented 2 years ago

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

mmsarki commented 2 years ago

@svenha

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

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?

svenha commented 2 years ago

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.

svenha commented 2 years ago

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?