I have been using WeBuilder for over a year (2010) and suddenly I'm having a problem. When I attempt a syntax check on a PHP script, instead of providing the appropriate error and highlighting the offensive line, I get the message "Ng [filename], where filename is the name of the script's file.
I've searched the forum and find references to this problem, but none seem to provide a fix that works for me. I have not installed a new version of PHP, nor have I even changed any .ini configurations. What I did do is, attempt to make tortoiseSVN to work with WeBuilder. However, the folder I attempted to make work with the SVN is not a folder from which I'm working.
How do I fix this? Help!
Thanks,
Merrill
ng filename error when attempt syntax check on a PHP script
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
Please try to follow these guidelines. This will help to receive faster and more accurate response.
- Check the Support section of the corresponding product first. Chances are you will find your answer there;
- Do not create new topics for already reported problems. Add your comments to the existing topics instead;
- Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
- Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
- Include the version number of the software you are using;
- This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
ng filename error when attempt syntax check on a PHP script
Last edited by chrisjlocke on Wed Jun 01, 2011 1:24 pm, edited 1 time in total.
Reason: tweaked the subject line
Reason: tweaked the subject line
Re: ng filename
Hi,
Maybe some settings have been corrupted; it is hard to tell..
Please try the self-installing package that contains everything you need to preview, check and debug PHP files.
http://www.blumentals.net/download/php.php
Close WeBuilder, then run the package, open WeBuilder again and then run the syntax checker. Is the problem still there?
Kind regards,
Gatis
Maybe some settings have been corrupted; it is hard to tell..
Please try the self-installing package that contains everything you need to preview, check and debug PHP files.
http://www.blumentals.net/download/php.php
Close WeBuilder, then run the package, open WeBuilder again and then run the syntax checker. Is the problem still there?
Kind regards,
Gatis
Kind regards,
Gatis Avots
Gatis Avots
Re: ng filename error when attempt syntax check on a PHP scr
Hi,
I have exactly the same issue (using RapidPHP 2014). For different reasons, I cannot install a different PHP package (using XAMPP right) now. This forced me to go back to PhpStorm, which is OK for large projects, but not for some lightweight development stuff
Best regards,
Bernhard
I have exactly the same issue (using RapidPHP 2014). For different reasons, I cannot install a different PHP package (using XAMPP right) now. This forced me to go back to PhpStorm, which is OK for large projects, but not for some lightweight development stuff

Best regards,
Bernhard
Re: ng filename error when attempt syntax check on a PHP scr
As far as I'm aware, this message is displayed by PHP commandline itself, not RapidPHP. It's being displayed when there is a configuration problem. Check what you have under Options -> PHP Settings -> Path to php.exe and try running it with some test script from commandline, do you get the same error? Maybe the problem is that path to php.exe is wrong (e.g. XAMPP includes multiple php.exe files and only one of them is configured or something like that).
Blumentals Software Programmer
Re: ng filename error when attempt syntax check on a PHP scr
Hello Aivars,
I found the issue. The path settings to the php.exe were correct.
The problem is with the "error_reporting" setting in php.ini. Depending on the setting, the syntax check (php.exe -l <file>) returns no (i.e. a blank) error message (in only returns the "Errors parsing <file>", but no actual syntax error message). I suspect in this case the "Ng <file>" dialog is shown in RapidPHP.
After changing the "error_reporting" in php.ini, the syntax check in RapidPHP showed the correct error message.
Now, my suggestion would be that RapidPHP include a new option "Ignore php.ini" (to add command line parameter "-n" for syntax checking, e.g. php.exe -nl <file>), so that changes in php.ini are not necessary just for syntax checking.
FYI, my current PHP version is 5.4.0
---
Bernhard
I found the issue. The path settings to the php.exe were correct.
The problem is with the "error_reporting" setting in php.ini. Depending on the setting, the syntax check (php.exe -l <file>) returns no (i.e. a blank) error message (in only returns the "Errors parsing <file>", but no actual syntax error message). I suspect in this case the "Ng <file>" dialog is shown in RapidPHP.
After changing the "error_reporting" in php.ini, the syntax check in RapidPHP showed the correct error message.
Now, my suggestion would be that RapidPHP include a new option "Ignore php.ini" (to add command line parameter "-n" for syntax checking, e.g. php.exe -nl <file>), so that changes in php.ini are not necessary just for syntax checking.
FYI, my current PHP version is 5.4.0
---
Bernhard
Re: ng filename error when attempt syntax check on a PHP scr
That's an excellent suggestion, we'll do some research about this parameter and see if we can use it.
Blumentals Software Programmer