Title: PHP critical error session_start()
Last modified: May 11, 2022

---

# PHP critical error session_start()

 *  Resolved [Sol Aveiro](https://wordpress.org/support/users/soarveca/)
 * (@soarveca)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-session_start/)
 * Hello!
    In site health, I get this error and it’s caused by this plugin 🙁 Stock
   Notifier for WooCommerce
 * “A PHP session has been created by the call to the session_start() function. 
   This interferes with the REST API and return requests. The session should be 
   closed by session_write_close() before making any HTTP requests”
 * Besides that I already had to modify the css of the plugin :/, what can I do?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-critical-error-session_start%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [toukirwpdev](https://wordpress.org/support/users/toukirwpdev/)
 * (@toukirwpdev)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-session_start/#post-15645246)
 * Hi,
 * Our developer has examined your issue and has identified the problem as having
   an error in your CSS. For your convenience, we are offering you some code that
   will fix your issue.
 *     ```
       .stock_notifier_tooltip_wrap 
       {
           background: transparent;
           border-radius: 6px;
           bottom: 100%;
           color: #fff;
           height: 10px;
           left: 50%;
           padding: 5px;
           position: absolute;
           text-align: center;
           transform: translateX(-50%);
           width: 254px;
           z-index: 2;
           bottom: 10%;
       }
       ```
   
 * You can paste this code into the custom CSS option of our plugin, which will 
   be fixed this issue.
 * Thanks.
 *  Thread Starter [Sol Aveiro](https://wordpress.org/support/users/soarveca/)
 * (@soarveca)
 * [4 years ago](https://wordpress.org/support/topic/php-critical-error-session_start/#post-15649924)
 * Hello!
    I think they have not understood the problem, IT IS NOT SOLVED! The problem
   IS NOT CSS, it is a php problem in your plugin
 * “Active PHP session detected
    Performance A PHP session has been created by the
   call to the session_start() function. This interferes with the REST API and return
   requests. The session should be closed by session_write_close() before making
   any HTTP requests.” This is the problem and it leaves the site healthy.

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

The topic ‘PHP critical error session_start()’ is closed to new replies.

 * ![](https://ps.w.org/stock-notifier-for-woocommerce/assets/icon-256x256.png?rev
   =2946914)
 * [Back in Stock Notifier for WooCommerce by WPPOOL](https://wordpress.org/plugins/stock-notifier-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/stock-notifier-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/stock-notifier-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/stock-notifier-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/stock-notifier-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/stock-notifier-for-woocommerce/reviews/)

## Tags

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

 * 2 replies
 * 2 participants
 * Last reply from: [Sol Aveiro](https://wordpress.org/support/users/soarveca/)
 * Last activity: [4 years ago](https://wordpress.org/support/topic/php-critical-error-session_start/#post-15649924)
 * Status: resolved