Jump to:

5542 Posts in 1739 Topics by 1225 members

Customising the CMS

SilverStripe Forums » Customising the CMS » [Notice] A session had already been started - ignoring session_start()

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 3274 Views
  • Valorinbattle
    Avatar
    Community Member
    95 Posts

    [Notice] A session had already been started - ignoring session_start() Link to this post

    I'm trying to integrate Cartweaver into SS. It's an ecommerce solutions that I've used for a while on static sites, but never in conjunction with SS.

    When I try to add it into a page.ss, I get this:

    [Notice] A session had already been started - ignoring session_start()

    It identifies this file as the source of misbehaving session_start:
    cw3\CWLibrary\CWIncSetup.php

    I've tried to just suppress it with @session_start(); - the error doesn't
    return but the pages don't load either

    I've also tried this, with no success: if(!isset($_SESSION)) {
    session_start(); }

    I did a search for all SS files that call up session_start(), but I don't know what's at fault or how to fix it.
    Cartweaver obviously is trying to start a session after SS already has.

    Any ideas?

    Thanks for the help!
    ~ James

  • dalesaurus
    Avatar
    Community Member
    283 Posts

    Re: [Notice] A session had already been started - ignoring session_start() Link to this post

    SS will dominate any other PHP app that conflicts with its sessions or attempts to use any URL after http://yoursssite.com/* due to the way it handles URL rewrites.

    By far the easiest solution for you will be to setup your cart as a separate VHOST on a subdomain, like http://store.yoursssite.com/

    3274 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.