Not for official support
We do not provide technical support in this forum.
If you want to contact our customer support, please use our support form.

Take the chance to buy
Shop-Script 5 at the low price
Save $30 only until May 31!
Your last chance!
8 days left

You are not logged in.

#1 2011-10-28 01:40

kristopher
Member

function.session-start ERROR

I am receiving these errors after uploading shopscript free.Kindly help to get rid of this

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/hostname/public_html/vikistin/index.php:3) in /home/hostname/public_html/vikistin/index.php on line 49

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/hostname/public_html/vikistin/index.php:3) in /home/hostname/public_html/vikistin/index.php on line 49
Table 'rgitproj_vikistin.SS_categories' doesn't exist

Offline

 

#2 2011-10-28 02:06

rat
Administrator

Re: function.session-start ERROR

What do you have at line 3 in index.php?


Be careful what you wish for — you might get it.

Offline

 

#3 2011-10-28 02:24

kristopher
Member

Re: function.session-start ERROR

I made a few changes and now the error is:

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/rgitproj/public_html/vikistin/index.php:10) in /home/rgitproj/public_html/vikistin/index.php on line 38

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/rgitproj/public_html/vikistin/index.php:10) in /home/rgitproj/public_html/vikistin/index.php on line 38
Table 'rgitproj_vikistin.SS_categories' doesn't exist

THIS IS THE CODE

LINE 38:     session_start();

    ini_set("display_errors", "1");

    //init Smarty
    require 'smarty/smarty.class.php';
    $smarty = new Smarty; //core smarty object
    $smarty_mail = new Smarty; //for e-mails

    //select a new language?
    if (isset($_POST["new_language"]))
    {
        $_SESSION["current_language"] = $_POST["new_language"];
    }

    //current language session variable
    if (!isset($_SESSION["current_language"]) ||
        $_SESSION["current_language"] < 0 || $_SESSION["current_language"] > count($lang_list))
            $_SESSION["current_language"] = 0; //set default language
    //include a language file
    if (isset($lang_list[$_SESSION["current_language"]]) && file_exists("./languages/".$lang_list[$_SESSION["current_language"]]->filename))
        include("./languages/".$lang_list[$_SESSION["current_language"]]->filename); //include current language file
    else
    {
        die("<font color=red><b>ERROR: Couldn't find language file!</b></font>");
    }

    //connect to the database

Offline

 

#4 2011-10-28 02:39

kristopher
Member

Re: function.session-start ERROR

AGAIN AFTER SOME MORE MODIFICATIONS THE FINAL ERROR I M LEFT OUT WITH
Table 'rgitproj_vikistin.SS_categories' doesn't exist

every thing else resolved
thanks
pls help

Offline

 

#5 2011-10-28 03:44

rat
Administrator

Re: function.session-start ERROR

kristopher wrote:

Table 'rgitproj_vikistin.SS_categories' doesn't exist

This means exactly what it says: table SS_categories does not exist. Restore it from a backup, if you one.


Be careful what you wish for — you might get it.

Offline

 

#6 2011-10-28 23:00

kristopher
Member

Re: function.session-start ERROR

THANKS I guess i panicked bit early it was just a naming conflict ss_tablename to SS_tablename All tables were to be renamed.
but thanks for quick response

Offline

 

Board footer

Powered by PunBB