PHP Fatal error


I’m having, in a PHP form, when I’m submiting one email, the next error

2013/08/03 21:39:22 [error] 19544#0: *11 FastCGI sent in stderr: "PHP
message: PHP Warning:
require_once(TEMPLATEPATH/functions/theme-functions.php): failed to open
stream: No such file or directory in
/web/ on

PHP message: PHP Fatal error: require_once(): Failed opening required
(include_path=‘.:/usr/share/php:/usr/share/pear’) in
/web/ on
151" while reading response header from upstream, client:,
server:, request: “POST
/wp-content/themes/launcheffect/post.php HTTP/1.1”, upstream:
“fastcgi://”, host: “”, referrer:

I’ve been reading about permissions, about nginx and fastcgi, about
reviewing my config…without success.

Of course I’ve that file/directory.

Can anyone help me to solve this error?

Thanks in advance!

Posted at Nginx Forum:

Sorry, my nginx.conf:


Posted at Nginx Forum:

This is nothing to do with nginx, you should go to PHP forum/mailing
list, or a human to get answer, but after a quick check …

I think you have problem with the PHP codes, and it was clearly told by
the error messages you posted here, there is something wrong in file
“/web/ on
line 151”, because of
“require_once(TEMPLATEPATH/functions/theme-functions.php)” cannot find
the file, maybe you failed to define the constant TEMPLATEPATH?

If you still cannot get what it means, do go to PHP related sites.