Post by LMP » Fri Jun 03, 2022 2:17 pm

We have prepared the store globally first and wanted to delete the demo items today.

Excerpt from the URL
route=catalog/product&user_token=xxxxxxxx

1. checkbox clicked to the left of Apple Cinema 30".
2. top right of product overview page "trash" clicked for delete.

Response page - error message:

Warning: googleshopping\Googleshopping::integer(): Argument #1 ($product_id) must be passed by reference, value given in /www/htdocs/w01ce98c/Online-Musikunterricht/system/library/googleshopping/googleshopping.php on line 583Warning: googleshopping\Googleshopping::integer(): Argument #1 ($product_id) must be passed by reference, value given in /www/htdocs/w01ce98c/Online-Musikunterricht/system/library/googleshopping/googleshopping.php on line 583Warning: googleshopping\Googleshopping::integer(): Argument #1 ($product_id) must be passed by reference, value given in /www/htdocs/w01ce98c/Online-Musikunterricht/system/library/googleshopping/googleshopping.php on line 583Warning: Cannot modify header information - headers already sent by (output started at /www/htdocs/w01ce98c/Online-Musikunterricht/admin/controller/startup/error.php:34) in /www/htdocs/w01ce98c/Online-Musikunterricht/system/library/response.php on line 36

If we want to delete 2 or 3 items, the error message will be displayed 2 or 3 times accordingly.

What can we do now?
Does anyone have a solution?
Last edited by LMP on Sun Oct 30, 2022 3:07 pm, edited 1 time in total.

User avatar
LMP
New member

Posts

Joined
Sun Apr 24, 2022 2:54 pm
Location - Germany

Post by LMP » Fri Jun 03, 2022 2:33 pm

Probably done and solved.
It may be that I have discovered the error.
The store runs with OpenCart version 3.0.3.8

I have changed the PHP version from 8.0 to 7.4. at the host in the server management.

After that I could - for whatever reason - delete the demo articles completely.

Do I now have to expect other restrictions because of the PHP version 7.4?

User avatar
LMP
New member

Posts

Joined
Sun Apr 24, 2022 2:54 pm
Location - Germany

Post by OSWorX » Fri Jun 03, 2022 3:41 pm

LMP wrote:
Fri Jun 03, 2022 2:33 pm
..
The store runs with OpenCart version 3.0.3.8
..
I have changed the PHP version from 8.0 to 7.4. at the host in the server management.

After that I could - for whatever reason - delete the demo articles completely.

Do I now have to expect other restrictions because of the PHP version 7.4?
Yes, 3.x was not made for php-versions > 7.3.x
And especially not for php 8.x !

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


User avatar
Administrator

Posts

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

Post by ADD Creative » Fri Jun 03, 2022 4:30 pm

See https://github.com/opencart/opencart/pull/10836 for a solution. However, there will probably be other issues with PHP 8. You can find some fixes in the 3.x branches on GitHub.

It also looks like you have display errors on. If your site is a live site you need to switch off displaying of errors.

You need make sure display errors in set to off in all 3 places. Your PHP settings, in system/config/default.php and in the settings. Not only can this cause minor notices and warnings to cause bigger errors, it can also be a security risk.

1. In your PHP settings make sure display_errors is set to Off. Use phpinfo() to check. It should be off by default, but there are lots of rubbish hosts out there.

2. In system/config/default.php set error_display to false.

3. In your OpenCart Setting on the server tab set Display Errors to No.

www.add-creative.co.uk


Guru Member

Posts

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

Post by LMP » Sat Jun 04, 2022 12:08 am

Thanks to all.
I will change the error displaying now

User avatar
LMP
New member

Posts

Joined
Sun Apr 24, 2022 2:54 pm
Location - Germany
Who is online

Users browsing this forum: No registered users and 15 guests