No Code Attached Yet
avatar ReLater
ReLater
4 Feb 2023

Steps to reproduce the issue

  • PHP 8.1. Joomla 4.2.7
  • When I open the Dashboard of a j3-4-migrated site I see fatal error:

Error: Attempt to assign property "name" on null. File: .../libraries/src/Updater/Adapter/ExtensionAdapter.php:70

When I deactivate plugin Quickicon Extension Updates error is gone.

grafik

Whatever the reason (which extension) for this error is, code inspection of the mentioned file shows a logical error. $this->currentUpdate is never defined inside switch($name) - default:, but only in switch($name) - case 'UPDATE':.

https://github.com/joomla/joomla-cms/blob/4.2-dev/libraries/src/Updater/Adapter/ExtensionAdapter.php#L53-L85

I don't know if moving this line up (before switch) is enough/correct. It helped at the moment:

$this->currentUpdate = Table::getInstance('update');

avatar ReLater ReLater - open - 4 Feb 2023
avatar joomla-cms-bot joomla-cms-bot - change - 4 Feb 2023
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 4 Feb 2023
avatar ReLater
ReLater - comment - 13 Feb 2023

PR #39857

avatar ReLater ReLater - close - 13 Feb 2023
avatar ReLater ReLater - change - 13 Feb 2023
Status New Closed
Closed_Date 0000-00-00 00:00:00 2023-02-13 13:04:00
Closed_By ReLater

Add a Comment

Login with GitHub to post a comment