Osclass forums

Support forums => Plugins => Cars attributes => Topic started by: altavista on May 30, 2017, 07:27:53 am

Title: Error importSQL::ModelCars
Post 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 ?
Title: Re: Error importSQL::ModelCars
Post by: helpszoon on October 22, 2018, 10:58:01 pm
hello ! what vers of php you used if you use 7.2 problem in conf.php in the admin of plugin .

change this code :
Code: [Select]
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.....
}
Title: Re: Error importSQL::ModelCars
Post by: WEBmods on October 23, 2018, 03:24:30 pm
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.