Unknown Module Type when opening PhpStorm

When opening any file on PHP Storm it appears this error:

 

 

Uknown Module Type

Cannot determine module type

("JAVA_MODULE) for the following...

 

What should I do to fix it?

 

Thanks

1 comment

Hello,

Looks like this project was an IDEA project before?

Modules are mentioned in project directory/.idea/%projectname%.iml file.

In order to resolve it, please replace contents of that iml file with the following snippet:

<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
  <component name="NewModuleRootManager">
    <content url="file://$MODULE_DIR$" />
    <orderEntry type="inheritedJdk" />
    <orderEntry type="sourceFolder" forTests="false" />
  </component>
</module>

This should help.

0

Please sign in to leave a comment.