2024-11-01 16:49:06 - PHP Unknown: strtolower(): Passing null to parameter #1 ($string) of type string is deprecated in /home/garyjacobjack/public_html/admin/controller/extension/dashboard/map.php on line 102
Code: Select all
$json[strtolower($result['iso_code_2'])] = array(
1. The iso_code_2 field is empty for one or more countries. You can probably run a quick SQL query to check if any countries are missing the iso_code_2 field.
2. One or more orders in your OpenCart website is missing the payment_country_id column or does not match with a country_id in the country table.
3. If you don't care about the accuracy of your orders across the world map, you can just do a check if $result['iso_code_2'] is null or not, and if it is, skip that loop.
Check out our ever-growing list of extensions for OpenCart here.
Some useful extensions for a better admin experience: Image File Manager Pro • Drag & Drop Sort Order
Reach out to us at hello@softmonke.com for your OpenCart web development needs or feedback for our extensions.
Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig
It's basically the same situation can be seen at the documentation(s).
To summarize it quickly:
1. Up to OpenCart Version 3.0.9.0 DO NOT USE php 8.x
2. When using php 8.x use the version 3.0.4.0 (fully compatible up to 8.3.x) > https://github.com/opencart/opencart/re ... ag/3.0.4.0
3. As of today, 4.x is compatible with php 8.x - but not useable because of too many bugs (wait until 4.1.0.0 is published .. whenever that happens ..)
4. DO NOT UPDATE your current 3.x version - better install a 2nd instance (with 3.0.4.0) and when than all works 100% > switch
5. If you are using still 2.x (which btw. is still very good), you can use this php 8.x compatible package: https://github.com/condor2/Opencart_23xx
6. You are using OpenCart 1.5. .. bad .. because of several reasons, mainly >>
7. These days only php 8.x (8.2.x or 8.3.x) should be used - reasons (just to mention a few):
7.1 faster
7.2 better security
7.3 support
7.4 all prior versions are out of service and get no more updates .. very bad: no more security fixes, see: https://php.watch/versions
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
As written here: posting.php?mode=quote&p=874533#pr874544
You don't want to update, but in your situation you should!
Finally what do you want: a webshop for you .. or your customers?
If for your customers, update to OpenCart 3.0.4.0 and use php 8.3.x.
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Code: Select all
$tmpstr = $result['iso_code_2'];
if(!empty($tmpstr))
{
$json[strtolower($result['iso_code_2'])] = array(
'total' => $result['total'],
'amount' => $this->currency->format($result['amount'], $this->config->get('config_currency'))
);
}
Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.
Users browsing this forum: No registered users and 4 guests