I have a site where i just want to uninstall the Comment module, but when I try it didn't work aand there is this error message in the log.

Recoverable fatal error: Argument 1 passed to paymentreference_field_delete_instance() must be of the type array, null given in paymentreference_field_delete_instance() (Line 286 of /srv/pub/drupal/sites/all/modules/payment/paymentreference/paymentreference.module).

Comments

andros’s picture

Only after deaktivating Payment module I could uninstall the Comment module.

Xano’s picture

Project: Payment » Drupal core
Version: 7.x-1.8 » 7.x-dev
Component: Miscellaneous » field system
Category: support » bug

That sounds like a bug in Field, which passes on NULL instead of the instance. Can you please provide step-by-step instructions on how to reproduce this problem using a clean installation of Drupal?

andros’s picture

I have tested it with a almost new install.
When I just enable the payment reference sub module it is not possible to uninstall comment module.
After just deactivating payment reference module it works!

Xano’s picture

Without step-by-step instructions, we cannot reproduce the problem, which is needed to fix it. Please provide them.

andros’s picture

  • Install Drupal (Standard profile)
  • Install Payment Reference Field from https://drupal.org/project/payment. You have to install the dependencies : Currency API, Currency, Chaos tools, Payment, Entity API modules.
  • Try to uninstall Comment Module
  • Error occurs
firfin’s picture

Issue summary: View changes

I get the same error. But when uninstalling the 'productreference' module. Not the comment module. Will try and reproduce on fresh install.

Kebz’s picture

I get the same error from trying to "uninstall" these modules...

  • Commerce Dunning
  • Commerce Card on File
  • Message Notify
  • Commerce Recurring framework

I just installed these modules, but decided to uninstall them since it does not support PayPal gateway

Recoverable fatal error: Argument 1 passed to paymentreference_field_delete_instance() must be of the type array, null given in paymentreference_field_delete_instance() (line 287 of /sites/all/modules/payment/paymentreference/paymentreference.module).