Title: session_start(): Cannot send session cookie &#8211; headers already sent
Last modified: August 31, 2016

---

# session_start(): Cannot send session cookie – headers already sent

 *  Resolved [autorun](https://wordpress.org/support/users/bacigaloop/)
 * (@bacigaloop)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/session_start-cannot-send-session-cookie-headers-already-sent/)
 * When updating to the latest version it throws this error,
 *     ```
       Warning: max(): Array must contain at least one element in /srv/users/serverpilot/apps/interno/public/wp-content/plugins/custom-database-tables/lib/webapis.php on line 32
   
       Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /srv/users/serverpilot/apps/interno/public/wp-content/plugins/custom-database-tables/lib/webapis.php:32) in /srv/users/serverpilot/apps/interno/public/wp-content/plugins/custom-database-tables/lib/main.php on line 222
   
       Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /srv/users/serverpilot/apps/interno/public/wp-content/plugins/custom-database-tables/lib/webapis.php:32) in /srv/users/serverpilot/apps/interno/public/wp-content/plugins/custom-database-tables/lib/main.php on line 222
   
       Warning: Cannot modify header information - headers already sent by (output started at /srv/users/serverpilot/apps/interno/public/wp-content/plugins/custom-database-tables/lib/webapis.php:32) in /srv/users/serverpilot/apps/interno/public/wp-includes/pluggable.php on line 1196
       ```
   
 * —
 * My setup is:
    WORDPRESS: 4.2.2 PHP INFO: 5.5.33 | SAPI: fpm-fcgi SERVER: Apache/
   2.4.18 (Unix) OpenSSL/1.0.1f PHP TIME LIMIT: (0) no time limit imposed PHP MAX
   MEMORY: 5000M (256M default) MEMORY STACK: 8.25MB
 * [https://wordpress.org/plugins/custom-database-tables/](https://wordpress.org/plugins/custom-database-tables/)

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

 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/session_start-cannot-send-session-cookie-headers-already-sent/#post-7247190)
 * Thank you very much for reporting.
 * I found a bug of conversion processing of options to 2.x from version 1.x.
    I’m
   going to release a fix in the next version.
 * For now, please try to the first aid by source modification of the following.
 *     ```
       $_max_host_id = ! empty( $_api_hosts ) ? max( array_keys( $_api_hosts ) ) : 0;
       ```
   
 * Modify place is a 32-line of the “plugins/custom-database-tables/lib/webapis.
   php”.
 * Thank you,
 *  Thread Starter [autorun](https://wordpress.org/support/users/bacigaloop/)
 * (@bacigaloop)
 * [10 years, 1 month ago](https://wordpress.org/support/topic/session_start-cannot-send-session-cookie-headers-already-sent/#post-7247250)
 * Thanks for your fast feedback.
    And thanks for your plugin. It makes WordPress
   really powerful.
 * I’ll try the patch on line 32, and wait for the next release.
    Cheers!
 *  Plugin Author [ka2](https://wordpress.org/support/users/ka2/)
 * (@ka2)
 * [10 years ago](https://wordpress.org/support/topic/session_start-cannot-send-session-cookie-headers-already-sent/#post-7247370)
 * This ticket was closed to have corresponded already.

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

The topic ‘session_start(): Cannot send session cookie – headers already sent’ is
closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-database-tables_e4e2e2.svg)
 * [Custom DataBase Tables](https://wordpress.org/plugins/custom-database-tables/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-database-tables/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-database-tables/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-database-tables/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-database-tables/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-database-tables/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ka2](https://wordpress.org/support/users/ka2/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/session_start-cannot-send-session-cookie-headers-already-sent/#post-7247370)
 * Status: resolved