Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->load() (line 178 of /opt/lampp/htdocs/radioinfo/includes/entity.inc).
Warning: array_flip() [function.array-flip]: Can only flip STRING and INTEGER values! in DrupalDefaultEntityController->cacheGet() (line 355 of /opt/lampp/htdocs/radioinfo/includes/entity.inc).
Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2168 of /opt/lampp/htdocs/radioinfo/includes/database/database.inc).

Comments

retiredpro’s picture

I hit these errors too when I modified the module according to post 5 from this thread.

sumitmadan’s picture

Still getting this error.

typehost’s picture

shahidaali’s picture

I also faced this issue by updating an other issue from here https://www.drupal.org/node/1937840#comment-7160720

The reason for this issue is when you change node/%/edit/subscription to node/%node/edit/subscription, node object will be passed instead of nid in the callback function uc_recurring_subscription_product_form($form, $form_state, $product_id = NULL) in the file uc_recurring_subscription.admin.inc in uc_recurring_subscription module.

I resolved the issue by adding below code in the file uc_recurring_subscription.admin.inc in uc_recurring_subscription module.

$product_id = (!empty($product_id) && is_object($product_id)) ? $product_id->nid : $product_id;
$form = array();
$products = array();