Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2005
    Location
    United Kingdom
    Posts
    608
    Plugin Contributions
    0

    Default 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.

  2. #2
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,505
    Plugin Contributions
    88

    Default 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.

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    12,505
    Plugin Contributions
    88

    Default 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

  4. #4
    Join Date
    Mar 2005
    Location
    United Kingdom
    Posts
    608
    Plugin Contributions
    0

    Default Re: 1.5.8 Digital Downloads / PHP Warning: Trying to access array offset on value of

    Thanks! I'll give it a spin :)

  5. #5
    Join Date
    Mar 2005
    Location
    United Kingdom
    Posts
    608
    Plugin Contributions
    0

    Default 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.

 

 

Similar Threads

  1. v157 Trying to access array offset on value of type bool
    By wsworx in forum General Questions
    Replies: 2
    Last Post: 5 Jul 2022, 09:10 AM
  2. v156 When no side columns defined in Layout Setting, PHP Warning: Illegal offset type in
    By Claudio_tls in forum Customization from the Admin
    Replies: 5
    Last Post: 31 Jan 2021, 12:09 PM
  3. v155 item type : digital goods : downloads
    By RonaldNavarro689 in forum General Questions
    Replies: 3
    Last Post: 16 Mar 2016, 08:34 AM
  4. v154 PHP Warning: Illegal offset type
    By soxophoneplayer in forum General Questions
    Replies: 3
    Last Post: 22 Aug 2015, 03:24 AM
  5. help... Warning: Cannot use a scalar value as an array in cart_upsell.php
    By jamie in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 12 Nov 2010, 12:15 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR