Please can someone help me!
I’m using the absolutely fantabulous yiishop extension for my website.
Problem being my code in index.php looks like this:
<?php
session_start();
// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii/framework/yii.php';
$config=dirname(__FILE__).'/../protected/config/main.php';
// change the following line to false when in production mode. Not needed when locally debugged.
$debugServer = false;
defined('YII_DEBUG') or define('YII_DEBUG',($debugServer or $_SERVER['SERVER_ADDR'] == "::1"));
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);
require_once($yii);
$ua = $_SERVER['HTTP_USER_AGENT'];
if (stristr($ua, "Windows CE")
or stristr($ua, "AvantGo")
or stristr($ua, "Mazingo")
or stristr($ua, "Mobile")
or stristr($ua, "T68")
or stristr($ua, "Syncalot")
or stristr($ua, "Blazer"))
{
$DEVICE_TYPE="MOBILE";
}
if (isset($DEVICE_TYPE) and $DEVICE_TYPE=="MOBILE")
$_SESSION['BrowserType'] = "PDA_Styles" ;
else
$_SESSION['BrowserType'] = "WEB_Styles" ;
// $_SESSION['BrowserType'] = "PDA_Styles";
Yii::createWebApplication($config)->run();
exit();
?>
the session_start() at the top seems to be making issues.
I’m getting this error - __php_incomplete_class object error
and this error [b]Fatal error: EShoppingCart::getItemsCount() [<a href=‘eshoppingcart.getitemscount’>eshoppingcart.getitemscount</a>]: The script tried to execute a method or access a property of an incomplete object. Please ensure that the class definition "Listings" of the object you are trying to operate on was loaded before unserialize() gets called or provide a __autoload() function to load the class definition in C:\home\smartlst\protected\extensions\yiishop\EShoppingCart.php on line 127
[/b]
What can I do because I need that session_start() for other parts of my site???