When trying to delete customer accounts I'm getting a blank white screen this is the full error:

PHP Fatal error: Call to a member function getId() on string in /app/code/core/Mage/Core/Model/Resource/Db/Abstract.php on line 507

Any help is greatly appreciated.

Magento 1.9

1 Answer 1


Does seem like it's loading the customer, so it can't load the ID for the customer.

Custom extension for frontend delete (GDPR) or is this just default admin delete from the grid or delete from inside the customer account view within the admin?

  • From the manage customers screen whether i check off a single customer or multiple the same thing happens. Thanks for the help.
    – msta777
    Commented Jul 15, 2021 at 17:24
  • Version of Magento 1?
    – elfling
    Commented Jul 15, 2021 at 17:30
  • version
    – msta777
    Commented Jul 15, 2021 at 21:45
  • Are you able to delete directly from the customer page? What does your request show in the browser in the network tab when you press submit. Does it show a customer_id?
    – elfling
    Commented Jul 19, 2021 at 14:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.