avatar Basket-weaver
Basket-weaver
14 Nov 2023

Steps to reproduce the issue

Install Weblinks 4.3.1 on Joomla! 4.4.0. Install or update to Search (i.e. com_search) version 4.1.0

Enable all the com_search plugins (content, categories, web links,..). Create a front end menu item which is a Search (i.e. com_search), not Smart Search. Select 'Search' menu item (e.g. URL will be similar to https://www.mirrorsailing.org.uk/index.php?option=com_search&view=search&Itemid=786)

Expected result

The Search page/form opens and you can specify the string you want to search for and select the type of item(s) you want searched (articles, weblinks, categories,...)

Actual result

The requested page can't be found.

An error has occurred while processing your request.

You may not be able to visit this page because of:

an out-of-date bookmark/favourite
a mistyped address
a search engine that has an out-of-date listing for this site
you have no access to this page

Go to the Home Page

If difficulties persist, please contact the website administrator and report the error below.

0 Call to a member function get() on null 

Call stack

Function Location

1 () JROOT/plugins/search/weblinks/src/Extension/Weblinks.php:106
2 Joomla\Plugin\Search\Weblinks\Extension\Weblinks->onContentSearch() JROOT/libraries/src/Plugin/CMSPlugin.php:289
3 Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() JROOT/libraries/vendor/joomla/event/src/Dispatcher.php:486
4 Joomla\Event\Dispatcher->dispatch() JROOT/libraries/src/Application/EventAware.php:111
5 Joomla\CMS\Application\WebApplication->triggerEvent() JROOT/components/com_search/src/Model/SearchModel.php:150
6 Joomla\Component\Search\Site\Model\SearchModel->getData() JROOT/libraries/src/MVC/View/AbstractView.php:152
7 Joomla\CMS\MVC\View\AbstractView->get() JROOT/components/com_search/src/View/Search/HtmlView.php:228
8 Joomla\Component\Search\Site\View\Search\HtmlView->display() JROOT/libraries/src/MVC/Controller/BaseController.php:660
9 Joomla\CMS\MVC\Controller\BaseController->display() JROOT/components/com_search/src/Controller/DisplayController.php:40
10 Joomla\Component\Search\Site\Controller\DisplayController->display() JROOT/libraries/src/MVC/Controller/BaseController.php:693
11 Joomla\CMS\MVC\Controller\BaseController->execute() JROOT/libraries/src/Dispatcher/ComponentDispatcher.php:143
12 Joomla\CMS\Dispatcher\ComponentDispatcher->dispatch() JROOT/libraries/src/Component/ComponentHelper.php:361
13 Joomla\CMS\Component\ComponentHelper::renderComponent() JROOT/libraries/src/Application/SiteApplication.php:208
14 Joomla\CMS\Application\SiteApplication->dispatch() JROOT/libraries/src/Application/SiteApplication.php:249
15 Joomla\CMS\Application\SiteApplication->doExecute() JROOT/libraries/src/Application/CMSApplication.php:293
16 Joomla\CMS\Application\CMSApplication->execute() JROOT/includes/app.php:61
17 require_once() JROOT/index.php:32

System information (as much as possible)

Weblinks 4.3.1 on Joomla! 4.4.0, site has been migrated from Joomla! 3.10.x , Search (i.e. com_search) version 4.1.0, PHP 8.1.25

Additional comments

If I disable the 'Search - Web Links' plugin, and then go to the front end and try the Search menu item, I get the search form and I can search (articles, categories,...).

This is a large site (over 2,000 articles) and so far, I've not managed to get Smart Seach to index it (https://docs.joomla.org/Smart_Search_on_large_sites), hence using old style com_search to give at least some search capability.

avatar Basket-weaver Basket-weaver - open - 14 Nov 2023

Add a Comment

Login with GitHub to post a comment