Title: session error
Last modified: August 30, 2016

---

# session error

 *  Resolved [ajayphp](https://wordpress.org/support/users/ajayphp/)
 * (@ajayphp)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/session-error/)
 * Hi,
 * Notice: A session had already been started – ignoring session_start() in /www/
   htdocs/site/wp-content/plugins/wp-mvc/core/loaders/mvc_admin_loader.php on line
   36
 * Regards
 * [https://wordpress.org/plugins/wp-mvc/](https://wordpress.org/plugins/wp-mvc/)

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

 *  Plugin Author [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * (@robertpeake)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/session-error/#post-6242351)
 * Hi Ajay,
 * How are you seeing this? On the command line or in running wp-mvc or in running
   a plugin you built from wp-mvc? Please give us enough detail so that we can try
   to reproduce it, and we’ll try to help.
 * Thanks!
 * Best,
    Robert
 *  Thread Starter [ajayphp](https://wordpress.org/support/users/ajayphp/)
 * (@ajayphp)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/session-error/#post-6242359)
 * Hi,
 * with you example plugin venue , event etc.
 * when go to wp-admin/admin.php?page=mvc_venues
 * then Error:
    Notice: A session had already been started – ignoring session_start()
   in /www/htdocs/site/wp-content/plugins/wp-mvc/core/loaders/mvc_admin_loader.php
   on line 36
 * — how can we lean this framework for emebded with plugin
    — how easy to create
   admin side, scaffold with not custom post type ? Regards,
 *  Plugin Author [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * (@robertpeake)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/session-error/#post-6242420)
 * Hi Ajay,
 * Unfortunately, I cannot reproduce this on a default installation of WordPress
   with the wp-mvc plugin running. So, the likely cause here is another third-party
   plugin that you are running that is interfering. You can try disabling plugins
   one-by-one until you find the cause.
 * In answer to your other questions, we are working on how best to embed wp-mvc
   in a self-contained plugin, but for now it must be run alongside any other plugins
   built on wp-mvc to get them to work.
 * It is very easy to create admins for new content, even without assigning them
   to a custom post type. See the documentation at [http://wpmvc.org/](http://wpmvc.org/)
   for more details.
 * I hope this helps point you in the right direction!
 * Best,
    Robert
 *  [Jordan Enev](https://wordpress.org/support/users/jordan_enev/)
 * (@jordan_enev)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/session-error/#post-6242484)
 * Hello [@robert](https://wordpress.org/support/users/robert/),
 * I have the same issue as [@ajayphp](https://wordpress.org/support/users/ajayphp/)
   described.
    The problem occurs if there is another plugin which initialize a 
   session before yours plugin (wp-mvc).
 * So the issues is at **36 row** at plugins\wp-mvc\core\loaders\mvc_admin_loader.
   php.
 * You should initialize a session only if there isn’t any other.
    So to fix the
   problem you should fix 36 row in a following way :
 *     ```
       if(session_id() == '')
            session_start();
       ```
   
 * More info at [Stackoverflow](http://stackoverflow.com/questions/11797351/how-to-use-session-start-in-wordpress).
 *  Plugin Author [Robert Peake](https://wordpress.org/support/users/robertpeake/)
 * (@robertpeake)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/session-error/#post-6242485)
 * Thanks for the explanation, Jordan. This has been resolved in 1.3.3, which has
   just been released to the WordPress Repository.
 *  [Jordan Enev](https://wordpress.org/support/users/jordan_enev/)
 * (@jordan_enev)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/session-error/#post-6242486)
 * Thank you too for the fast release! 🙂

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

The topic ‘session error’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-mvc_ffffff.svg)
 * [WP MVC](https://wordpress.org/plugins/wp-mvc/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-mvc/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-mvc/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-mvc/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-mvc/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-mvc/reviews/)

 * 6 replies
 * 3 participants
 * Last reply from: [Jordan Enev](https://wordpress.org/support/users/jordan_enev/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/session-error/#post-6242486)
 * Status: resolved