No Code Attached Yet Information Required
avatar wizzard102
wizzard102
13 Mar 2025

Steps to reproduce the issue

use backend to run extension updates throws error

Expected result

Actual result

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'

System information (as much as possible)

joomla 5.2.5
PHP 8.3.16
MySQLi 10.11.11-MariaDB

Additional comments

avatar wizzard102 wizzard102 - open - 13 Mar 2025
avatar wizzard102 wizzard102 - change - 13 Mar 2025
Labels Removed: ?
avatar joomla-cms-bot joomla-cms-bot - change - 13 Mar 2025
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 13 Mar 2025
avatar alikon
alikon - comment - 14 Mar 2025

what extension ?

avatar wizzard102
wizzard102 - comment - 14 Mar 2025

it is the system update extensions button that throws this error

avatar brianteeman
brianteeman - comment - 14 Mar 2025

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

avatar wizzard102
wizzard102 - comment - 14 Mar 2025

i have over 465 extensions it is a very big list

avatar brianteeman
brianteeman - comment - 14 Mar 2025

well one of those is the problem

avatar QuyTon QuyTon - change - 14 Mar 2025
Labels Added: Information Required
avatar QuyTon QuyTon - labeled - 14 Mar 2025
avatar QuyTon QuyTon - close - 20 Mar 2025
avatar QuyTon
QuyTon - comment - 20 Mar 2025

Closing as not a core issue.

avatar QuyTon QuyTon - change - 20 Mar 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-03-20 16:06:11
Closed_By QuyTon
avatar joomdonation joomdonation - change - 20 Mar 2025
Status Closed New
Closed_Date 2025-03-20 16:06:11
Closed_By QuyTon
avatar joomdonation joomdonation - reopen - 20 Mar 2025
avatar joomdonation
joomdonation - comment - 20 Mar 2025

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?

avatar richard67
richard67 - comment - 20 Mar 2025

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

avatar alikon
alikon - comment - 20 Mar 2025

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 ?

avatar joomdonation joomdonation - change - 21 Mar 2025
Status New Closed
Closed_Date 0000-00-00 00:00:00 2025-03-21 12:47:20
Closed_By joomdonation
avatar joomdonation joomdonation - close - 21 Mar 2025
avatar joomdonation
joomdonation - comment - 21 Mar 2025

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.

Add a Comment

Login with GitHub to post a comment