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.
oauth_common_form_consumer_delete() is declared as
function oauth_common_form_consumer_delete($form_state, $consumer) {
when it should be declared as
function oauth_common_form_consumer_delete($form, $form_state, $consumer) {
This causes the delete to fail since $consumer is incorrectly set.
Comment | File | Size | Author |
---|---|---|---|
#8 | oauth-1431642-consumer-deletion.patch | 515 bytes | kotnik |
Comments
Comment #1
stevesmename CreditAttribution: stevesmename commentedCall to a member function delete() on a non-object in oauth_common.consumers.inc on line 255
I believe the error above is regarding this issue. I'm unable to delete an application.
Comment #2
nevets CreditAttribution: nevets commentedYes, this bug is the cause of that error.
Comment #3
jobeirne CreditAttribution: jobeirne commentedGood catch, nevets, though `$form_state` should be `&$form_state`. Committing now.
Comment #4
jobeirne CreditAttribution: jobeirne commentedComment #5
Alex Andrascu CreditAttribution: Alex Andrascu commentedLeave it open for a while until you either release a stable "stable" version or until it closes by itself (2 weeks), so people can still find the fix. Was just going to abandon all hopes until I thought to give closed a try.
Thanks.
Comment #7
muka CreditAttribution: muka commentedHi, I reopen this because I got the same problem.
Call to a member function delete() on a non-object in oauth_common.consumers.inc on line 255
oaut_common.consumer.inc, line252
Comment #8
kotnik CreditAttribution: kotnik commentedPatch with this fix attached (if somebody needs this for Drush make file).