Page 1 of 1

Journal 3 - Indirect modification of overloaded property

Posted: Thu Aug 22, 2019 3:42 pm
by tappa31
Hi, does anyone else have this error and were you abel to fix it? I am using Opencart 3.0.3.2 with theme Journal 3.
Notice: Indirect modification of overloaded property ControllerProductProduct::$data has no effect in /xxx/xxx/public_html/storage/modification/catalog/controller/product/product.php on line 348Warning: Cannot modify header information - headers already sent by (output started at /xxx/xxx.com/public_html/xxxx/catalog/controller/startup/error.php:34) in /xxx/xxx/xxxx/xxxxx.com/catalog/model/journal3/product.php on line 375

Re: Journal 3 - Indirect modification of overloaded property

Posted: Thu Aug 22, 2019 4:20 pm
by kestas
tappa31 wrote:
Thu Aug 22, 2019 3:42 pm
Hi, does anyone else have this error and were you abel to fix it? I am using Opencart 3.0.3.2 with theme Journal 3.
Notice: Indirect modification of overloaded property ControllerProductProduct::$data has no effect in /xxx/xxx/public_html/storage/modification/catalog/controller/product/product.php on line 348Warning: Cannot modify header information - headers already sent by (output started at /xxx/xxx.com/public_html/xxxx/catalog/controller/startup/error.php:34) in /xxx/xxx/xxxx/xxxxx.com/catalog/model/journal3/product.php on line 375
You should ask Journal developers first. This error is related to journal 3 theme.

Re: Journal 3 - Indirect modification of overloaded property

Posted: Mon Sep 30, 2019 1:51 am
by JazzBlueRT
You should turn off error reporting on a production store and on a production server.

I wish more devs would code to the point of eliminating notices. A PHP notice is still a bug in the code and all vars should be checked before usage anyway.

As for the error message, this is common PHP notice when you try to call or set a method or property that does not exist in an OpenCart model. Usually this happens from a typo or forgetting to use the () on function calls. The Journal 3 devs should provide a patch to fix the notice