Deprecated: Function split() is deprecated in /home/yahayco/public_html/framework/PradoBase.php on line 451
 TPhpErrorException

TPhpErrorException

Description

[Warning] SQLiteDatabase::query() [<a href='sqlitedatabase.query'>sqlitedatabase.query</a>]: table cache already exists (@line 127 in file /home/yahayco/public_html/framework/Caching/TSqliteCache.php).

Source File

/home/yahayco/public_html/framework/Caching/TSqliteCache.php (127)

0116:     public function init($config)
0117:     {
0118:         if(!function_exists('sqlite_open'))
0119:             throw new TConfigurationException('sqlitecache_extension_required');
0120:         if($this->_file===null)
0121:             $this->_file=$this->getApplication()->getRuntimePath().'/sqlite.cache';
0122:         $error='';
0123:         if(($this->_db=new SQLiteDatabase($this->_file,0666,$error))===false)
0124:             throw new TConfigurationException('sqlitecache_connection_failed',$error);
0125:         if(@$this->_db->query('DELETE FROM '.self::CACHE_TABLE.' WHERE expire<>0 AND expire<'.time())===false)
0126:         {
0127: if($this->_db->query('CREATE TABLE '.self::CACHE_TABLE.' (key CHAR(128) PRIMARY KEY, value BLOB, expire INT)')===false)
0128: throw new TConfigurationException('sqlitecache_table_creation_failed',sqlite_error_string(sqlite_last_error())); 0129: } 0130: $this->_initialized=true; 0131: parent::init($config); 0132: } 0133: 0134: /** 0135: * @return string database file path (in namespace form) 0136: */ 0137: public function getDbFile() 0138: { 0139: return $this->_file;

Stack Trace

#0 [internal function]: PradoBase::phpErrorHandler(2, 'SQLiteDatabase:...', '/home/yahayco/p...', 127, Array)
#1 /home/yahayco/public_html/framework/Caching/TSqliteCache.php(127): SQLiteDatabase->query('CREATE TABLE ca...')
#2 /home/yahayco/public_html/framework/TApplication.php(880): TSqliteCache->init(Object(TXmlElement))
#3 /home/yahayco/public_html/framework/TApplication.php(927): TApplication->applyConfiguration(Object(TApplicationConfiguration), false)
#4 /home/yahayco/public_html/framework/TApplication.php(364): TApplication->initApplication()
#5 /home/yahayco/public_html/index.php(28): TApplication->run()
#6 {main}
2014-04-20 11:27 LiteSpeed PRADO/3.1.2