No Code Attached Yet bug
avatar brianteeman
brianteeman
18 Oct 2023

Steps to reproduce the issue

Install a clean joomla 4.4 set the update channel to next and then from the cli perform an update to j5
php .\cli\joomla.php core:update

Expected result

Update completes without error in the console

Actual result

update completes with the following notice

8/8 -- Copying files ...PHP Notice:  Only variables should be passed by reference in \plugins\extension\finder\services\provider.php on line 37
PHP Notice:  Only variables should be passed by reference in C:\laragon\www\j44\plugins\extension\joomla\services\provider.php on line 37
 9/9 -- Cleaning up ...
 [OK] Joomla core updated successfully!

System information (as much as possible)

PHP 8.1.3 (cli)
mysql-8.0.30-winx64

Additional comments

avatar brianteeman brianteeman - open - 18 Oct 2023
avatar joomla-cms-bot joomla-cms-bot - change - 18 Oct 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 18 Oct 2023
avatar brianteeman brianteeman - change - 18 Oct 2023
Title
cli console update
cli console update php notice
avatar brianteeman brianteeman - edited - 18 Oct 2023
avatar richard67 richard67 - change - 19 Oct 2023
Labels Added: bug
avatar richard67 richard67 - labeled - 19 Oct 2023
avatar brianteeman
brianteeman - comment - 19 Oct 2023

The code in those two files was changed between j4.4 and j5 by this PR #40746

avatar Fedik
Fedik - comment - 19 Oct 2023

hmhm, it could be the same as with language string in #42170

The updater run the script and code from 5.0 while CMSPlugin class already loaded from 4.4

Add a Comment

Login with GitHub to post a comment