1.5.8 Digital Downloads / PHP Warning: Trying to access array offset on value of type
ZC 1.5.8
PHP 8.0
I'm getting the following warning when downloading a digital product via the download now button when viewing the order. Everything is processed as it should.
Code:
Request URI: /index.php?main_page=download&order=72&id=68, IP address: X.X.X.X
#1 zcObserverDownloadsViaUrl->updateNotifyCheckDownloadHandler() called at [/includes/classes/traits/NotifierManager.php:87]
#2 base->notify() called at [/includes/modules/pages/download/header_php.php:89]
#3 require(/includes/modules/pages/download/header_php.php) called at [/index.php:35]
--> PHP Warning: Trying to access array offset on value of type bool in /includes/classes/observers/auto.downloads_via_url.php on line 93.
Request URI: /index.php?main_page=download&order=72&id=68, IP address: X.X.X.X
#1 zcObserverDownloadsViaUrl->updateNotifyCheckDownloadHandler() called at [/includes/classes/traits/NotifierManager.php:87]
#2 base->notify() called at [/includes/modules/pages/download/header_php.php:89]
#3 require(/includes/modules/pages/download/header_php.php) called at [/index.php:35]
--> PHP Warning: Trying to access array offset on value of type bool in /includes/classes/observers/auto.downloads_via_url.php on line 93.
Request URI: /index.php?main_page=download&order=72&id=68, IP address: X.X.X.X
#1 zcObserverDownloadsViaUrl->updateNotifyDownloadReadyToStart() called at [/includes/classes/traits/NotifierManager.php:87]
#2 base->notify() called at [/includes/modules/pages/download/header_php.php:148]
#3 require(/includes/modules/pages/download/header_php.php) called at [/index.php:35]
--> PHP Warning: Trying to access array offset on value of type bool in /includes/classes/observers/auto.downloads_via_url.php on line 122.
Request URI: /index.php?main_page=download&order=72&id=68, IP address: X.X.X.X
#1 zcObserverDownloadsViaUrl->updateNotifyDownloadReadyToStart() called at [/includes/classes/traits/NotifierManager.php:87]
#2 base->notify() called at [/includes/modules/pages/download/header_php.php:148]
#3 require(/includes/modules/pages/download/header_php.php) called at [/index.php:35]
--> PHP Warning: Trying to access array offset on value of type bool in /includes/classes/observers/auto.downloads_via_url.php on line 122.
Re: 1.5.8 Digital Downloads / PHP Warning: Trying to access array offset on value of
Thanks for the report; I've confirmed this as a base-code bug and will be submitting an update shortly.
Re: 1.5.8 Digital Downloads / PHP Warning: Trying to access array offset on value of
Shortly is now! Here's a link to my proposed update to correct the issue: https://github.com/zencart/zencart/pull/5606/files
Re: 1.5.8 Digital Downloads / PHP Warning: Trying to access array offset on value of
Thanks! I'll give it a spin :)
Re: 1.5.8 Digital Downloads / PHP Warning: Trying to access array offset on value of
I can confirm it does the trick and no further errors. Thank you.