Title: PHP: session_start() Error
Last modified: April 13, 2017

---

# PHP: session_start() Error

 *  Resolved [ravimallya](https://wordpress.org/support/users/ravimallya/)
 * (@ravimallya)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-session_start-error/)
 * Hi.
 * I’m receiving the following error once I activate the plugin in pantheon.io environment
   even after enabling php sessions plugin.
 * `Warning: session_start(): user session functions not defined in /srv/bindings/
   0d8b2284693d43e7a3f47d4d08fd8ff1/code/wp-content/plugins/buddyforms/BuddyForms.
   php on line 54 Fatal error: session_start(): Failed to initialize storage module:
   user (path: ) in /srv/bindings/0d8b2284693d43e7a3f47d4d08fd8ff1/code/wp-content/
   plugins/buddyforms/BuddyForms.php on line 54`
 * Please suggest.

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

 *  Plugin Author [Sven Lehnert](https://wordpress.org/support/users/svenl77/)
 * (@svenl77)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-session_start-error/#post-9026928)
 * Hi [@ravimallya](https://wordpress.org/support/users/ravimallya/),
 * strange issue. Please try to restart the server and delete the cash. It looks
   like you have some unregistered old session conflicting your system.
 * Would be intreating to know your php version. session_start() should work just
   fine.
 * Cheers,
    Sven
 *  Plugin Author [Sven Lehnert](https://wordpress.org/support/users/svenl77/)
 * (@svenl77)
 * [9 years ago](https://wordpress.org/support/topic/php-session_start-error/#post-9076027)
 * Hi [@ravimallya](https://wordpress.org/support/users/ravimallya/) I have added
   a extra check to the upcoming version and this should prevent this issue.
 *  Thread Starter [ravimallya](https://wordpress.org/support/users/ravimallya/)
 * (@ravimallya)
 * [9 years ago](https://wordpress.org/support/topic/php-session_start-error/#post-9077674)
 * Okay.
 * Thanks.
 *  [pauljmackay](https://wordpress.org/support/users/pauljmackay/)
 * (@pauljmackay)
 * [9 years ago](https://wordpress.org/support/topic/php-session_start-error/#post-9151770)
 * I use Pantheon too. They dont support WP sessions – see [https://pantheon.io/docs/wordpress-sessions/](https://pantheon.io/docs/wordpress-sessions/)
   for more info. This plugin is one of the very few I’ve found that breaks even
   with the “WordPress Native PHP Sessions” plugin enabled in mu-plugins, with the
   error [@ravimallya](https://wordpress.org/support/users/ravimallya/) reports.
 * Is there any way to run session_start() later in the plugin init process and 
   also only run it if it is needed? It would be good to avoid starting a session
   unless loading a page that requires BuddyForms. I’m not totally sure if that 
   would solve the problem running on Pantheon, but I’ve used other plugins on Pantheon
   that also start sessions successfully, with “WordPress Native PHP Sessions” in
   place.
 *  Plugin Author [Sven Lehnert](https://wordpress.org/support/users/svenl77/)
 * (@svenl77)
 * [9 years ago](https://wordpress.org/support/topic/php-session_start-error/#post-9156201)
 * Hi [@pauljmackay](https://wordpress.org/support/users/pauljmackay/)
 * thanks for the feedback. I have moved the session into the form render function
   buddyforms_form_html
 * [https://github.com/BuddyForms/BuddyForms/commit/02aaf4596e73406688b348065258630620853b00](https://github.com/BuddyForms/BuddyForms/commit/02aaf4596e73406688b348065258630620853b00)
 * Please test if the github version works on Pantheon and let me know your result.
   I like to figure this out and hopefully it is fixed now.
 * Cheer,
    Sven

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

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

 * ![](https://ps.w.org/buddyforms/assets/icon-256x256.jpg?rev=2227973)
 * [Post Form - Registration Form - Profile Form for User Profiles - Frontend Content Forms for User Submissions (UGC)](https://wordpress.org/plugins/buddyforms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/buddyforms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/buddyforms/)
 * [Active Topics](https://wordpress.org/support/plugin/buddyforms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/buddyforms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/buddyforms/reviews/)

## Tags

 * [session error](https://wordpress.org/support/topic-tag/session-error/)
 * [session_start](https://wordpress.org/support/topic-tag/session_start/)

 * 5 replies
 * 3 participants
 * Last reply from: [Sven Lehnert](https://wordpress.org/support/users/svenl77/)
 * Last activity: [9 years ago](https://wordpress.org/support/topic/php-session_start-error/#post-9156201)
 * Status: resolved