Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
retiredpro CreditAttribution: retiredpro commentedI hit these errors too when I modified the module according to post 5 from this thread.
Comment #2
sumitmadan CreditAttribution: sumitmadan commentedStill getting this error.
Comment #3
typehost CreditAttribution: typehost commentedSame issue: https://www.drupal.org/node/2354811
Comment #4
shahidaali CreditAttribution: shahidaali as a volunteer commentedI 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 ofnid
in the callback functionuc_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.