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.
After installing this module I am no longer to delete nodes of any kind, it returns the following error:
Recoverable fatal error: Object of class stdClass could not be converted to string in DatabaseStatementBase->execute() (line 2139 of /mysite/includes/database/database.inc).
I am running Ubercart 7.x-3.4+21-dev and Drupal 7.21
Comment | File | Size | Author |
---|---|---|---|
#11 | uc_restrict_qty-fix_fatal_error_on_node_delete-1954952-11.patch | 573 bytes | RaSpirit |
#10 | uc_restrict_qty-1954952.patch | 460 bytes | neochief |
#2 | uc_restrict_qty-Fix_to_delete_nodes-1954952-2.patch | 497 bytes | RaulMuroc |
Comments
Comment #1
slobo CreditAttribution: slobo commentedproblem is in
uc_restrict_qty.module
hook_node_delete
provides$node
, not$nid
Correct version:
Comment #2
RaulMuroc CreditAttribution: RaulMuroc commentedAttached a patch with solution.
Please, test & review it.
Thank you.
Comment #3
Risha CreditAttribution: Risha commentedThank you very much guys, the patch works correctly and nodes can be deleted normaly now as they should be, without any errors. Best regards and thanks again.
Comment #4
RaulMuroc CreditAttribution: RaulMuroc commentedComment #5
RaulMuroc CreditAttribution: RaulMuroc commentedComment #6
RaulMuroc CreditAttribution: RaulMuroc commentedCommited and included to the Ubertcart Restrict Qty's first stable version.
Comment #7
muhammad.tanweer CreditAttribution: muhammad.tanweer commentedThis fixed the issue. Its a silly mistake by the people of uc_restrict_qty module though.
Thanks anyways,
Muhammad
www.app-desk.com
Comment #8
RaulMuroc CreditAttribution: RaulMuroc commentedAnd last comment is nonsense comment by muhammad.tanweer.
Thanks anyway :-)
Comment #9
neochief CreditAttribution: neochief commentedThe patch is incomplete. Take a look at the function parameter. It should be $node instead of $nid.
Comment #10
neochief CreditAttribution: neochief commentedComment #11
RaSpirit CreditAttribution: RaSpirit commentedComment fix missed, attached patch should be fine
Comment #12
webservant316 CreditAttribution: webservant316 commentedis this patch committed to dev?
Comment #13
webservant316 CreditAttribution: webservant316 commentedsee this issue for all the patches I needed to get this module working...
https://www.drupal.org/node/2144385#comment-9393401
Comment #14
RaulMuroc CreditAttribution: RaulMuroc commentedSolved in https://www.drupal.org/node/2144385