Page 1 of 1

PHP Notice / Error OC 2.1.0.2

Posted: Tue Feb 16, 2016 6:18 pm
by Rainforest
Finally got my OC 2.1.0.2 site up and running (for the most part).

I did notice some error log messages and have no idea what they are about.

PHP Notice: Indirect modification of overloaded property ControllerCheckoutCheckoutOne::$data has no effect in /home/xxxxx/public_html/catalog/controller/checkout/checkout_one.php on line 37

I also get the above error message referring to lines 147, 155, 158, 162, 173, and 249

and

2016-02-16 2:57:15 - PHP Warning: array_merge(): Argument #1 is not an array in /home/xxxxx/public_html/catalog/controller/checkout/checkout_one.php on line 31

2016-02-16 2:57:15 - PHP Warning: array_merge(): Argument #1 is not an array in /home/xxxxx/public_html/catalog/controller/checkout/checkout_one.php on line 32

2016-02-16 2:57:15 - PHP Warning: array_merge(): Argument #1 is not an array in /home/xxxxx/public_html/catalog/controller/checkout/checkout_one.php on line 33

I am using the built in checkout of OC 2.1.0.2

Re: PHP Notice / Error OC 2.1.0.2

Posted: Tue Feb 16, 2016 7:30 pm
by pm-netti
Rainforest wrote: PHP Notice: Indirect modification of overloaded property ControllerCheckoutCheckoutOne::$data has no effect in /home/xxxxx/public_html/catalog/controller/checkout/checkout_one.php on line 37
What is this line 37? Is there version 1..5.x script $this->data?

Re: PHP Notice / Error OC 2.1.0.2

Posted: Tue Feb 16, 2016 8:51 pm
by ocart777
Rainforest wrote: PHP Notice: Indirect modification of overloaded property ControllerCheckoutCheckoutOne::$data has no effect in /home/xxxxx/public_html/catalog/controller/checkout/checkout_one.php on line 37

I also get the above error message referring to lines 147, 155, 158, 162, 173, and 249

I am using the built in checkout of OC 2.1.0.2
it's doesn't seem like you were using a build in checkout as there are no core file with that name(checkout_one.php) however make a backup of this file then open it up. if you have line which is start with $this->data[' blablabla... then you may continue.
search for all*

Code: Select all

$this->data[' 
replace it with

Code: Select all

$data['

Re: PHP Notice / Error OC 2.1.0.2

Posted: Tue Feb 16, 2016 10:27 pm
by Rainforest
Ah, my old site used Uber Checkout by Qphoria but it was uninstalled when I upgraded. the files are still there but I didn't think they were active.
I guess I could delete them manually? Would that cause harm?