Hi,
my website is using Joomla 4.3.2 and SP Page Builder Pro 4.0.11.
I have a problem to index my website using Smart Search.
I've tried 2 approach and both have different outcome/problem.
Approach 1 will get me very few content indexed, and approach 2 will get me almost all content indexed, except contents built using SP Page Builder.
Approach 1: Index from dashboard - by going to Components -> SMart Search -> Index and click on button Index.
I have about 80 contents under SP page builder, and SPPageBuilder is listed on the top of list to be indexed.
I set the indexer batch size to 5. The problem is that the index will stop at 20 of 80. and on the second retry, it will stop at 25 of 80. and on third and subsequent try, it will just stucked at 25. The green bar did moves, but later the title "Indexer Running
Your content is being indexed. Do not close this window" will turn color to red. Even if I emptied the index, the result is still the same.
In the administrator/logs/indexer.php log file, it shows that after a few iterations/batch, the log lines will repeat the message "Batch completed, peak memory usage: 82,731,008" with the exact amount of memory.
If I disabled "Smart Search - SP Page Builder" extensions, the same problem happen to other type of content as well. So I guess, this is not SP Page Builder's issue.
Approach 2: Index from command line.
When i use Joomla cli to index using command "/usr/bin/php joomla.php finder:index -vvv", i will instantly get an error (attached below). But if i disabled "Smart Search - SP Page Builder" extensions, the indexing process will run without any problem, and all other contents will get indexed successfully (except out of memory problem, which is not an issue because we can run again and indexer will skipped the indexed content). The error trace goes to one of Sp page builder files.
Any idea on how to get through this?
=====ERROR if run indexer from command line====
Starting Indexer
Setting up Smart Search plugins
Setup 1067 items in 0.033 seconds.
In site.php line 76:
[Error]
Call to undefined method Joomla\CMS\Application\ConsoleApplication::getClientId()
Exception trace:
at /home/mywebsite/public_html/components/com_sppagebuilder/addons/module/site.php:76
SppagebuilderAddonModule::getModules() at /home/mywebsite/public_html/components/com_sppagebuilder/addons/module/site.php:31
SppagebuilderAddonModule->render() at /home/mywebsite/public_html/components/com_sppagebuilder/parser/addon-parser.php:742
AddonParser::getAddonHtmlView() at /home/mywebsite/public_html/components/com_sppagebuilder/parser/addon-parser.php:415
AddonParser::viewAddons() at /home/mywebsite/public_html/components/com_sppagebuilder/parser/addon-parser.php:403
AddonParser::viewAddons() at /home/mywebsite/public_html/components/com_sppagebuilder/helpers/helper.php:1013
SppagebuilderHelperSite::getPrettyText() at /home/mywebsite/public_html/plugins/finder/sppagebuilder/sppagebuilder.php:178
PlgFinderSppagebuilder->index() at /home/mywebsite/public_html/administrator/components/com_finder/src/Indexer/Adapter.php:244
Joomla\Component\Finder\Administrator\Indexer\Adapter->onBuildIndex() at /home/mywebsite/public_html/libraries/src/Plugin/CMSPlugin.php:284
Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin{closure}() at /home/mywebsite/public_html/libraries/vendor/joomla/event/src/Dispatcher.php:486
Joomla\Event\Dispatcher->dispatch() at /home/mywebsite/public_html/libraries/src/Application/EventAware.php:111
Joomla\CMS\Application\ConsoleApplication->triggerEvent() at /home/mywebsite/public_html/libraries/src/Console/FinderIndexCommand.php:388
Joomla\CMS\Console\FinderIndexCommand->index() at /home/mywebsite/public_html/libraries/src/Console/FinderIndexCommand.php:209
Joomla\CMS\Console\FinderIndexCommand->doExecute() at /home/mywebsite/public_html/libraries/vendor/joomla/console/src/Command/AbstractCommand.php:235
Joomla\Console\Command\AbstractCommand->execute() at /home/mywebsite/public_html/libraries/vendor/joomla/console/src/Application.php:1181
Joomla\Console\Application->runCommand() at /home/mywebsite/public_html/libraries/vendor/joomla/console/src/Application.php:403
Joomla\Console\Application->doExecute() at /home/mywebsite/public_html/libraries/src/Application/ConsoleApplication.php:206
Joomla\CMS\Application\ConsoleApplication->doExecute() at /home/mywebsite/public_html/libraries/vendor/joomla/console/src/Application.php:448
Joomla\Console\Application->execute() at /home/mywebsite/public_html/libraries/src/Application/ConsoleApplication.php:259
Joomla\CMS\Application\ConsoleApplication->execute() at /home/mywebsite/public_html/cli/joomla.php:76