You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jw_allvideos seems to break command line indexing.
Step to reproduce :
Using Joomla 4.x (tested with 4.1.4)
Install jw_allvideos plugin
Add content using jw_allvideos (maybe not needed)
Launch from command line :
php cli/joomla.php finder:index -vvv
Detailed error log
....
* Processed batch 74 in 0.408 seconds.
* Skipping pause, as previous batch had a very low processing time (0.408s < 1s)
In jw_allvideos.php line 560:
[Error]
Call to undefined method Joomla\CMS\Application\ConsoleApplication::getTemplate()
Exception trace:
at /var/www/html/plugins/content/jw_allvideos/jw_allvideos.php:560
plgContentJw_allvideos->getTemplatePath() at /var/www/html/plugins/content/jw_allvideos/jw_allvideos.php:540
plgContentJw_allvideos->renderAllVideos() at /var/www/html/plugins/content/jw_allvideos/jw_allvideos.php:36
plgContentJw_allvideos->onContentPrepare() at /var/www/html/libraries/src/Plugin/CMSPlugin.php:285
Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() at /var/www/html/libraries/vendor/joomla/event/src/Dispatcher.php:486
Joomla\Event\Dispatcher->dispatch() at /var/www/html/libraries/src/Application/EventAware.php:111
Joomla\CMS\Application\ConsoleApplication->triggerEvent() at /var/www/html/administrator/components/com_finder/src/Indexer/Helper.php:480
Joomla\Component\Finder\Administrator\Indexer\Helper::prepareContent() at /var/www/html/plugins/finder/content/content.php:280
PlgFinderContent->index() at /var/www/html/administrator/components/com_finder/src/Indexer/Adapter.php:249
Joomla\Component\Finder\Administrator\Indexer\Adapter->onBuildIndex() at /var/www/html/libraries/src/Plugin/CMSPlugin.php:285
Joomla\CMS\Plugin\CMSPlugin->Joomla\CMS\Plugin\{closure}() at /var/www/html/libraries/vendor/joomla/event/src/Dispatcher.php:486
Joomla\Event\Dispatcher->dispatch() at /var/www/html/libraries/src/Application/EventAware.php:111
Joomla\CMS\Application\ConsoleApplication->triggerEvent() at /var/www/html/libraries/src/Console/FinderIndexCommand.php:397
Joomla\CMS\Console\FinderIndexCommand->index() at /var/www/html/libraries/src/Console/FinderIndexCommand.php:212
Joomla\CMS\Console\FinderIndexCommand->doExecute() at /var/www/html/libraries/vendor/joomla/console/src/Command/AbstractCommand.php:235
Joomla\Console\Command\AbstractCommand->execute() at /var/www/html/libraries/vendor/joomla/console/src/Application.php:1181
Joomla\Console\Application->runCommand() at /var/www/html/libraries/vendor/joomla/console/src/Application.php:403
Joomla\Console\Application->doExecute() at /var/www/html/libraries/src/Application/ConsoleApplication.php:191
Joomla\CMS\Application\ConsoleApplication->doExecute() at /var/www/html/libraries/vendor/joomla/console/src/Application.php:448
Joomla\Console\Application->execute() at /var/www/html/libraries/src/Application/ConsoleApplication.php:234
Joomla\CMS\Application\ConsoleApplication->execute() at /var/www/html/cli/joomla.php:78
finder:index [--minproctime MINPROCTIME] [--pause PAUSE] [--divisor DIVISOR] [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--] <command> [<purge>]
Proposal
At web/plugins/content/jw_allvideos/jw_allvideos.php:34, modify function like this :
// Joomla 2.5+publicfunctiononContentPrepare($context, &$row, &$params, $page = 0)
{
if ($context === 'com_finder.indexer')
{
// Don't run this plugin when the content is being indexed and we have no real contextreturn;
}
$this->renderAllVideos($row, $params, $page = 0);
}
The text was updated successfully, but these errors were encountered:
jw_allvideos seems to break command line indexing.
Step to reproduce :
Detailed error log
Proposal
At web/plugins/content/jw_allvideos/jw_allvideos.php:34, modify function like this :
The text was updated successfully, but these errors were encountered: