Hi , I cann't delete any model and got this warning "Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 175 of /home1/agalatyc/public_html/agalaty/includes/entity.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 388 of /home1/agalatyc/public_html/agalaty/includes/entity.inc)." When i refresh the page it disappeared , All the already added YEARS reseted/changed, i have disabled all suspected modules after the issue occured and the only strange thing that the customer added GMS models for 2017 before the new year comes with a day!!! which caused something wrong for the order for just this year , i have installed the 7.x-1.x-dev and it was working fine since 2 months ... except disorder in years field when selecting "Limit selector to options with tagged content".

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

asaifan created an issue. See original summary.

asaifan’s picture

Assigned: asaifan » Unassigned
asaifan’s picture

Issue summary: View changes

i discovered this another issue in the same time today!!!
the issue that i have that When i added e.g 2011-> BMW -> BMW XL -> XL5 , 2012 -> BMW -> BMW XL -> XL5 , 2013-> BMW -> BMW XL -> XL5 After saving the page then back to edit it all the years like 2012,2013 changed to 2011 !!! just the years fields.

Kris77’s picture

I have the same problem.
When insert new vehicle make is all ok, but when i try to delete a vehice make i got this error:

Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (linea 175 di /Volumes/Dati HDD/WebSites/AutoClubSite/includes/entity.inc).
Warning: array_flip(): Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (linea 388 di /Volumes/Dati HDD/WebSites/AutoClubSite/includes/entity.inc).

Someone has found the solution?
Thanks

Kris77’s picture

I do not know if it's the right solution but it works for me.
I can not apply a patch and then I put the code here.
So:

  • in "vehicle_make.module" go around line 576
function vehicle_make_delete($entity) {
    //entity_get_controller('vehicle_make')->delete($entity->make_id);
    db_delete('vehicle_make')
        ->condition('make_id', $entity->make_id)
        ->execute();
}

The same is with Vehicle Model:

  • in "vehicle_make.module" go around line 602
function vehicle_model_delete($entity) {
    db_delete('vehicle_model')
        ->condition('model_id', $entity->model_id)
        ->execute();
  //entity_get_controller('vehicle_model')->delete($entity);
}