TPhpErrorException

Description

[Warning] count(): Parameter must be an array or an object that implements Countable (@line 223 in file /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/Common/Mysql/TMysqlMetaData.php).

Source File

/mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/Common/Mysql/TMysqlMetaData.php (223)

0212:         if($this->getServerVersion()<5.01)
0213:             return false;
0214:         if($schemaName!==null)
0215:             $sql = "SHOW FULL TABLES FROM `{$schemaName}` LIKE ':table'";
0216:         else
0217:             $sql = "SHOW FULL TABLES LIKE ':table'";
0218: 
0219:         $command = $this->getDbConnection()->createCommand($sql);
0220:         $command->bindValue(':table', $tableName);
0221:         try
0222:         {
0223: return count($result = $command->queryRow()) > 0 && $result['Table_type']==='VIEW';
0224: } 0225: catch(TDbException $e) 0226: { 0227: $table = $schemaName===null?$tableName:$schemaName.'.'.$tableName; 0228: throw new TDbException('dbcommon_invalid_table_name',$table,$e->getMessage()); 0229: } 0230: } 0231: 0232: /** 0233: * Gets the primary and foreign key column details for the given table. 0234: * @param string schema name 0235: * @param string table name.

Stack Trace

#0 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/Common/Mysql/TMysqlMetaData.php(223): PradoBase::phpErrorHandler(2, 'count(): Parame...', '/mnt/data/accou...', 223, Array)
#1 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/Common/Mysql/TMysqlMetaData.php(193): TMysqlMetaData->getIsView(NULL, 'backlinks')
#2 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/Common/Mysql/TMysqlMetaData.php(54): TMysqlMetaData->createNewTableInfo('backlinks')
#3 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/Common/TDbMetaData.php(93): TMysqlMetaData->createTableInfo('backlinks')
#4 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/ActiveRecord/TActiveRecordGateway.php(121): TDbMetaData->getTableInfo('backlinks')
#5 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/ActiveRecord/TActiveRecordGateway.php(93): TActiveRecordGateway->getTableInfo(Object(TDbConnection), 'backlinks')
#6 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/ActiveRecord/TActiveRecordGateway.php(138): TActiveRecordGateway->getRecordTableInfo(Object(BacklinkRecord))
#7 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/ActiveRecord/TActiveRecordGateway.php(224): TActiveRecordGateway->getCommand(Object(BacklinkRecord))
#8 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Data/ActiveRecord/TActiveRecord.php(600): TActiveRecordGateway->findRecordsByCriteria(Object(BacklinkRecord), NULL, true)
#9 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/protected/controls/frontend/backlinks/Backlinks.php(18): TActiveRecord->findAll()
#10 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TControl.php(1270): Backlinks->onInit(NULL)
#11 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Backlinks))
#12 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Layout))
#13 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(Layout))
#14 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Layout))
#15 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(Object(Home))
#16 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TControl.php(1255): TTemplateControl->initRecursive(Object(Home))
#17 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TCompositeControl.php(35): TControl->initRecursive(Object(Home))
#18 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TTemplateControl.php(240): TCompositeControl->initRecursive(NULL)
#19 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TPage.php(207): TTemplateControl->initRecursive()
#20 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/UI/TPage.php(198): TPage->processNormalRequest(Object(THtmlWriter))
#21 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/Services/TPageService.php(474): TPage->run(Object(THtmlWriter))
#22 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/Web/Services/TPageService.php(420): TPageService->runPage(Object(Home), Array)
#23 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/TApplication.php(1095): TPageService->run()
#24 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/frameworks/prado/TApplication.php(382): TApplication->runService()
#25 /mnt/data/accounts/j/janpavera/data/www/domains/krkonose-herlikovice_cz/index.php(16): TApplication->run()
#26 {main}
2018-09-20 04:44 Apache PRADO/3.1.6