Post by Cold Storage » Sat Apr 06, 2024 8:13 am

1. Running OC [3.0.3.6]
2. Theme is Default X
3. (Additional) Installed Extensions: Shipstation, Square, Payment Icons, sort by newest, out of stock button
4. (Additional) Installed Translations: NONE
5. Used php Version: 7.4
6. Used Browser and Version: Opera, Safari, Chrome, Firefox...


I got an email from a customer an hour ago stating:
Hello,

Is your website broken atm? I'm trying to place an order and keep getting:

": Trying to access array offset on value of type bool in
/home/jb1styl5ul7r/public_html/catalog/controller/startup/startup.php
on line
166

Thanks,
Matt


Opened my email and saw that godaddy had done a migration to make the switch from CloudLinux 6 to CloudLinux 8 just an hour before.

I tried to checkout through my website on my laptop and everything still works but when using mobile, as soon as i login to my customer acct and go to cart then I get the same error as my customer reported. (See screenshot)

Image

Line 166 seems to be a type of tax calculation if I am not mistaken?
$this->tax->setShippingAddress($this->session->data['shipping_address']['country_id'], $this->session->data['shipping_address']['zone_id']);

Anyone have any experience with this? Business is crippled. [

Thanks.

Newbie

Posts

Joined
Mon Feb 22, 2021 5:59 am

Post by Cue4cheap » Sat Apr 06, 2024 8:18 am

Are you SURE they didn't update to PHP 8.X?
What do the error logS say?
Mike

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Cold Storage » Sat Apr 06, 2024 8:33 am

thanks for your response!

Im def running 7.4 after a long frustrating failed attempt to upgrade the site I have always left it there. I can go up to 8.0 without breaking the site but 8.2 will not work. I tried toggling back and forth from 7.4 to 8.0 to see if either would clear the issue on mobile browsing but there was no effect so I reset it to 7.4

Image

Newbie

Posts

Joined
Mon Feb 22, 2021 5:59 am

Post by Cold Storage » Sat Apr 06, 2024 8:38 am

I am sorry I did not spot the question about my error logs. Pretty much the same language, see screenshot:

Image

Newbie

Posts

Joined
Mon Feb 22, 2021 5:59 am

Post by Cue4cheap » Sat Apr 06, 2024 9:01 am

Cold Storage wrote:
Sat Apr 06, 2024 8:38 am
I am sorry I did not spot the question about my error logs. Pretty much the same language, see screenshot:

Image
And the php error log?

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Cold Storage » Sat Apr 06, 2024 9:03 am

Update: I signed out and back in of my account and now the error is happening on my desktop as well. See screenshot.

Image

Newbie

Posts

Joined
Mon Feb 22, 2021 5:59 am

Post by Cue4cheap » Sat Apr 06, 2024 9:09 am

Are you SURE of like 166?
There has been an issue with your OC version and 7.4.
It references line 166 being:
if (isset($this->session->data['shipping_address'])) {

viewtopic.php?t=217408&start=20

cue4cheap not cheap quality


Expert Member

Posts

Joined
Fri Sep 20, 2013 4:45 am

Post by Cold Storage » Sat Apr 06, 2024 9:24 am

Cue4cheap wrote:
Sat Apr 06, 2024 9:09 am
Are you SURE of like 166?
There has been an issue with your OC version and 7.4.
It references line 166 being:
if (isset($this->session->data['shipping_address'])) {

viewtopic.php?t=217408&start=20
I am so embaressed, I did search for known issues to the best of my ability.
This resolved my issue.
Thank you so much!

Newbie

Posts

Joined
Mon Feb 22, 2021 5:59 am
Who is online

Users browsing this forum: No registered users and 25 guests