SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2011
    Posts
    1
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Shopping Cart Empty or PHP Session Not Working Correctly

    I have built a WordPress site with a shopping cart. Whenever a buyer attempts to make a purchase, we are getting an error
    message:
    "Either your shopping cart is empty or the PHP Session on your server is not working correctly."

    I have checked with our hosting who verified the PHP sessions are working correctly. They advised that running a simple session start command in a test script(which I do not know how to do) will show this to me. Or, perhaps the wrong type of sessions are selected in the cart. I have no idea how to fix this and am losing customers because of my limited knowledge
    of PHP sessions. Can anyone suggest some corrective measures or where I can look for help? Thanks so much!

  2. #2
    From space with love silver trophy
    SpacePhoenix's Avatar
    Join Date
    May 2007
    Location
    Poole, UK
    Posts
    4,904
    Mentioned
    93 Post(s)
    Tagged
    0 Thread(s)
    The session start command that your hosting is refering to is:

    PHP Code:
    <?php
    session_start
    ();

    // ... the rest of the script

    ?>
    You can't have any output being sent before the use of session_start()
    Community Team Advisor
    Forum Guidelines: Posting FAQ Signatures FAQ Self Promotion FAQ
    Help the Mods: What's Fluff? Report Fluff/Spam to a Moderator


Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •