All of a sudden, I cannot format/reformat the code in Textmate. Got this error:
PHP Warning: require(/lib/beautify.php): failed to open stream: No such file or directory in /private/tmp/temptextmate.4tD2ED on line 19
Searched around the Web and it seems to be caused by php not setting $ENV property due to the variablesorder not properly set in /etc/php.ini (assuming you are using php shipped with Mac, if you are using php from Macports, do it accordingly).
The fix is to add/update the variablesorder value to something like variablesorder = "EGPCS"
References:
- Fixing Textmate’s PHP Commands with MacPorts PHP
- PHP core directives for php.ini explaining variablesorder
No comments:
Post a Comment