Title: Warning: session_start()
Last modified: November 18, 2017

---

# Warning: session_start()

 *  Resolved [Chekki](https://wordpress.org/support/users/chekki/)
 * (@chekki)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-session_start-9/)
 * After updating from PHP 5.6 to 7.0 I got the following error message on my website:
 * `Warning: session_start(): open(/home/www/__USER__/phptmp//sess_iuab33pqd0p0boghqj7fn5o246,
   O_RDWR) failed: No such file or directory (2) in /var/www/vhosts/th7855w23.vorschauseite.
   eu/httpdocs/handangeln/wp-content/plugins/accelerated-mobile-pages/includes/redirect.
   php on line 93`
 * After downgrade it disappers.
 * Do you have any idea how to solve it?
 * Best regards
 * Chekki
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fwarning-session_start-9%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Thread Starter [Chekki](https://wordpress.org/support/users/chekki/)
 * (@chekki)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9698159)
 * This message you find also at the end of each page:
 * `Warning: Unknown: open(/home/www/__USER__/phptmp//sess_c6fu8utl2idmuhg892nkn03ib3,
   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/www/__USER__/phptmp/) in Unknown on line
   0`
 * The problem only appears when AMP for WP – Accelerated Mobile Pages ist activated.
    -  This reply was modified 8 years, 6 months ago by [Chekki](https://wordpress.org/support/users/chekki/).
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9704634)
 * Hi [@chekki](https://wordpress.org/support/users/chekki/)
 * Make sure you are on the latest version of the plugin. Then deactivate it and
   activate it again. If it doesn’t fix the issue, turn Mobile Redirect to OFF and
   save and then on again.
 * That might fix the issue.
 * I think it’s coming because the mobile redirection was enabled on 5.6 and the
   php session was initiated through “phptmp//sess_iuab33pqd0p0boghqj7fn5o246, O_RDWR”
 * but after the PHP upgrade the phptmp folder isn’t there but your browser or server
   is still looking for that folder.
 * Can you try that and let me know if that fixes?
 *  Thread Starter [Chekki](https://wordpress.org/support/users/chekki/)
 * (@chekki)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9704683)
 * Hi [@ahmedkaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * thanks for your reply.
    All of this doesn´t work. Please see this issue while
   PHP 7 is activated:
 * [https://handangeln.de/](https://handangeln.de/)
 * I would appreciate if you could have a look as soon as possible.
 * Best regards
 * Chekki
    -  This reply was modified 8 years, 6 months ago by [Chekki](https://wordpress.org/support/users/chekki/).
 *  Thread Starter [Chekki](https://wordpress.org/support/users/chekki/)
 * (@chekki)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9704689)
 * Update: After I have deactivated Mobile redirection (and keep it deactivated)
   it works. But is there a solution to get it activated without getting trouble?
 *  Thread Starter [Chekki](https://wordpress.org/support/users/chekki/)
 * (@chekki)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9735787)
 * [@ahmedkaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * I need mobile redirection. Do you see any solution?
 * Best regards
 * Chekki
 *  Plugin Author [Mohammed Kaludi](https://wordpress.org/support/users/mohammed_kaludi/)
 * (@mohammed_kaludi)
 * [8 years, 5 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9788438)
 * Hi [@chekki](https://wordpress.org/support/users/chekki/)
 * Does the issue still presist on your website?
 * Can you please let me know?
 * I apologise for the late reply
 *  Thread Starter [Chekki](https://wordpress.org/support/users/chekki/)
 * (@chekki)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9823781)
 * [@mohammed_kaludi](https://wordpress.org/support/users/mohammed_kaludi/)
 * the problem still presist on the website when I enable mobile redirection with
   php 7:
 *     ```
       Warning: session_start(): open(/home/www/__USER__/phptmp//sess_5q7jsu92ofejgu6cg4t1j689u4, O_RDWR) failed: No such file or directory (2) in /var/www/vhosts/th7855w23.vorschauseite.eu/httpdocs/handangeln/wp-content/plugins/accelerated-mobile-pages/includes/redirect.php on line 93
       ```
   
 * Hope you can help.
 * Best regards
 * Chekki
 *  Plugin Author [Mohammed Kaludi](https://wordpress.org/support/users/mohammed_kaludi/)
 * (@mohammed_kaludi)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9825216)
 * [@chekki](https://wordpress.org/support/users/chekki/)
 * Can you please contact us directly on [team@magazine3.com](https://wordpress.org/support/topic/warning-session_start-9/team@magazine3.com?output_format=md)?
 * I will make sure that I get in touch with development team
 *  [europeangaming](https://wordpress.org/support/users/europeangaming/)
 * (@europeangaming)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9836571)
 * [@chekki](https://wordpress.org/support/users/chekki/)
 * If you have access to a WHM, disable PHP-FPM. This worked for me and now it works
   perfectly.
 *  Plugin Author [Ahmed Kaludi](https://wordpress.org/support/users/ahmedkaludi/)
 * (@ahmedkaludi)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9850323)
 * Thank you [@europeangaming](https://wordpress.org/support/users/europeangaming/)
   for the suggestion, I have updated the [https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1576](https://github.com/ahmedkaludi/accelerated-mobile-pages/issues/1576)
 * [@chekki](https://wordpress.org/support/users/chekki/) have you tried this?
 * We want to include this compatibility but have you responded our email?
 *  Thread Starter [Chekki](https://wordpress.org/support/users/chekki/)
 * (@chekki)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9856555)
 * I have updated server and installed php 7.0.24.
 * Now I have no error warning anymore. Thanks for your support.
 * Best regards
 * Chekki
 *  Plugin Author [Mohammed Kaludi](https://wordpress.org/support/users/mohammed_kaludi/)
 * (@mohammed_kaludi)
 * [8 years, 4 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9858500)
 * Thank you.

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

The topic ‘Warning: session_start()’ is closed to new replies.

 * ![](https://ps.w.org/accelerated-mobile-pages/assets/icon-256x256.png?rev=1693616)
 * [AMP for WP - Accelerated Mobile Pages](https://wordpress.org/plugins/accelerated-mobile-pages/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/accelerated-mobile-pages/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/accelerated-mobile-pages/)
 * [Active Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/accelerated-mobile-pages/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/accelerated-mobile-pages/reviews/)

 * 12 replies
 * 4 participants
 * Last reply from: [Mohammed Kaludi](https://wordpress.org/support/users/mohammed_kaludi/)
 * Last activity: [8 years, 4 months ago](https://wordpress.org/support/topic/warning-session_start-9/#post-9858500)
 * Status: resolved