Post by joannamiumiu » Wed Apr 28, 2021 5:51 pm

I hv the problems and don't know how to settle......pls help :( :(

public_html/catalog/controller/startup/startup.php on line 166
OpenCart Version 3.0.3.6

phpMyAdmin Version information: 4.9.5

https://www.miubuyshop.com/image/cache/ ... 00x500.png

Code from 160 to 174

Code: Select all

$this->registry->set('currency', new Cart\Currency($this->registry));
		
		// Tax
		$this->registry->set('tax', new Cart\Tax($this->registry));
		
		if (isset($this->session->data['shipping_address'])) {
			$this->tax->setShippingAddress($this->session->data['shipping_address']['country_id'], $this->session->data['shipping_address']['zone_id']);
		} elseif ($this->config->get('config_tax_default') == 'shipping') {
			$this->tax->setShippingAddress($this->config->get('config_country_id'), $this->config->get('config_zone_id'));
		}

		if (isset($this->session->data['payment_address'])) {
			$this->tax->setPaymentAddress($this->session->data['payment_address']['country_id'], $this->session->data['payment_address']['zone_id']);
		} elseif ($this->config->get('config_tax_default') == 'payment') {
			$this->tax->setPaymentAddress($this->config->get('config_country_id'), $this->config->get('config_zone_id'));

Attachments

4IOUFTJ(Q])C$QR92UFHJ[R.png

4IOUFTJ(Q])C$QR92UFHJ[R.png (144.24 KiB) Viewed 2193 times


Newbie

Posts

Joined
Thu Mar 18, 2021 12:06 pm

Post by OSWorX » Wed Apr 28, 2021 6:34 pm

And what IS the problem?
Posting only code leads to nothing ..

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Guru Member

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

User avatar
Expert Member

Posts

Joined
Tue Jul 17, 2012 10:35 pm
Location - România

Post by JNeuhoff » Wed Apr 28, 2021 7:14 pm

There is nothing wrong with that code. In fact, you are not even telling us what the problem is!

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by straightlight » Wed Apr 28, 2021 8:16 pm

xxvirusxx wrote:
Wed Apr 28, 2021 6:47 pm
maybe is this

https://github.com/opencart/opencart/bl ... p.php#L175
Yes, this would be the solution for this error message.

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 paulfeakins » Fri Apr 30, 2021 6:47 pm

straightlight wrote:
Wed Apr 28, 2021 8:16 pm
Yes, this would be the solution for this error message.
What error message? ???

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Guru Member
Online

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by straightlight » Fri Apr 30, 2021 7:43 pm

paulfeakins wrote:
Fri Apr 30, 2021 6:47 pm
straightlight wrote:
Wed Apr 28, 2021 8:16 pm
Yes, this would be the solution for this error message.
What error message? ???
viewtopic.php?t=217408#p784968

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 lkminimall@gmail.com » Sat Feb 18, 2023 12:55 pm

PHP Notice: Trying to access array offset on value of type bool in /home/xxx/public_html/catalog/controller/startup/startup.php on line 166& 172

This is the error. Please help me to Resolve this issue


Posts

Joined
Wed Oct 21, 2020 2:36 am

Post by ADD Creative » Sun Feb 19, 2023 7:42 pm

lkminimall@gmail.com wrote:
Sat Feb 18, 2023 12:55 pm
PHP Notice: Trying to access array offset on value of type bool in /home/xxx/public_html/catalog/controller/startup/startup.php on line 166& 172

This is the error. Please help me to Resolve this issue
Did you look a the lin in the post immediately before your one?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom
Who is online

Users browsing this forum: Bing [Bot] and 135 guests