Title: [Plugin: Facebook] PHP Warnings?
Last modified: August 20, 2016

---

# [Plugin: Facebook] PHP Warnings?

 *  Resolved [ecsouza](https://wordpress.org/support/users/ecsouza/)
 * (@ecsouza)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-php-warnings/)
 * This looks awesome … I installed it and on my site ([http://www.ericsouza.com](http://www.ericsouza.com))
   I am getting errors in the header and footer in both Firefox and Chrome … is 
   this because maybe Facebook hasn’t propagated the new app yet?
 * In the header I am getting these errors …
 * Warning: session_start() [function.session-start]: open(/home/content/s/y/d/sydfin/
   html/sessions/(*app secret*)02, O_RDWR) failed: No such file or directory (2)
   in /home/content/s/y/d/sydfin/html/ericsouza/wp-content/plugins/facebook/includes/
   facebook-php-sdk/facebook.php on line 39
 * Warning: session_start() [function.session-start]: Cannot send session cookie–
   headers already sent by (output started at /home/content/s/y/d/sydfin/html/ericsouza/
   wp-content/plugins/facebook/includes/facebook-php-sdk/facebook.php:39) in /home/
   content/s/y/d/sydfin/html/ericsouza/wp-content/plugins/facebook/includes/facebook-
   php-sdk/facebook.php on line 39
 * Warning: session_start() [function.session-start]: Cannot send session cache 
   limiter – headers already sent (output started at /home/content/s/y/d/sydfin/
   html/ericsouza/wp-content/plugins/facebook/includes/facebook-php-sdk/facebook.
   php:39) in /home/content/s/y/d/sydfin/html/ericsouza/wp-content/plugins/facebook/
   includes/facebook-php-sdk/facebook.php on line 39
 * In the footer, I’m getting these …
 * Warning: Unknown: open(/home/content/s/y/d/sydfin/html/sessions/sess_17214a865be4a85fb19b7e00c9cae900,
   O_RDWR) failed: No such file or directory (2) in Unknown on line 0
 * Warning: Unknown: Failed to write session data (files). Please verify that the
   current setting of session.save_path is correct (/home/content/s/y/d/sydfin/html/
   sessions) in Unknown on line 0
 * [http://wordpress.org/extend/plugins/facebook/](http://wordpress.org/extend/plugins/facebook/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  [Christopher](https://wordpress.org/support/users/cfulgham/)
 * (@cfulgham)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-php-warnings/#post-2821505)
 * I am getting the exact same error(s). It worked fine under GoDaddy’s Windows 
   Ultimate. I migrated to GoDaddy’s Linux Ultimate and everything still worked 
   fine. However, I just migrated to GoDaddy’s Linuz Ultimate 4GH and now I receive
   these errors whenever an App has been configured for the plugin (if I remove 
   the App (i.e. blank out the fields and press update) the error goes away).
 * Errors:
 * Warning: session_start() [function.session-start]: open(/var/chroot/home/content/
   51/3319651/tmp/sess_h778cqmkebgl26o0ic7f2l8e31, O_RDWR) failed: No such file 
   or directory (2) in /home/content/51/3319651/html/ChristopherFulghamCOM/wp-content/
   plugins/facebook/includes/facebook-php-sdk/facebook.php on line 39
 * Warning: session_start() [function.session-start]: Cannot send session cache 
   limiter – headers already sent (output started at /home/content/51/3319651/html/
   ChristopherFulghamCOM/wp-content/plugins/facebook/includes/facebook-php-sdk/facebook.
   php:39) in /home/content/51/3319651/html/ChristopherFulghamCOM/wp-content/plugins/
   facebook/includes/facebook-php-sdk/facebook.php on line 39
 * Warning: Cannot modify header information – headers already sent by (output started
   at /home/content/51/3319651/html/ChristopherFulghamCOM/wp-content/plugins/facebook/
   includes/facebook-php-sdk/facebook.php:39) in /home/content/51/3319651/html/ChristopherFulghamCOM/
   wp-includes/pluggable.php on line 881
 * Warning: Unknown: open(/var/chroot/home/content/51/3319651/tmp/sess_h778cqmkebgl26o0ic7f2l8e31,
   O_RDWR) failed: No such file or directory (2) in Unknown on line 0
 * Warning: Unknown: Failed to write session data (files). Please verify that the
   current setting of session.save_path is correct () in Unknown on line 0
 *  Plugin Contributor [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-php-warnings/#post-2821506)
 * The session start errors happen because your server’s “temp” directories are 
   not configured properly. Happens to the best of us. Happened to me too on GoDaddy
   hosting.
 * Unfortunately, the only way to fix the problem is to ask your host why the tmp
   directory isn’t working or setup properly for PHP sessions.
 * One workaround is to set the session.save_path to an empty directory you control.
   How you do this is up to the webhost and such. It may be enough to create a tmp
   directory in your account and then use this line in the .htaccess to set the 
   directory:
 * `php_value session.save_path '/path/to/a/writeable/folder'`
 * Alternately, you can try making a php.ini, but few hosts allow that.
 *  [Christopher](https://wordpress.org/support/users/cfulgham/)
 * (@cfulgham)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-facebook-php-warnings/#post-2821507)
 * Thanks Otto.
 * I am on the phone with GoDaddy tech support as I write this. They identified 
   the problem just as you have and have already created the tmp directory in the
   appropriate place and all is working now.
 * Thanks for your help.
 *  [debdbuck](https://wordpress.org/support/users/debdbuck/)
 * (@debdbuck)
 * [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-facebook-php-warnings/#post-2821664)
 * I had the same problem! Thank you so much for the solution Otto!
 * GoDaddy went through the “it’s not our fault, it’s the application’s fault” rounds…
   I insisted that we check things out quoting this thread!
 * After a hold time to “check with their advanced server team,” the rep informed
   me that “the connection to the tmp folder was broken” during the migration from
   Windows to Linux.
 * I kept him on the line until I put my app id and key in. It works!
    Thanks guys!!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘[Plugin: Facebook] PHP Warnings?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/facebook_526fac.svg)
 * [Facebook](https://wordpress.org/plugins/facebook/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/facebook/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/facebook/)
 * [Active Topics](https://wordpress.org/support/plugin/facebook/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/facebook/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/facebook/reviews/)

## Tags

 * [PHP errors](https://wordpress.org/support/topic-tag/php-errors/)

 * 4 replies
 * 4 participants
 * Last reply from: [debdbuck](https://wordpress.org/support/users/debdbuck/)
 * Last activity: [13 years, 5 months ago](https://wordpress.org/support/topic/plugin-facebook-php-warnings/#post-2821664)
 * Status: resolved