# PHP Fatal error

**URL:** <https://www.ruby-forum.com/t/php-fatal-error/245919>\
**Category:** NGINX\
**Created:** [August 3, 2013, 11:49pm UTC](https://www.ruby-forum.com/t/php-fatal-error/245919 "2013-08-03T23:49:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sadaf\_N](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/858c86/32.png) [@Sadaf\_N](https://www.ruby-forum.com/u/Sadaf_N)\
**Post date:** [August 3, 2013, 11:49pm UTC](https://www.ruby-forum.com/t/php-fatal-error/245919/1 "2013-08-03T23:49:18Z")

</div>

Hello!

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

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/domain.com/public/wp-content/themes/launcheffect/functions.php on  
line  
151

PHP message: PHP Fatal error: require\_once(): Failed opening required  
‘TEMPLATEPATH/functions/theme-functions.php’  
(include\_path=‘.:/usr/share/php:/usr/share/pear’) in  
/web/domain.com/public/wp-content/themes/launcheffect/functions.php on  
line  
151" while reading response header from upstream, client: 71.28.74.212,  
server: [www.domain.com](http://www.domain.com), request: “POST  
/wp-content/themes/launcheffect/post.php HTTP/1.1”, upstream:  
“fastcgi://127.0.0.1:9000”, host: “[www.domain.com](http://www.domain.com)”, referrer:  
“[http://www.domain.com/](http://www.domain.com/)”

I’ve been reading about permissions, about nginx and fastcgi, about  
PHPfpm,  
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:

> **[PHP Fatal error](https://forum.nginx.org/read.php?2,241517,241517#msg-241517)**
>
> Hello! I'm having, in a PHP form, when I'm submiting one email, the next error in error.log: 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):...

---

<div class="post-metadata">

**Author:** ![pablo.rodriguez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pablo.rodriguez](https://www.ruby-forum.com/u/pablo.rodriguez)\
**Post date:** [August 3, 2013, 11:59pm UTC](https://www.ruby-forum.com/t/php-fatal-error/245919/2 "2013-08-03T23:59:14Z")

</div>

Sorry, my nginx.conf:

[http://pastebin.com/5VB1BzHj](http://pastebin.com/5VB1BzHj)

Best.

Posted at Nginx Forum:

> **[Re: PHP Fatal error](https://forum.nginx.org/read.php?2,241517,241518#msg-241518)**
>
> Hello! I'm having, in a PHP form, when I'm submiting one email, the next error in error.log: 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):...

---

<div class="post-metadata">

**Author:** ![pablo.rodriguez](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e274bd/32.png) [@pablo.rodriguez](https://www.ruby-forum.com/u/pablo.rodriguez)\
**Post date:** [August 5, 2013, 6:40pm UTC](https://www.ruby-forum.com/t/php-fatal-error/245919/3 "2013-08-05T18:40:29Z")

</div>

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/domain.com/public/wp-content/themes/launcheffect/functions.php 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.
