? ? Pending

User tests: Successful: Unsuccessful:

avatar alikon
alikon
20 Apr 2022

Pull Request for Issue #37586 .

Summary of Changes

dirty fix

Testing Instructions

see #37586

Actual result BEFORE applying this Pull Request

doesnt' work as expected

Expected result AFTER applying this Pull Request

work as expected

avatar alikon alikon - open - 20 Apr 2022
avatar alikon alikon - change - 20 Apr 2022
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 20 Apr 2022
Category Libraries
16a36ca 20 Apr 2022 avatar alikon meh
avatar alikon alikon - change - 20 Apr 2022
Labels Added: ?
avatar alikon alikon - change - 20 Apr 2022
Title
necessarybutnotsufficient
[4] scheduler
avatar alikon alikon - edited - 20 Apr 2022
avatar alikon alikon - change - 20 Apr 2022
The description was changed
avatar alikon alikon - edited - 20 Apr 2022
avatar brianteeman
brianteeman - comment - 20 Apr 2022

What makes this a dirty fix? Does that meean there should be a better fix?

avatar alikon
alikon - comment - 20 Apr 2022

i don't know how to explain my feeling in english but probably "convoluted".... i've done the same in the past in a different way... too simple perhaps... who knows ? it was 3.9

avatar richard67
richard67 - comment - 20 Apr 2022

Why does it use double quotes and not single quotes for the strings?

avatar toivo
toivo - comment - 21 Apr 2022

I have tested this item successfully on 16a36ca

Tested successfully in Joomla 4.1.3-dev of 20 April in Wampserver 3.2.7 using PHP 8.0.15 and PHP 8.1.2 in CLI. The changes of state work as expected.

The CLI commands worked but the CLI itself started with a Deprecated message and a call stack with JSON dump (?), due to PHP 8.1.2:

[21-Apr-2022 05:49:19 UTC] PHP Deprecated: Return type of Joomla\Input\Input::count() should either be compatible with Countable::count(): int, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in C:\www\joomla4test\libraries\vendor\joomla\input\src\Input.php on line 149
[21-Apr-2022 05:49:19 UTC] PHP Stack trace:
[21-Apr-2022 05:49:19 UTC] PHP 1. {main}() C:\www\joomla4test\cli\joomla.php:0
[21-Apr-2022 05:49:19 UTC] PHP 2. Joomla\DI\Container->get($resourceName = 'Joomla\Console\Application') C:\www\joomla4test\cli\joomla.php:76
[21-Apr-2022 05:49:19 UTC] PHP 3. Joomla\DI\ContainerResource->getInstance() C:\www\joomla4test\libraries\vendor\joomla\di\src\Container.php:96
[21-Apr-2022 05:49:19 UTC] PHP 4. Joomla\CMS\Service\Provider\Application->Joomla\CMS\Service\Provider{closure:C:\www\joomla4test\libraries\src\Service\Provider\Application.php:117-142}($container = class Joomla\DI\Container { protected $aliases = ['Joomla\CMS\Application\AdministratorApplication' => 'JApplicationAdministrator', 'Joomla\CMS\Application\SiteApplication' => 'JApplicationSite', 'Joomla\CMS\Application\ConsoleApplication' => 'Joomla\Console\Application', 'Joomla\CMS\Console\Loader\WritableContainerLoader' => 'Joomla\Console\Loader\LoaderInterface', 'Joomla\CMS\Console\Loader\WritableLoaderInterface' => 'Joomla\Console\Loader\LoaderInterface', 'Joomla\CMS\Application\ApiApplication' => 'JApplicationApi', 'password.handler.argon2i' => 'Joomla\CMS\Authentication\Password\Argon2iHandler', 'Joomla\Authentication\Password\Argon2iHandler' => 'Joomla\CMS\Authentication\Password\Argon2iHandler', 'password.handler.argon2id' => 'Joomla\CMS\Authentication\Password\Argon2idHandler', 'Joomla\Authentication\Password\Argon2idHandler' => 'Joomla\CMS\Authentication\Password\Argon2idHandler', 'password.handler.chained' => 'Joomla\CMS\Authentication\Password\ChainedHandler', 'password.handler.default' => 'Joomla\CMS\Authentication\Password\BCryptHandler', 'Joomla\Authentication\Password\BCryptHandler' => 'Joomla\CMS\Authentication\Password\BCryptHandler', 'password.handler.bcrypt' => 'Joomla\CMS\Authentication\Password\BCryptHandler', 'password.handler.md5' => 'Joomla\CMS\Authentication\Password\MD5Handler', 'password.handler.phpass' => 'Joomla\CMS\Authentication\Password\PHPassHandler', 'cache.controller.factory' => 'Joomla\CMS\Cache\CacheControllerFactoryInterface', 'Joomla\CMS\Cache\CacheControllerFactory' => 'Joomla\CMS\Cache\CacheControllerFactoryInterface', 'config' => 'JConfig', 'db' => 'Joomla\Database\DatabaseInterface', 'DatabaseDriver' => 'Joomla\Database\DatabaseInterface', 'Joomla\Database\DatabaseDriver' => 'Joomla\Database\DatabaseInterface', 'dispatcher' => 'Joomla\Event\DispatcherInterface', 'Joomla\Event\Dispatcher' => 'Joomla\Event\DispatcherInterface', 'document.factory' => 'Joomla\CMS\Document\FactoryInterface', 'Joomla\CMS\Document\Factory' => 'Joomla\CMS\Document\FactoryInterface', 'form.factory' => 'Joomla\CMS\Form\FormFactoryInterface', 'Joomla\CMS\Form\FormFactory' => 'Joomla\CMS\Form\FormFactoryInterface', 'logger' => 'Psr\Log\LoggerInterface', 'language.factory' => 'Joomla\CMS\Language\LanguageFactoryInterface', 'Joomla\CMS\Language\CachingLanguageFactory' => 'Joomla\CMS\Language\LanguageFactoryInterface', 'menu.factory' => 'Joomla\CMS\Menu\MenuFactoryInterface', 'Joomla\CMS\Menu\MenuFactory' => 'Joomla\CMS\Menu\MenuFactoryInterface', 'SitePathway' => 'Joomla\CMS\Pathway\SitePathway', 'JPathwaySite' => 'Joomla\CMS\Pathway\SitePathway', 'pathway.site' => 'Joomla\CMS\Pathway\SitePathway', 'Pathway' => 'Joomla\CMS\Pathway\Pathway', 'JPathway' => 'Joomla\CMS\Pathway\Pathway', 'pathway' => 'Joomla\CMS\Pathway\Pathway', 'Joomla\CMS\Session\SessionFactory' => 'session.factory', 'Joomla\CMS\Session\SessionManager' => 'session.manager', 'Joomla\CMS\Session\MetadataManager' => 'session.metadata_manager', 'Joomla\CMS\Session\EventListener\MetadataManagerListener' => 'session.event_listener.metadata_manager', 'toolbar.factory' => 'Joomla\CMS\Toolbar\ToolbarFactoryInterface', 'Joomla\CMS\Toolbar\ContainerAwareToolbarFactory' => 'Joomla\CMS\Toolbar\ToolbarFactoryInterface', 'webassetregistry' => 'Joomla\CMS\WebAsset\WebAssetRegistry', 'ApiRouter' => 'Joomla\CMS\Router\ApiRouter', 'user.factory' => 'Joomla\CMS\User\UserFactoryInterface', 'Joomla\CMS\User\UserFactory' => 'Joomla\CMS\User\UserFactoryInterface', 'session' => 'session.cli', 'JSession' => 'session.cli', 'Joomla\CMS\Session\Session' => 'session.cli', 'Joomla\Session\Session' => 'session.cli', 'Joomla\Session\SessionInterface' => 'session.cli']; protected $resources = ['JApplicationAdministrator' => class Joomla\DI\ContainerResource { ... }, 'JApplicationSite' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Console\Application' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Console\Loader\LoaderInterface' => class Joomla\DI\ContainerResource { ... }, 'JApplicationApi' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\Argon2iHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\Argon2idHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\ChainedHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\BCryptHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\MD5Handler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\PHPassHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Cache\CacheControllerFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'JConfig' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SessionGcCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SessionMetadataGcCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Database\Command\ExportCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Database\Command\ImportCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SiteDownCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SiteUpCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SetConfigurationCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\GetConfigurationCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionsListCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\CheckJoomlaUpdatesCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionRemoveCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionInstallCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionDiscoverCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionDiscoverInstallCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionDiscoverListCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\UpdateCoreCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\FinderIndexCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\TasksListCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\TasksRunCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\TasksStateCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Database\DatabaseInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Event\DispatcherInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Document\FactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Form\FormFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Psr\Log\LoggerInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Language\LanguageFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Menu\MenuFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Pathway\SitePathway' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Pathway\Pathway' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\HTML\Registry' => class Joomla\DI\ContainerResource { ... }, 'session.web.administrator' => class Joomla\DI\ContainerResource { ... }, 'session.web.installation' => class Joomla\DI\ContainerResource { ... }, 'session.web.site' => class Joomla\DI\ContainerResource { ... }, 'session.cli' => class Joomla\DI\ContainerResource { ... }, 'session.factory' => class Joomla\DI\ContainerResource { ... }, 'session.manager' => class Joomla\DI\ContainerResource { ... }, 'session.metadata_manager' => class Joomla\DI\ContainerResource { ... }, 'session.event_listener.metadata_manager' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Toolbar\ToolbarFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\WebAsset\WebAssetRegistry' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Router\ApiRouter' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\User\UserFactoryInterface' => class Joomla\DI\ContainerResource { ... }]; protected $parent = NULL; protected $tags = [] }) C:\www\joomla4test\libraries\vendor\joomla\di\src\ContainerResource.php:176
[21-Apr-2022 05:49:19 UTC] PHP 5. Joomla\CMS\Application\ConsoleApplication->_construct($config = class Joomla\Registry\Registry { protected $data = class stdClass { public $offline = FALSE; public $offline_message = 'This site is down for maintenance.
Please check back again soon.'; public $display_offline_message = 1; public $offline_image = ''; public $sitename = 'Joomla 4 Test'; public $editor = 'none'; public $captcha = '0'; public $list_limit = 100; public $access = 1; public $debug = TRUE; public $debug_lang = FALSE; public $debug_lang_const = TRUE; public $dbtype = 'mysql'; public $host = 'localhost'; public $user = 'joomla'; public $password = 'Here2021'; public $db = 'joomla4test'; public $dbprefix = 'bwjgu
'; public $dbencryption = 0; public $dbsslverifyservercert = FALSE; public $dbsslkey = ''; public $dbsslcert = ''; public $dbsslca = ''; public $dbsslcipher = ''; public $force_ssl = 0; public $live_site = ''; public $secret = '7rns8uRNiwZqgHFK'; public $gzip = FALSE; public $error_reporting = 'maximum'; public $helpurl = 'https://help.joomla.org/proxy?keyref=Help{major}{minor}:{keyref}&lang={langcode}'; public $offset = 'UTC'; public $mailonline = TRUE; public $mailer = 'smtp'; public $mailfrom = 'toivo@vivaldi.net'; public $fromname = 'Joomla 4 Test'; public $sendmail = '/usr/sbin/sendmail'; public $smtpauth = TRUE; public $smtpuser = 'toivo.talikka@gmail.com'; public $smtppass = 'xhdlgnuqtalxqtuo'; public $smtphost = 'smtp.gmail.com'; public $smtpsecure = 'tls'; public $smtpport = 587; public $caching = 0; public $cache_handler = 'file'; public $cachetime = 15; public $cache_platformprefix = FALSE; public $MetaDesc = ''; public $MetaAuthor = TRUE; public $MetaVersion = TRUE; public $robots = ''; public $sef = TRUE; public $sef_rewrite = TRUE; public $sef_suffix = FALSE; public $unicodeslugs = FALSE; public $feed_limit = 10; public $feed_email = 'none'; public $log_path = 'C:\www\joomla4test\administrator/logs'; public $tmp_path = 'C:\www\joomla4test/tmp'; public $lifetime = 180; public $session_handler = 'database'; public $shared_session = FALSE; public $session_metadata = TRUE; public $memcached_persist = TRUE; public $memcached_compress = FALSE; public $memcached_server_host = 'localhost'; public $memcached_server_port = 11211; public $redis_persist = TRUE; public $redis_server_host = 'localhost'; public $redis_server_port = 6379; public $redis_server_db = 0; public $cors = FALSE; public $cors_allow_origin = '*'; public $cors_allow_headers = 'Content-Type,X-Joomla-Token'; public $cors_allow_methods = ''; public $behind_loadbalancer = FALSE; public $proxy_enable = FALSE; public $proxy_host = ''; public $proxy_port = ''; public $proxy_user = ''; public $massmailoff = FALSE; public $replyto = 'toivo@talikka.com'; public $replytoname = 'Toivo J Talikka'; public $MetaRights = ''; public $sitename_pagetitles = 0; public $session_filesystem_path = ''; public $session_memcached_server_host = 'localhost'; public $session_memcached_server_port = 11211; public $session_redis_persist = 1; public $session_redis_server_host = 'localhost'; public $session_redis_server_port = 6379; public $session_redis_server_db = 0; public $frontediting = 1; public $block_floc = 0; public $log_everything = 1; public $log_deprecated = 0; public $log_priorities = [...]; public $log_categories = ''; public $log_category_mode = 0; public $cookie_domain = ''; public $cookie_path = ''; public $asset_id = '1'; public $redis_server_auth = ''; public $session_redis_server_auth = '' }; protected $initialized = TRUE; public $separator = '.' }, $dispatcher = class Joomla\Event\Dispatcher { protected $events = []; protected $listeners = ['session.start' => class Joomla\Event\ListenersPriorityQueue { ... }] }, $container = class Joomla\DI\Container { protected $aliases = ['Joomla\CMS\Application\AdministratorApplication' => 'JApplicationAdministrator', 'Joomla\CMS\Application\SiteApplication' => 'JApplicationSite', 'Joomla\CMS\Application\ConsoleApplication' => 'Joomla\Console\Application', 'Joomla\CMS\Console\Loader\WritableContainerLoader' => 'Joomla\Console\Loader\LoaderInterface', 'Joomla\CMS\Console\Loader\WritableLoaderInterface' => 'Joomla\Console\Loader\LoaderInterface', 'Joomla\CMS\Application\ApiApplication' => 'JApplicationApi', 'password.handler.argon2i' => 'Joomla\CMS\Authentication\Password\Argon2iHandler', 'Joomla\Authentication\Password\Argon2iHandler' => 'Joomla\CMS\Authentication\Password\Argon2iHandler', 'password.handler.argon2id' => 'Joomla\CMS\Authentication\Password\Argon2idHandler', 'Joomla\Authentication\Password\Argon2idHandler' => 'Joomla\CMS\Authentication\Password\Argon2idHandler', 'password.handler.chained' => 'Joomla\CMS\Authentication\Password\ChainedHandler', 'password.handler.default' => 'Joomla\CMS\Authentication\Password\BCryptHandler', 'Joomla\Authentication\Password\BCryptHandler' => 'Joomla\CMS\Authentication\Password\BCryptHandler', 'password.handler.bcrypt' => 'Joomla\CMS\Authentication\Password\BCryptHandler', 'password.handler.md5' => 'Joomla\CMS\Authentication\Password\MD5Handler', 'password.handler.phpass' => 'Joomla\CMS\Authentication\Password\PHPassHandler', 'cache.controller.factory' => 'Joomla\CMS\Cache\CacheControllerFactoryInterface', 'Joomla\CMS\Cache\CacheControllerFactory' => 'Joomla\CMS\Cache\CacheControllerFactoryInterface', 'config' => 'JConfig', 'db' => 'Joomla\Database\DatabaseInterface', 'DatabaseDriver' => 'Joomla\Database\DatabaseInterface', 'Joomla\Database\DatabaseDriver' => 'Joomla\Database\DatabaseInterface', 'dispatcher' => 'Joomla\Event\DispatcherInterface', 'Joomla\Event\Dispatcher' => 'Joomla\Event\DispatcherInterface', 'document.factory' => 'Joomla\CMS\Document\FactoryInterface', 'Joomla\CMS\Document\Factory' => 'Joomla\CMS\Document\FactoryInterface', 'form.factory' => 'Joomla\CMS\Form\FormFactoryInterface', 'Joomla\CMS\Form\FormFactory' => 'Joomla\CMS\Form\FormFactoryInterface', 'logger' => 'Psr\Log\LoggerInterface', 'language.factory' => 'Joomla\CMS\Language\LanguageFactoryInterface', 'Joomla\CMS\Language\CachingLanguageFactory' => 'Joomla\CMS\Language\LanguageFactoryInterface', 'menu.factory' => 'Joomla\CMS\Menu\MenuFactoryInterface', 'Joomla\CMS\Menu\MenuFactory' => 'Joomla\CMS\Menu\MenuFactoryInterface', 'SitePathway' => 'Joomla\CMS\Pathway\SitePathway', 'JPathwaySite' => 'Joomla\CMS\Pathway\SitePathway', 'pathway.site' => 'Joomla\CMS\Pathway\SitePathway', 'Pathway' => 'Joomla\CMS\Pathway\Pathway', 'JPathway' => 'Joomla\CMS\Pathway\Pathway', 'pathway' => 'Joomla\CMS\Pathway\Pathway', 'Joomla\CMS\Session\SessionFactory' => 'session.factory', 'Joomla\CMS\Session\SessionManager' => 'session.manager', 'Joomla\CMS\Session\MetadataManager' => 'session.metadata_manager', 'Joomla\CMS\Session\EventListener\MetadataManagerListener' => 'session.event_listener.metadata_manager', 'toolbar.factory' => 'Joomla\CMS\Toolbar\ToolbarFactoryInterface', 'Joomla\CMS\Toolbar\ContainerAwareToolbarFactory' => 'Joomla\CMS\Toolbar\ToolbarFactoryInterface', 'webassetregistry' => 'Joomla\CMS\WebAsset\WebAssetRegistry', 'ApiRouter' => 'Joomla\CMS\Router\ApiRouter', 'user.factory' => 'Joomla\CMS\User\UserFactoryInterface', 'Joomla\CMS\User\UserFactory' => 'Joomla\CMS\User\UserFactoryInterface', 'session' => 'session.cli', 'JSession' => 'session.cli', 'Joomla\CMS\Session\Session' => 'session.cli', 'Joomla\Session\Session' => 'session.cli', 'Joomla\Session\SessionInterface' => 'session.cli']; protected $resources = ['JApplicationAdministrator' => class Joomla\DI\ContainerResource { ... }, 'JApplicationSite' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Console\Application' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Console\Loader\LoaderInterface' => class Joomla\DI\ContainerResource { ... }, 'JApplicationApi' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\Argon2iHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\Argon2idHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\ChainedHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\BCryptHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\MD5Handler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Authentication\Password\PHPassHandler' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Cache\CacheControllerFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'JConfig' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SessionGcCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SessionMetadataGcCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Database\Command\ExportCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Database\Command\ImportCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SiteDownCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SiteUpCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\SetConfigurationCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\GetConfigurationCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionsListCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\CheckJoomlaUpdatesCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionRemoveCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionInstallCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionDiscoverCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionDiscoverInstallCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\ExtensionDiscoverListCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\UpdateCoreCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\FinderIndexCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\TasksListCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\TasksRunCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Console\TasksStateCommand' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Database\DatabaseInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\Event\DispatcherInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Document\FactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Form\FormFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Psr\Log\LoggerInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Language\LanguageFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Menu\MenuFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Pathway\SitePathway' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Pathway\Pathway' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\HTML\Registry' => class Joomla\DI\ContainerResource { ... }, 'session.web.administrator' => class Joomla\DI\ContainerResource { ... }, 'session.web.installation' => class Joomla\DI\ContainerResource { ... }, 'session.web.site' => class Joomla\DI\ContainerResource { ... }, 'session.cli' => class Joomla\DI\ContainerResource { ... }, 'session.factory' => class Joomla\DI\ContainerResource { ... }, 'session.manager' => class Joomla\DI\ContainerResource { ... }, 'session.metadata_manager' => class Joomla\DI\ContainerResource { ... }, 'session.event_listener.metadata_manager' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Toolbar\ToolbarFactoryInterface' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\WebAsset\WebAssetRegistry' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\Router\ApiRouter' => class Joomla\DI\ContainerResource { ... }, 'Joomla\CMS\User\UserFactoryInterface' => class Joomla\DI\ContainerResource { ... }]; protected $parent = NULL; protected $tags = [] }, $language = class Joomla\CMS\Language\Language { protected $debug = FALSE; protected $default = 'en-GB'; protected $orphans = []; protected $metadata = ['name' => 'English (United Kingdom)', 'nativeName' => 'English (United Kingdom)', 'tag' => 'en-GB', 'rtl' => '0', 'locale' => 'en_GB.utf8, en_GB.UTF-8, en_GB, eng_GB, en, english, english-uk, uk, gbr, britain, england, great britain, uk, united kingdom, united-kingdom', 'firstDay' => '0', 'weekEnd' => '0,6', 'calendar' => 'gregorian']; protected $locale = NULL; protected $lang = 'en-GB'; protected $paths = ['joomla' => [...]]; protected $errorfiles = []; protected $strings = ['JERROR_PARSING_LANGUAGE_FILE' => ' : error(s) in line(s) %s', 'ERROR' => 'Error', 'INFO' => 'Info', 'MESSAGE' => 'Message', 'NOTICE' => 'Notice', 'WARNING' => 'Warning', 'J1' => '1', 'J2' => '2', 'J3' => '3', 'J4' => '4', 'J5' => '5', 'J6' => '6', 'J7' => '7', 'J8' => '8', 'J9' => '9', 'J10' => '10', 'J15' => '15', 'J20' => '20', 'J25' => '25', 'J30' => '30', 'J50' => '50', 'J100' => '100', 'J200' => '200', 'J500' => '500', 'JACTION_ADMIN' => 'Configure', 'JACTION_ADMIN_GLOBAL' => 'Super User', 'JACTION_COMPONENT_SETTINGS' => 'Component Settings', 'JACTION_CREATE' => 'Create', 'JACTION_DELETE' => 'Delete', 'JACTION_EDIT' => 'Edit', 'JACTION_EDITOWN' => 'Edit Own', 'JACTION_EDITSTATE' => 'Edit State', 'JACTION_LOGIN_ADMIN' => 'Administrator Login', 'JACTION_LOGIN_API' => 'Web Services Login', 'JACTION_LOGIN_SITE' => 'Site Login', 'JACTION_MANAGE' => 'Access Administration Interface', 'JADMINISTRATOR' => 'Administrator', 'JALIAS' => 'Alias', 'JALL' => 'All', 'JALL_LANGUAGE' => 'All', 'JAPI' => 'API', 'JAPPLY' => 'Save', 'JARCHIVED' => 'Archived', 'JASSOCIATIONS' => 'Also available:', 'JASSOCIATIONS_ASC' => 'Associations ascending', 'JASSOCIATIONS_DESC' => 'Associations descending', 'JAUTHOR' => 'Author', 'JAUTHOR_ASC' => 'Author ascending', 'JAUTHOR_DESC' => 'Author descending', 'JCANCEL' => 'Cancel', 'JCATEGORY' => 'Category', 'JCATEGORY_ASC' => 'Category ascending', 'JCATEGORY_DESC' => 'Category descending', 'JCLEAR' => 'Clear', 'JCLOSE' => 'Close', 'JDATE' => 'Date', 'JDATE_ASC' => 'Date ascending', 'JDATE_DESC' => 'Date descending', 'JDAY' => 'Day', 'JDEFAULT' => 'Default', 'JDETAILS' => 'Details', 'JDISABLED' => 'Disabled', 'JEDITOR' => 'Editor', 'JENABLED' => 'Enabled', 'JEXPIRED' => 'Expired', 'JFALSE' => 'False', 'JFEATURED' => 'Featured', 'JFEATURED_ASC' => 'Featured ascending', 'JFEATURED_DESC' => 'Featured descending', 'JINLINEHELP' => 'Toggle Inline Help', 'JHIDE' => 'Hide', 'JHIDEPASSWORD' => 'Hide Password', 'JINVALID_TOKEN' => 'The most recent request was denied because it had an invalid security token. Please refresh the page and try again.', 'JINVALID_TOKEN_NOTICE' => 'The security token did not match. The request was aborted to prevent any security breach. Please try again.', 'JLOGIN' => 'Log in', 'JLOGOUT' => 'Log out', 'JMONTH' => 'Month', 'JNEW' => 'New', 'JNEXT' => 'Next', 'JNEXT_TITLE' => 'Next article: %s', 'JNO' => 'No', 'JNONE' => 'None', 'JNOTPUBLISHEDYET' => 'Not published yet', 'JNOTICE' => 'Notice', 'JOK' => 'OK', 'JOFF' => 'Off', 'JOFFLINE_MESSAGE' => 'This site is down for maintenance.
Please check back again soon.', 'JON' => 'On', 'JOPEN' => 'Open', 'JOPTIONS' => 'Options', 'JPAGETITLE' => '%1$s - %2$s', 'JPREV' => 'Prev', 'JPREVIOUS' => 'Previous', 'JPREVIOUS_TITLE' => 'Previous article: %s', 'JPUBLISHED' => 'Published', 'JREGISTER' => 'Register', 'JREQUIRED' => 'Required', 'JRESET' => 'Reset', 'JSAVE' => 'Save', 'JSAVEASCOPY' => 'Save As Copy', 'JSELECT' => 'Select', 'JSHOW' => 'Show', 'JSHOWPASSWORD' => 'Show Password', 'JSITE' => 'Site', 'JSITEADMIN' => 'Select Client', 'JSTATUS' => 'Status', 'JSTATUS_ASC' => 'Status ascending', 'JSTATUS_DESC' => 'Status descending', 'JSUBMIT' => 'Submit', 'JTAG' => 'Tags', 'JTAG_FIELD_SELECT_DESC' => 'Select the tag to use.', 'JTOOLBAR' => 'Toolbar', 'JTOOLBAR_VERSIONS' => 'Versions', 'JTRASH' => 'Trash', 'JTRASHED' => 'Trashed', 'JTRUE' => 'True', 'JUNPUBLISHED' => 'Unpublished', 'JUSER_TOOLS' => 'User tools', 'JVISIT_LINK' => 'Visit Link', 'JVISIT_WEBSITE' => 'Visit Website', 'JYEAR' => 'Year', 'JYES' => 'Yes', 'JBROWSERTARGET_DOWNLOAD' => 'Download %s in new window', 'JBROWSERTARGET_MODAL' => 'Modal', 'JBROWSERTARGET_NEW' => 'Open in new window', 'JBROWSERTARGET_NEW_TITLE' => 'Open %s in new window', 'JBROWSERTARGET_PARENT' => 'Open in parent window', 'JBROWSERTARGET_POPUP' => 'Open in popup', ...]; protected $used = []; protected $counter = 1; protected $override = []; protected $transliterator = NULL; protected $pluralSuffixesCallback = [0 => 'en_GBLocalise', 1 => 'getPluralSuffixes']; protected $ignoredSearchWordsCallback = NULL; protected $lowerLimitSearchWordCallback = NULL; protected $upperLimitSearchWordCallback = NULL; protected $searchDisplayedCharactersNumberCallback = NULL }, $input = uninitialized, $output = uninitialized) C:\www\joomla4test\libraries\src\Service\Provider\Application.php:128
[21-Apr-2022 05:49:19 UTC] PHP 6. Joomla\CMS\Autoload\ClassLoader->loadClass($class = 'Joomla\CMS\Input\Cli') C:\www\joomla4test\libraries\src\Application\ConsoleApplication.php:120
[21-Apr-2022 05:49:19 UTC] PHP 7. Composer\Autoload\ClassLoader->loadClass($class = 'Joomla\CMS\Input\Cli') C:\www\joomla4test\libraries\src\Autoload\ClassLoader.php:56
[21-Apr-2022 05:49:19 UTC] PHP 8. Composer\Autoload\includeFile($file = 'C:\www\joomla4test\libraries\vendor\composer/../../../libraries/src/Input/Cli.php') C:\www\joomla4test\libraries\vendor\composer\ClassLoader.php:344
[21-Apr-2022 05:49:19 UTC] PHP 9. include() C:\www\joomla4test\libraries\vendor\composer\ClassLoader.php:476
[21-Apr-2022 05:49:19 UTC] PHP 10. Joomla\CMS\Autoload\ClassLoader->loadClass($class = 'Joomla\CMS\Input\Input') C:\www\joomla4test\libraries\src\Input\Cli.php:21
[21-Apr-2022 05:49:19 UTC] PHP 11. Composer\Autoload\ClassLoader->loadClass($class = 'Joomla\CMS\Input\Input') C:\www\joomla4test\libraries\src\Autoload\ClassLoader.php:56
[21-Apr-2022 05:49:19 UTC] PHP 12. Composer\Autoload\includeFile($file = 'C:\www\joomla4test\libraries\vendor\composer/../../../libraries/src/Input/Input.php') C:\www\joomla4test\libraries\vendor\composer\ClassLoader.php:344
[21-Apr-2022 05:49:19 UTC] PHP 13. include() C:\www\joomla4test\libraries\vendor\composer\ClassLoader.php:476
[21-Apr-2022 05:49:19 UTC] PHP 14. Joomla\CMS\Autoload\ClassLoader->loadClass($class = 'Joomla\Input\Input') C:\www\joomla4test\libraries\src\Input\Input.php:31
[21-Apr-2022 05:49:19 UTC] PHP 15. Composer\Autoload\ClassLoader->loadClass($class = 'Joomla\Input\Input') C:\www\joomla4test\libraries\src\Autoload\ClassLoader.php:56
[21-Apr-2022 05:49:19 UTC] PHP 16. Composer\Autoload\includeFile($file = 'C:\www\joomla4test\libraries\vendor\composer/../joomla/input/src/Input.php') C:\www\joomla4test\libraries\vendor\composer\ClassLoader.php:344
[21-Apr-2022 05:49:19 UTC] PHP 17. include() C:\www\joomla4test\libraries\vendor\composer\ClassLoader.php:476


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37591.
avatar toivo toivo - test_item - 21 Apr 2022 - Tested successfully
avatar alikon
alikon - comment - 21 Apr 2022

@toivo i believed was solved by joomla-framework/input#34

avatar toivo
toivo - comment - 21 Apr 2022

@alikon ok, if that is the case, is the fix somehow missing from 4.1.3-dev? Otherwise this PR did what it said it will do.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37591.

avatar alikon
alikon - comment - 21 Apr 2022

as per https://github.com/joomla/joomla-cms/blob/4.1-dev/composer.json#L59 it should be already there
can you do a composer update ?

avatar toivo
toivo - comment - 22 Apr 2022

@alikon - sorry, composer is a tool I have never used


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37591.

avatar heelc29
heelc29 - comment - 23 Apr 2022

I have tested this item ? unsuccessfully on c9d96ce

command scheduler:list no longer works correctly

Before PR

id title type state next run
1 Sleep1 State1 Demo Task - Sleep Enabled DUE!
2 Sleep2 State0 Demo Task - Sleep Disabled Sat, 23 Apr 2022 14:05:26 +0000
3 Sleep3 State-2 Demo Task - Sleep Trashed Sat, 23 Apr 2022 14:05:26 +0000

After PR

id title type state next run
1 Sleep1 State1 Demo Task - Sleep Trashed Sat, 23 Apr 2022 14:05:45 +0000
2 Sleep2 State0 Demo Task - Sleep Trashed Sat, 23 Apr 2022 14:05:45 +0000
3 Sleep3 State-2 Demo Task - Sleep Trashed Sat, 23 Apr 2022 14:05:45 +0000
object(stdClass) {
  ["id"]    => int(1)
  ["title"] => string(13) "Sleep1 State1"
  ["type"]  => string(17) "demoTask_r1.sleep"
  ["state"] => int(1)
}

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37591.
avatar heelc29 heelc29 - test_item - 23 Apr 2022 - Tested unsuccessfully
avatar alikon
alikon - comment - 8 May 2022

fixed
ca you re-test ?

avatar heelc29
heelc29 - comment - 8 May 2022

I have tested this item successfully on 2544923


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37591.

avatar heelc29 heelc29 - test_item - 8 May 2022 - Tested successfully
avatar toivo
toivo - comment - 8 May 2022

I have tested this item successfully on 2544923

Tested successfully in Joomla 4.1.3-rc2-dev of 8 May using Wampserver 3.2.8 - CLI uses PHP 8.1.2

However, each CLI command started with a PHP warning, included below.

C:\www\joomla4test>php cli/joomla.php scheduler:list

Warning: Undefined array key "HTTP_HOST" in C:\www\joomla4test\libraries\src\Uri\Uri.php on line 103

Call Stack:
0.0011 406112 1. {main}() C:\www\joomla4test\cli\joomla.php:0
0.2161 8189264 2. Joomla\CMS\Application\ConsoleApplication->execute() C:\www\joomla4test\cli\joomla.php:78
0.2195 8341544 3. Joomla\CMS\Plugin\PluginHelper::importPlugin($type = 'system', $plugin = ???, $autocreate = ???, $dispatcher = ???) C:\www\joomla4test\libraries\src\Application\ConsoleApplication.php:231
0.2591 9446840 4. Joomla\CMS\Plugin\PluginHelper::import($plugin = class stdClass { public $type = 'system'; public $name = 'foundry'; public $params = '{}'; public $id = 314 }, $autocreate = TRUE, $dispatcher = class Joomla\Event\Dispatcher { protected $events = []; protected $listeners = ['session.start' => class Joomla\Event\ListenersPriorityQueue { ... }] }) C:\www\joomla4test\libraries\src\Plugin\PluginHelper.php:194
0.2591 9447704 5. Joomla\CMS\Application\ConsoleApplication->bootPlugin($plugin = 'foundry', $type = 'system') C:\www\joomla4test\libraries\src\Plugin\PluginHelper.php:236
0.2591 9447824 6. Joomla\CMS\Application\ConsoleApplication->loadExtension($type = 'Joomla\CMS\Extension\PluginInterface', $extensionName = 'foundry:system', $extensionPath = 'C:\www\joomla4test/plugins/system/foundry') C:\www\joomla4test\libraries\src\Extension\ExtensionManagerTrait.php:94
0.2624 9611616 7. Joomla\CMS\Application\ConsoleApplication->loadPluginFromFilesystem($plugin = 'foundry', $type = 'system') C:\www\joomla4test\libraries\src\Extension\ExtensionManagerTrait.php:160
0.2750 9620560 8. require_once('C:\www\joomla4test\plugins\system\foundry\foundry.php') C:\www\joomla4test\libraries\src\Extension\ExtensionManagerTrait.php:219
0.2914 9664448 9. require_once('C:\www\joomla4test\libraries\foundry\foundry.php') C:\www\joomla4test\plugins\system\foundry\foundry.php:22
0.3066 9673384 10. require_once('C:\www\joomla4test\libraries\foundry\constants.php') C:\www\joomla4test\libraries\foundry\foundry.php:15
0.3093 9839136 11. Joomla\CMS\Uri\Uri::root($pathonly = ???, $path = ???) C:\www\joomla4test\libraries\foundry\constants.php:21
0.3093 9839200 12. Joomla\CMS\Uri\Uri::base($pathonly = ???) C:\www\joomla4test\libraries\src\Uri\Uri.php:204
0.3093 9839200 13. Joomla\CMS\Uri\Uri::getInstance($uri = ???) C:\www\joomla4test\libraries\src\Uri\Uri.php:142


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37591.

avatar toivo toivo - test_item - 8 May 2022 - Tested successfully
avatar toivo
toivo - comment - 8 May 2022

Tested in Joomla 4.1.3-rc2-dev of 8 May in Wampserver 3.2.8 - CLI uses PHP 8.1.2 but a PHP warning is reported by each CLI command, for example:

C:\www\joomla4test>php cli/joomla.php scheduler:list

Warning: Undefined array key "HTTP_HOST" in C:\www\joomla4test\libraries\src\Uri\Uri.php on line 103

Call Stack:
0.0011 406112 1. {main}() C:\www\joomla4test\cli\joomla.php:0
0.2161 8189264 2. Joomla\CMS\Application\ConsoleApplication->execute() C:\www\joomla4test\cli\joomla.php:78
0.2195 8341544 3. Joomla\CMS\Plugin\PluginHelper::importPlugin($type = 'system', $plugin = ???, $autocreate = ???, $dispatcher = ???) C:\www\joomla4test\libraries\src\Application\ConsoleApplication.php:231
0.2591 9446840 4. Joomla\CMS\Plugin\PluginHelper::import($plugin = class stdClass { public $type = 'system'; public $name = 'foundry'; public $params = '{}'; public $id = 314 }, $autocreate = TRUE, $dispatcher = class Joomla\Event\Dispatcher { protected $events = []; protected $listeners = ['session.start' => class Joomla\Event\ListenersPriorityQueue { ... }] }) C:\www\joomla4test\libraries\src\Plugin\PluginHelper.php:194
0.2591 9447704 5. Joomla\CMS\Application\ConsoleApplication->bootPlugin($plugin = 'foundry', $type = 'system') C:\www\joomla4test\libraries\src\Plugin\PluginHelper.php:236
0.2591 9447824 6. Joomla\CMS\Application\ConsoleApplication->loadExtension($type = 'Joomla\CMS\Extension\PluginInterface', $extensionName = 'foundry:system', $extensionPath = 'C:\www\joomla4test/plugins/system/foundry') C:\www\joomla4test\libraries\src\Extension\ExtensionManagerTrait.php:94
0.2624 9611616 7. Joomla\CMS\Application\ConsoleApplication->loadPluginFromFilesystem($plugin = 'foundry', $type = 'system') C:\www\joomla4test\libraries\src\Extension\ExtensionManagerTrait.php:160
0.2750 9620560 8. require_once('C:\www\joomla4test\plugins\system\foundry\foundry.php') C:\www\joomla4test\libraries\src\Extension\ExtensionManagerTrait.php:219
0.2914 9664448 9. require_once('C:\www\joomla4test\libraries\foundry\foundry.php') C:\www\joomla4test\plugins\system\foundry\foundry.php:22
0.3066 9673384 10. require_once('C:\www\joomla4test\libraries\foundry\constants.php') C:\www\joomla4test\libraries\foundry\foundry.php:15
0.3093 9839136 11. Joomla\CMS\Uri\Uri::root($pathonly = ???, $path = ???) C:\www\joomla4test\libraries\foundry\constants.php:21
0.3093 9839200 12. Joomla\CMS\Uri\Uri::base($pathonly = ???) C:\www\joomla4test\libraries\src\Uri\Uri.php:204
0.3093 9839200 13. Joomla\CMS\Uri\Uri::getInstance($uri = ???) C:\www\joomla4test\libraries\src\Uri\Uri.php:142


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37591.

avatar richard67 richard67 - change - 9 May 2022
Status Pending Ready to Commit
avatar richard67
richard67 - comment - 9 May 2022

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/37591.

avatar alikon
alikon - comment - 9 May 2022

@toivo i suppose this was solved by #35877

avatar laoneo laoneo - change - 16 May 2022
Labels Added: ?
avatar laoneo laoneo - change - 16 May 2022
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2022-05-16 11:04:31
Closed_By laoneo
avatar laoneo laoneo - close - 16 May 2022
avatar laoneo laoneo - merge - 16 May 2022
avatar laoneo
laoneo - comment - 16 May 2022

Thanks!

Add a Comment

Login with GitHub to post a comment