Search Jobs are failing Call to a member function make() on null

Permalink
I am running
8.5.4
MYSQL Version: 5.7.32
SQL Mode: STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
PHP 7.3.25

When I run the 2 automated jobs for search I get these errors. Any ideas would be most appreciated!

Call to a member function make() on null

Details
/concrete/src/Controller/AbstractController.php(284): Error->null
/concrete/src/Controller/AbstractController.php(269): Concrete\Core\Controller\AbstractController->buildRedirect
/packages/formidable_lite/controllers/single_page/dashboard/formidable.php(9): Concrete\Core\Controller\AbstractController->redirect
[internal](0): Concrete\Package\FormidableLite\Controller\SinglePage\Dashboard\Formidable->__construct
/concrete/vendor/illuminate/container/Container.php(779): ReflectionClass->newInstanceArgs
/concrete/src/Application/Application.php(373): Illuminate\Container\Container->build
/home/deepbluecozumel/public_html/concrete/vendor/illuminate/container/Container.php(629): Concrete\Core\Application\Application->build
/concrete/src/Support/Facade/Facade.php(121): Illuminate\Container\Container->make
/concrete/src/Page/Page.php(329): Concrete\Core\Support\Facade\Facade->__callStatic
/concrete/src/Page/Search/IndexedSearch.php(157): Concrete\Core\Page\Page->getPageController
/concrete/src/Page/Search/IndexedSearch.php(100): Concrete\Core\Page\Search\IndexedSearch->getBodyContentFromPage
/concrete/src/Page/Collection/Collection.php(431): Concrete\Core\Page\Search\IndexedSearch->reindexPage
/concrete/src/Page/Search/Index/PageIndexer.php(42): Concrete\Core\Page\Collection\Collection->reindex
/concrete/src/Search/Index/AbstractIndex.php(33): Concrete\Core\Page\Search\Index\PageIndexer->index
/concrete/src/Search/Index/DefaultManager.php(120): Concrete\Core\Search\Index\AbstractIndex->index
/concrete/jobs/index_search_all.php(145): Concrete\Core\Search\Index\DefaultManager->index
/concrete/jobs/index_search.php(54): Concrete\Job\IndexSearchAll->processQueueItem
/concrete/src/Job/QueueableJob.php(168): Concrete\Job\IndexSearch->processQueueItem
/concrete/controllers/frontend/jobs.php(116): Concrete\Core\Job\QueueableJob->executeBatch
/concrete/src/Controller/AbstractController.php(315): Concrete\Controller\Frontend\Jobs->run_single
/concrete/src/Controller/AbstractController.php(315): null->call_user_func_array
/concrete/src/Routing/ControllerRouteAction.php(64): Concrete\Core\Controller\AbstractController->runAction
/concrete/src/Http/RouteDispatcher.php(37): Concrete\Core\Routing\ControllerRouteAction->execute
/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\RouteDispatcher->dispatch
/concrete/src/Http/Middleware/MiddlewareStack.php(86): Concrete\Core\Http\Middleware\DispatcherDelegate->next
/concrete/src/Http/DefaultDispatcher.php(125): Concrete\Core\Http\Middleware\MiddlewareStack->process
/concrete/src/Http/DefaultDispatcher.php(58): Concrete\Core\Http\DefaultDispatcher->handleDispatch
/concrete/src/Http/Middleware/DispatcherDelegate.php(39): Concrete\Core\Http\DefaultDispatcher->dispatch
/concrete/src/Http/Middleware/ThumbnailMiddleware.php(76): Concrete\Core\Http\Middleware\DispatcherDelegate->next
/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\ThumbnailMiddleware->process
/concrete/src/Http/Middleware/FrameOptionsMiddleware.php(39): Concrete\Core\Http\Middleware\MiddlewareDelegate->next
/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\FrameOptionsMiddleware->process
/concrete/src/Http/Middleware/CookieMiddleware.php(35): Concrete\Core\Http\Middleware\MiddlewareDelegate->next
/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\CookieMiddleware->process
/concrete/src/Http/Middleware/ApplicationMiddleware.php(29): Concrete\Core\Http\Middleware\MiddlewareDelegate->next
/concrete/src/Http/Middleware/MiddlewareDelegate.php(50): Concrete\Core\Http\Middleware\ApplicationMiddleware->process
/concrete/src/Http/Middleware/MiddlewareStack.php(86): Concrete\Core\Http\Middleware\MiddlewareDelegate->next
/concrete/src/Http/DefaultServer.php(85): Concrete\Core\Http\Middleware\MiddlewareStack->process
/concrete/src/Foundation/Runtime/Run/DefaultRunner.php(128): Concrete\Core\Http\DefaultServer->handleRequest
/concrete/src/Foundation/Runtime/DefaultRuntime.php(102): Concrete\Core\Foundation\Runtime\Run\DefaultRunner->run
/concrete/dispatcher.php(45): Concrete\Core\Foundation\Runtime\DefaultRuntime->run
/index.php(3): null->require

plschneide
 
jero replied on at Permalink Reply
jero
Just a guess, but it looks like the formidable forms lite addon is doing something a bit odd.

The error trace refers to /packages/formidable_lite/controllers/single_page/dashboard/formidable.php which is a dashboard page controller. It's maybe a bit surprising that those pages are being indexed. Maybe try setting the exclude from page index attribute for that page in the site map.

Alternatively it looks like the search is trying to instantiate the page controller, and my guess is that $app is undefined at that point which is why you get the exception. You could try editing the file and testing for $app being an object and exit gracefully if it isn't.
katz515 replied on at Permalink Reply
katz515
This is how you fix it

Open

packages/formidable_lite/controllers/single_page/dashboard/formidable.php

Change

public function __construct() {


to concrete5 proper event cycle like

public function view() {


Then it should be able to avoid Index Search Job error.

Tested with 8.5.5