I have installed an extension on magento 2.0 on my local server. It works fine there.

Installed same extension on live server and it shows

File "/composer.json" cannot be opened Warning!fopen(/composer.json): failed to open stream: No such file or directory

error when saving the form data to database.

  • Have you checked permissions? Are you using the absolute path of the where the file exists? – André Ferraz Mar 12 '18 at 14:28
  • Seems rather strange that it would need access to composer.json? – Douglas Radburn Mar 12 '18 at 16:22

I am not sure if anybody else will come up with this issue. But incase some one does, then try checking and editing the field names.

In my case it was an issue of the field name website. I renamed that field and it worked fine.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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