• Have just activated an install of wp-e-commerce plugin and see the following above the header. Am unable to login.

    Warning: session_start() [function.session-start]: open(/var/php_sessions/sess_aa8cc0e0f3cf654b1e5daccbe37bbbed, O_RDWR) failed: No such file or directory (2) in /hermes/bosweb/web230/b2306/ipw.printer-pro/public_html/printerproinc/wp-content/plugins/wp-e-commerce/wp-shopping-cart.php on line 166

    Warning: session_start() [function.session-start]: Cannot send session cookie – headers already sent by (output started at /hermes/bosweb/web230/b2306/ipw.printer-pro/public_html/printerproinc/wp-content/plugins/wp-e-commerce/wp-shopping-cart.php:166) in /hermes/bosweb/web230/b2306/ipw.printer-pro/public_html/printerproinc/wp-content/plugins/wp-e-commerce/wp-shopping-cart.php on line 166

    Warning: session_start() [function.session-start]: Cannot send session cache limiter – headers already sent (output started at /hermes/bosweb/web230/b2306/ipw.printer-pro/public_html/printerproinc/wp-content/plugins/wp-e-commerce/wp-shopping-cart.php:166) in /hermes/bosweb/web230/b2306/ipw.printer-pro/public_html/printerproinc/wp-content/plugins/wp-e-commerce/wp-shopping-cart.php on line 166

    https://www.ads-software.com/extend/plugins/wp-e-commerce/

Viewing 2 replies - 1 through 2 (of 2 total)
  • You need PHP sessions turned on to be able to use this plugin, either your hosting provider does not have them enabled, or there is a problem with the configuration preventing them from working.

    session_start() sends a unique session id that you may relate to data in the form of a cookie to the user. sessions ids are all handled automatically with php core methods.

    Why you are receiving the error is because you are attempting to send that session id (as a cookie) to the user after part of the HTML has already started. Due to the HTTP/1.1 request, and how it works, is it must receive cookies before any data is sent.

    try this:

    if (!session_id()) {
        start_session;
    }

    Put it in a place at the top of the file. And good luck with wp-e-commerce. It took me a ton of work to get it working (even with the paid-for gold edition).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Session_start error on activation of wp-e-commerce plugin’ is closed to new replies.