Post by Barend » Sat Jan 23, 2021 5:41 am

Version 3.0.3.6
Theme: Default

I see an error in my shop and it is displayed on the top of the visitors screen:

Code: Select all

Notice: Trying to access array offset on value of type bool in /home/shop/domains/public_html/catalog/controller/startup/startup.php on line 166
These errors are also nicely logged at the backend.

In php.ini (in the root) I see this:

Code: Select all

;display_errors = 1
;error_reporting = E_ALL
So these lines are commented out, I would say.

But why are the Errors and Warnings shown then? How do I turn that off?

Regards,

Barend
Last edited by Barend on Sat Jan 23, 2021 11:48 pm, edited 2 times in total.

New member

Posts

Joined
Wed Jan 06, 2021 8:13 pm

Post by mikeinterserv » Sat Jan 23, 2021 5:44 am

Do you have display errors checked in the shop settings > SERVER TAB
At the bottom

Active Member

Posts

Joined
Thu May 28, 2020 6:55 am
Location - Wales

Post by sw!tch » Sat Jan 23, 2021 6:39 am

https://github.com/opencart/opencart/is ... -545074292

But maybe consider fixing the error first?
Assuming you are on PHP 7.4?
viewtopic.php?t=217408#p784968

Backup and learn how to recover before you make any changes!


Active Member

Posts

Joined
Sat Apr 28, 2012 2:32 pm

Post by straightlight » Sat Jan 23, 2021 11:30 am

sw!tch wrote:
Sat Jan 23, 2021 6:39 am
https://github.com/opencart/opencart/is ... -545074292

But maybe consider fixing the error first?
Assuming you are on PHP 7.4?
viewtopic.php?t=217408#p784968
It's also fixed on the master branch.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by Barend » Sat Jan 23, 2021 3:43 pm

mikeinterserv wrote:
Sat Jan 23, 2021 5:44 am
Do you have display errors checked in the shop settings > SERVER TAB
At the bottom
Solutions are sometimes so simple. Thank you!

New member

Posts

Joined
Wed Jan 06, 2021 8:13 pm

Post by Barend » Sat Jan 23, 2021 3:54 pm

sw!tch wrote:
Sat Jan 23, 2021 6:39 am
https://github.com/opencart/opencart/is ... -545074292

But maybe consider fixing the error first?
Assuming you are on PHP 7.4?
viewtopic.php?t=217408#p784968
Since it was 'only' a notice the solving of the issue would have been my next priority :-)
Thanks to you I have already done that now too.

New member

Posts

Joined
Wed Jan 06, 2021 8:13 pm
Who is online

Users browsing this forum: No registered users and 14 guests