No Code Attached Yet
avatar OctavianC
OctavianC
24 Oct 2023

Steps to reproduce the issue

  • Upload this test plugin which uses deprecated code
    testplugin.zip
  • Enable it:

image

  • Open the terminal and run:
    php cli/joomla.php

Expected result

image

Actual result

image

Additional comments

Seems the Behaviour - Backward Compatibility plugin isn't loaded in the ConsoleApplication.

avatar OctavianC OctavianC - open - 24 Oct 2023
avatar joomla-cms-bot joomla-cms-bot - change - 24 Oct 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 24 Oct 2023
avatar richard67
richard67 - comment - 24 Oct 2023

Ping @HLeithner .

avatar HLeithner
HLeithner - comment - 24 Oct 2023

looks like a bug yes, also the console application should load the behavior plugins

avatar HLeithner
HLeithner - comment - 24 Oct 2023

btw. I think this issue also exists in 4.4?

avatar alikon
alikon - comment - 24 Oct 2023

only system and console are imported if i'm not wrong, form 4.0 iirc

// Import CMS plugin groups to be able to subscribe to events
PluginHelper::importPlugin('system', null, true, $this->getDispatcher());
PluginHelper::importPlugin('console', null, true, $this->getDispatcher());

avatar thefbi79
thefbi79 - comment - 25 Oct 2023

I use cron task with Akeeba.

Never had any problems before Joomla 5, so with older versions it works perfectly, I use it on over 30 sites.

avatar OctavianC
OctavianC - comment - 25 Oct 2023

btw. I think this issue also exists in 4.4?

Backward Compatibility plugin has no functionality in 4.4 and aliases are still loaded from libraries/classmap.php. This is an issue with 5.0.0 only.
I think I have a pull request for this.

avatar alikon alikon - change - 25 Oct 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-10-25 07:24:27
Closed_By alikon
avatar alikon alikon - close - 25 Oct 2023
avatar alikon
alikon - comment - 25 Oct 2023

please test #42217

avatar richard67
richard67 - comment - 25 Oct 2023

btw. I think this issue also exists in 4.4?

Backward Compatibility plugin has no functionality in 4.4 and aliases are still loaded from libraries/classmap.php. This is an issue with 5.0.0 only. I think I have a pull request for this.

@OctavianC I think what @HLeithner meant was the general issue that behaviour plugins are not loaded by the ConsoleApplication in general, not particularly related to the BC plugin.

avatar OctavianC
OctavianC - comment - 25 Oct 2023

I was so fixated on the b/c plugin - yes, this is an issue with 4.4 as well, which doesn't load the behaviour plugins

avatar richard67
richard67 - comment - 25 Oct 2023

So the question is if that shall be fixed in 4.4-dev, too, or not. @HLeithner Could you clarify that?

Add a Comment

Login with GitHub to post a comment