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
No PHP Notices
Ajax request with Notices
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
safari on Mac
THE SECOND and subsequent times it loads ok, can only be replicated on first load
Labels |
Added:
?
|
Title |
|
I doubt it’s php version specific
I only use the latest php 7.4 version in docker containers
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-01 17:05:13 |
Closed_By | ⇒ | PhilETaylor |
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.
Status | Closed | ⇒ | New |
Closed_Date | 2020-07-01 17:05:13 | ⇒ | |
Closed_By | PhilETaylor | ⇒ |
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).
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.
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: ? |
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.