Unknown: Creation of dynamic property mysqli::$report_mode is deprecated
which I have no clue what is generating those errors. Display errors is turned off in php and they still show.
My site is now totally hosed
------------------------------------------
Retro gifts, toys, games and accessories
https://www.retroactives.com/
The version you are using is NOT ready for production (live sites)!JazzBlueRT wrote: ↑Sat Oct 22, 2022 3:02 pmGet errors like these
Unknown: Creation of dynamic property mysqli::$report_mode is deprecated
which I have no clue what is generating those errors. Display errors is turned off in php and they still show.
My site is now totally hosed
Instead use 3.0.3.8 and NOT php 8.2.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
When something is labeled as compatible with PHP 8.1+ you presume that includes 8.2
A release this broken should have been labeled beta.
------------------------------------------
Retro gifts, toys, games and accessories
https://www.retroactives.com/
As regards PHP 8.2: Daniel will address it once PHP 8.2 becomes available, see https://github.com/opencart/opencart/issues/11803
In the meantime, you can use PHP 8.1 and the 3.0.x.x_Maintenance release of OpenCart.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
If a product is not production ready, it should not be on the front page and it should be labeled as beta.
Fighting with Linux was fun in the 90's, in 2022 stuff should just work.
Furthermore, if it is going to get fixed after 8.2 official release, a lot of systems will break upon release.
------------------------------------------
Retro gifts, toys, games and accessories
https://www.retroactives.com/
For anyone else with this problem, you will need to comment out LN:42 in system/framework.php to get rid of the deprecated errors.
Code: Select all
if ($config->get('error_display')) {
//echo '<b>' . $error . '</b>: ' . $message . ' in <b>' . $file . '</b> on line <b>' . $line . '</b>';
}
Code: Select all
if ($config->get('config_error_display')) {
echo '<b>' . $error . '</b>: ' . $message . ' in <b>' . $file . '</b> on line <b>' . $line . '</b>';
}
------------------------------------------
Retro gifts, toys, games and accessories
https://www.retroactives.com/
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, as you have seen, 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.
Yeah, I found the config/default file after I posted this. You are correct about that being the correct way.ADD Creative wrote: ↑Sun Oct 23, 2022 5:24 amYou should never have error display on on a live production site. Don't comment out a debug feature just disable error display.
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, as you have seen, 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.
------------------------------------------
Retro gifts, toys, games and accessories
https://www.retroactives.com/
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
Users browsing this forum: No registered users and 35 guests