Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] PHP Notice: Trying to get property 'id' of non-object in /application/libraries/src/Updater/Adapter/ExtensionAdapter.php #29778

Closed
PhilETaylor opened this issue Jun 25, 2020 · 10 comments

Comments

@PhilETaylor
Copy link
Contributor

PhilETaylor commented Jun 25, 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

@PhilETaylor PhilETaylor changed the title [4.0] [4.0] PHP Notice: Trying to get property 'id' of non-object in /application/libraries/src/Updater/Adapter/ExtensionAdapter.php Jun 25, 2020
@chmst
Copy link
Contributor

chmst commented Jun 25, 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.

@PhilETaylor

This comment was marked as abuse.

@PhilETaylor

This comment was marked as abuse.

@PhilETaylor

This comment was marked as abuse.

@PhilETaylor

This comment was marked as abuse.

@PhilETaylor PhilETaylor reopened this Jul 1, 2020
@wilsonge
Copy link
Contributor

wilsonge commented Jan 3, 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).

@PhilETaylor

This comment was marked as abuse.

@Quy
Copy link
Contributor

Quy commented Aug 28, 2021

#35376

@richard67
Copy link
Member

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

@richard67
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants