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 commentedproblem is in
uc_restrict_qty.modulehook_node_deleteprovides$node, not$nidCorrect version:
Comment #2
raulmuroc commentedAttached a patch with solution.
Please, test & review it.
Thank you.
Comment #3
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 commentedComment #5
raulmuroc commentedComment #6
raulmuroc commentedCommited and included to the Ubertcart Restrict Qty's first stable version.
Comment #7
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 commentedAnd last comment is nonsense comment by muhammad.tanweer.
Thanks anyway :-)
Comment #9
neochief commentedThe patch is incomplete. Take a look at the function parameter. It should be $node instead of $nid.
Comment #10
neochief commentedComment #11
RaSpirit commentedComment fix missed, attached patch should be fine
Comment #12
webservant316 commentedis this patch committed to dev?
Comment #13
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 commentedSolved in https://www.drupal.org/node/2144385