Title: PHP Warning &#8211; Failed to write session data
Last modified: February 3, 2019

---

# PHP Warning – Failed to write session data

 *  [mikemcox90](https://wordpress.org/support/users/mikemcox90/)
 * (@mikemcox90)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-warning-failed-to-write-session-data/)
 * Hi all
 * Hope someone can help with this rather annoying problem, please take a look at
   the error message from my debug log from my wordpress site….
 * [03-Feb-2019 10:14:23 UTC] PHP Warning: Unknown: open(/home/sites/autoprint.co.
   uk/tmp//sess_kj8ii25a9osl3tse7lu5i993u0, O_RDWR) failed: No such file or directory(
   2) in Unknown on line 0
    [03-Feb-2019 10:14:23 UTC] PHP Warning: Unknown: Failed
   to write session data (files). Please verify that the current setting of session.
   save_path is correct (/home/sites/autoprint.co.uk/tmp/) in Unknown on line 0
 * I got a 500 error on my website while browsing and this is the debug error log.
 * Now after rehitting refresh a couple or more times, the pages eventually load
   up. So not sure what is happening here??
 * I recently started serving my website over HTTPS, so im thinking maybe the problem
   lies in that?
 * If anyone could help that would be great.
 * I have read up about this and found that its something related to access restrictions
   on my host side but this didn’t seem to be an issue before moving over to HTTPS,
   so im hoping it can be fixed my end as the host my company uses is terrible at
   getting back to us!
 * Thanks.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-warning-failed-to-write-session-data%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-warning-failed-to-write-session-data/#post-11162878)
 * WordPress does not use PHP Sessions. So, ask your host or disable the plugin 
   you installed that does use sessions.
 *  Thread Starter [mikemcox90](https://wordpress.org/support/users/mikemcox90/)
 * (@mikemcox90)
 * [7 years, 4 months ago](https://wordpress.org/support/topic/php-warning-failed-to-write-session-data/#post-11163120)
 * So this is related to a plugin rather than wordpress its self? Its just odd as
   it was all working fine before I switched to https.
 * I guess i should speak to my host and try to figure out what plugin is causing
   this issue to fix this…all my current plugins are needed for my site to function
   properly so disabling/removing one is not really a viable option.
 * Thanks for the insight!
 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [7 years, 3 months ago](https://wordpress.org/support/topic/php-warning-failed-to-write-session-data/#post-11166306)
 * Haven’t the faintest idea what specifically broke there, but I do know this: 
   WordPress does not use PHP Sessions. Simple. So, whatever is causing errors involving“
   sessions”, it ain’t WordPress.

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

The topic ‘PHP Warning – Failed to write session data’ is closed to new replies.

## Tags

 * [500 internal error](https://wordpress.org/support/topic-tag/500-internal-error/)
 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [HTTP](https://wordpress.org/support/topic-tag/http/)
 * [HTTPS](https://wordpress.org/support/topic-tag/https/)
 * [PHP Warning](https://wordpress.org/support/topic-tag/php-warning/)
 * [SSL](https://wordpress.org/support/topic-tag/ssl/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/php-warning-failed-to-write-session-data/#post-11166306)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
