No Code Attached Yet
avatar PhilETaylor
PhilETaylor
25 Jun 2020

Steps to reproduce the issue

Joomla 4.x-dev

Ensure you have some PHP log output - mine here is a docker php-fpm log tail.

Install Akeeba Backup using Install From Url method with url

https://www.akeebabackup.com/download/akeeba-backup/7-2-1/pkg_akeeba-7-2-1-core-zip.zip

After its installed click "Home Dashboard"

Note that in the update checks the Checking extensions has failed

Screenshot 2020-06-25 at 16 30 52

Expected result

No PHP Notices

Actual result

Ajax request with Notices

Screenshot 2020-06-25 at 16 31 42

php_1 | 192.168.32.5 - 25/Jun/2020:15:27:10 +0000 "GET /administrator/index.php" 200
php_1 | 192.168.32.5 - 25/Jun/2020:15:27:10 +0000 "GET /administrator/index.php" 200
php_1 | NOTICE: PHP message: PHP Notice: Trying to get property 'id' of non-object in /application/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 333
php_1 | 192.168.32.5 - 25/Jun/2020:15:27:10 +0000 "GET /index.php" 404
php_1 | 192.168.32.5 - 25/Jun/2020:15:27:10 +0000 "GET /index.php" 404
php_1 | NOTICE: PHP message: PHP Notice: Trying to get property 'id' of non-object in /application/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 333
php_1 | 192.168.32.5 - 25/Jun/2020:15:27:10 +0000 "GET /administrator/index.php" 200
webserver_1 | 2020/06/25 15:27:10 [error] 9#9: *155 FastCGI sent in stderr: "PHP message: PHP Notice: Trying to get property 'id' of non-object in /application/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 333PHP message: PHP Notice: Trying to get property 'id' of non-object in /application/libraries/src/Updater/Adapter/ExtensionAdapter.php on line 333" while reading response header from upstream, client: 192.168.32.1, server: , request: "GET /administrator/index.php?option=com_installer&view=update&task=update.ajax&198756102de4392ec83bef34a7d00709=1&cache_timeout=3600&eid=0&skip=212 HTTP/1.1", upstream: "fastcgi://192.168.32.2:9000", host: "127.0.0.1", referrer: "http://127.0.0.1/administrator/index.php"
php_1 | 192.168.32.5 - 25/Jun/2020:15:27:12 +0000 "GET /administrator/index.php" 200

System information (as much as possible)

safari on Mac

Additional comments

THE SECOND and subsequent times it loads ok, can only be replicated on first load

avatar PhilETaylor PhilETaylor - open - 25 Jun 2020
avatar joomla-cms-bot joomla-cms-bot - change - 25 Jun 2020
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 25 Jun 2020
avatar PhilETaylor PhilETaylor - change - 25 Jun 2020
Title
[4.0]
[4.0] PHP Notice: Trying to get property 'id' of non-object in /application/libraries/src/Updater/Adapter/ExtensionAdapter.php
avatar PhilETaylor PhilETaylor - edited - 25 Jun 2020
avatar PhilETaylor PhilETaylor - change - 25 Jun 2020
The description was changed
avatar PhilETaylor PhilETaylor - edited - 25 Jun 2020
avatar chmst
chmst - comment - 25 Jun 2020

There was already a PR: #17481 a longer time ago. Which PHP Version is on your server?


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

avatar PhilETaylor
PhilETaylor - comment - 25 Jun 2020

I doubt it’s php version specific

I only use the latest php 7.4 version in docker containers

avatar PhilETaylor
PhilETaylor - comment - 28 Jun 2020

I can also replicate this in the CLI Application

On the first run of the command php cli/joomla.php update:extensions:check -vvv you get the PHP Notices and then they dont show on the second and further

Screenshot 2020-06-28 at 20 17 40

Tested today on af9be59

avatar PhilETaylor
PhilETaylor - comment - 1 Jul 2020

PR #28979

avatar PhilETaylor PhilETaylor - change - 1 Jul 2020
Status New Closed
Closed_Date 0000-00-00 00:00:00 2020-07-01 17:05:13
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - close - 1 Jul 2020
avatar PhilETaylor
PhilETaylor - comment - 1 Jul 2020

So I attempted to resolve this, and my proposed solutions were rejected - so I'm reopening this issue as it IS AN ISSUE to resolve (Showing of PHP Notices) and someone else can have a go.

avatar PhilETaylor PhilETaylor - change - 1 Jul 2020
Status Closed New
Closed_Date 2020-07-01 17:05:13
Closed_By PhilETaylor
avatar PhilETaylor PhilETaylor - reopen - 1 Jul 2020
avatar wilsonge
wilsonge - comment - 3 Jan 2021

I can't reproduce this with the modern (gave me an unrelated error on install) or original reported akeeba version (either in UI or CLI).

avatar PhilETaylor
PhilETaylor - comment - 8 Jan 2021

I just replicated this again in Joomla 4 beta 6

I went to the JED (install from web) and installed 4 or 5 extensions from the home page of install from web, including Akeeba and JEvents

When I load the home dashboard of admin I get this problem with the Ajax call from the updates checker quick icon

<br/>
<b>Warning</b>
:  Attempt to read property "id" on null in 
<b>/Users/phil/Downloads/Joomla_4.0.0-beta6-Beta-Full_Package/libraries/src/Updater/Adapter/ExtensionAdapter.php</b>
 on line 
<b>333</b>
<br/>

[{"update_id":80,"update_site_id":8,"extension_id":250,"name":"JEvents","description":"JEvents Package Update","element":"pkg_jevents","type":"package","folder":"","client_id":0,"version":"3.6.12","data":"","detailsurl":"https:\/\/www.jevents.net\/newupdates\/package_jevents.xml","infourl":"https:\/\/www.jevents.net\/product-page?item_id=857","changelogurl":null,"extra_query":"","manifest_cache":"{\"name\":\"JEV_PACKAGE_TITLE\",\"type\":\"package\",\"creationDate\":\"September 2020\",\"author\":\"GWE Systems Ltd\",\"copyright\":\"(C) 2012-2020 GWE Systems Ltd\",\"authorEmail\":\"\",\"authorUrl\":\"www.gwesystems.com\",\"version\":\"3.6.6\",\"description\":\"JEV_PACKAGE_DESC\",\"group\":\"\",\"filename\":\"pkg_jevents\"}","client_translated":"Site","current_version":"3.6.6","type_translated":"Package","folder_translated":"N\/A","install_type":"Update"}]

The second page load it doesn't happen (as, cache!)

Then if I go to the list of updates, and clear cache, and then return to home dashboard, I can repeat the error

I can replicate this again and again on demand.

avatar Quy
Quy - comment - 28 Aug 2021
avatar richard67
richard67 - comment - 14 Oct 2021

It seems someone could reproduce it with some other 3rd party extensions, see the issue here recently reported: #35815 .

avatar richard67 richard67 - close - 14 Oct 2021
avatar richard67
richard67 - comment - 14 Oct 2021

Closing as having a pull request. Please test #35822 . Thanks in advance.

avatar richard67 richard67 - change - 14 Oct 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-10-14 11:29:33
Closed_By richard67
Labels Added: No Code Attached Yet
Removed: ?

Add a Comment

Login with GitHub to post a comment