Osclass forums
Support forums => Plugins => Cars attributes => Topic started by: altavista on May 30, 2017, 07:27:53 am
-
Error importSQL::ModelCars
cars_attributes/struct.sql
I deleted all tables, but again i get error.
Any idea ?
-
hello ! what vers of php you used if you use 7.2 problem in conf.php in the admin of plugin .
change this code :
case("type_edit"): $car_type = Params::getParam("car_type");
if(is_array($car_type)) {
foreach($car_type as $k => $v) {
foreach($v as $kj => $vj) {
ModelCars::newInstance()->updateVehicleType($k, $kj, $vj);
}
}
}
add this if(is_array($car_type)) {
foreach.....
}
-
Hello,
That same error happens in a quite a few plugins when using PHP 7.2, there's no that error in 7.0. Thank you for sharing the fix. :)
Regards.