1

When updating a company in the Magento Admin, I am seeing this error:

No company admin website ID is specified in request.

When that error occurs, I am redirected to the New Company form. Has anyone ever experienced this issue?

3
  • This error indicates that website_id is not set. Does the Company Admin -> Website field have a value? Does the Company Admin -> Email field reference an existing customer?
    – ddavidn
    Commented Jul 26, 2018 at 17:50
  • @ddavidn The company is assigned to a Web site. I tried changing the Admin E-mail, but I am still receiving this error when I save the company. Commented Jul 26, 2018 at 19:21
  • I'm wondering about the actual customer account for the company admin, is it existing or trying to create a new one (default behavior if admin email does not exist as a customer object)
    – ddavidn
    Commented Jul 26, 2018 at 21:19

1 Answer 1

1

I finally had the time to return to this task and debug it properly using xDebug, and found the issue:

A preference for the Save Controller had been created by a previous developer which was missing CustomerInterface::WEBSITE_ID from the $allFormFields array in the extractData() method. 🤦🏽‍♂️

1
  • I am facing issue like "could not save company" after saving it. Have you any idea?
    – ZealousWeb
    Commented Sep 13, 2021 at 10:18

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.