WordPress options.php cannot resolve file

 
The options page is useful for settings in a WordPress plugin. However, phpstorm is stating the file cannot be resolved.
  
This is the simple form code used:
  
<form method="post" action="options.php">


I have the document root set. This is on a local environment of MAMP.

Are there any other settings to check?

1 comment
Comment actions Permalink

Hi there,

I have the document root set.

Please describe how did you do that.

However, phpstorm is stating the file cannot be resolved.

<form method="post" action="options.php">

Please show a screenshot where path to current file as well as this "option.php" file is clearly shown.

Thing is: this inspection checks for HTML resources relative to Resource Roots (or project root if none provided) in addition to path relative to the current file. Therefore: in order to not to show the error this "option.php" should be either placed in folder marked as Resource Root .. or be in the same folder as where this file with this form is located.


P.S.
I'm nto a WordPress guy and do not know where "options.php" file is located

0

Please sign in to leave a comment.