Title: &lt;?php session_start(); &gt; causing errors in WP
Last modified: August 18, 2016

---

# <?php session_start(); > causing errors in WP

 *  [jonb](https://wordpress.org/support/users/jonb/)
 * (@jonb)
 * [19 years, 10 months ago](https://wordpress.org/support/topic/ltphp-session_start-gt-causing-errors-in-wp/)
 * Okay Guys, so I’m trying to add a tracker to my blog. But when I try to add it
   I run into the following error in my sidebar after i add “<?php session_start();?
   >” to the top of my header.
 *  “Warning: Invalid argument supplied for foreach() in /home/content/j/o/n/jonbracy/
   html/wp-includes/template-functions-category.php on line 321”
 *  Also the Archives disappear. Anyone got any ideas on how to keep the <?php session_start()?
   >(for a tracker) and get the Archives and Categories links on the sidebar to 
   work?
 *  I meet all the requirements and have PHP 4.3.11, a mySQL database, and WP version
   2.0.3.

The topic ‘<?php session_start(); > causing errors in WP’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [jonb](https://wordpress.org/support/users/jonb/)
 * Last activity: [19 years, 10 months ago](https://wordpress.org/support/topic/ltphp-session_start-gt-causing-errors-in-wp/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
