use backend to run extension updates throws error
www.***.com [Thu Mar 13 16:19:43 2025] [error] [******] AH01071: Got error 'PHP message: PHP Warning: Undefined property: Joomla\CMS\Table\Update::$targetplatform in /public_html/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 112; PHP message: PHP Warning: Trying to access array offset on null in /public_html/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 112; PHP message: PHP Warning: Undefined property: Joomla\CMS\Table\Update::$targetplatform in /public_html/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 112; PHP message: PHP Warning: Trying to access array offset on null in /public_html/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 112; PHP message: PHP Warning: preg_match(): Compilation failed: unmatched closing parenthesis at offset 26 in /public_html/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 113'
joomla 5.2.5
PHP 8.3.16
MySQLi 10.11.11-MariaDB
Labels |
Removed:
?
|
Labels |
Added:
No Code Attached Yet
|
it is the system update extensions button that throws this error
but what extensions do you have installed? From the error message it suggests that one of those extensions has faulty data for the targetplatfrom variable
i have over 465 extensions it is a very big list
well one of those is the problem
Labels |
Added:
Information Required
|
Closing as not a core issue.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-03-20 16:06:11 |
Closed_By | ⇒ | QuyTon |
Status | Closed | ⇒ | New |
Closed_Date | 2025-03-20 16:06:11 | ⇒ | |
Closed_By | QuyTon | ⇒ |
We would need to figure out if targetplatform
is required or optional for update server
If it is required, then the issue is from one of the extension
But if it is optional, it is a problem with our code.
@richard67 Do you know more about this?
We would need to figure out if
targetplatform
is required or optional for update server
@joomdonation That document says that the version part of the targetplatform is mandatory, so I would assume the targetplatform is mandatory, too:
version – The version of Joomla! the extension supports, like a regular expression (mandatory).
But I don't know it for sure, the documentation is not clear regarding that. The same applies to the old documentation: https://docs.joomla.org/Deploying_an_Update_Server
https://manual.joomla.org/docs/building-extensions/install-update/update-server/ this should be the more updated documentation
and as this tag it is not marked as optional targetplatform
'i'll assume it's mandatory maybe better to clearly state ?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-03-21 12:47:20 |
Closed_By | ⇒ | joomdonation |
So after looking at the documentation and quick look at the code, I can confirm that targetplatform
is required, so this is not an issue with Joomla but an issue from one of the extensions use on your site. @wizzard102 If you want to get this issue fixed, you can go login to administrator area of your site, access to System -> Update Sites. There you will see list of update sites, each update site has link to an XML file. Click on that link to see it's content, if you you don't see targetplatform
in the content, then contact the developer of the extension and ask him to correct it.
Since it is not an issue with Joomla, I'm closing. Thanks @richard67 and @alikon for sending useful information.
what extension ?