Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix Cannot use object of type ParameterBag as array #15805
I think it is difficult to reproduce. And I'm sorry, I'm not going to try.
I will tell you what I did and my conclusions:
I modified a module that called a function that did not exist because the name was misspelled.
This function was called from the "updateProduct" or similar hook of the module.
The exception occurred when I save a product, this process is done through ajax. The server returned error 500 and a blank page (regardless of the status of the debug option)
It took me a long time to find the problem because I didn't saw anything in the php error log about calling a function that didn't exist. Only the trace shown at the beginning of the issue/pr.
Being totally inexperienced, I think the exception handler produced an exception that was the only one it showed.
After applying this fix, the exception no longer was throw.
Finally, this would be another issue in my opinion, I never understood why this error appeared