After commenting out the following in include/database/DBManager.php:
public function checkConnection()
{
$this->last_error = ‘’;
if (!isset($this->database)) {
$this->connect();
}else{
/** try {
$this->database->ping();
}catch(Exception $ex){
unset($this->database);
$this->connect();
}
*/
$this->connect();
}
}
Now it makes some progress, but got fatal error:
Fatal error: Uncaught exception ‘Zend_Search_Lucene_Exception’ with message ‘Utf8Num analyzer needs PCRE unicode support to be enabled.’ in /www/content/crm-sys/docs/SuiteCRM/modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num.php:62 Stack trace: #0 /www/content/crm-sys/docs/SuiteCRM/modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num/CaseInsensitive.php(44): Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num->__construct() #1 /www/content/crm-sys/docs/SuiteCRM/modules/AOD_Index/AOD_Index.php(49): Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive->__construct() #2 /www/content/crm-sys/docs/SuiteCRM/install/performSetup.php(243): AOD_Index->__construct() #3 /www/content/crm-sys/docs/SuiteCRM/install.php(749): require(’/www/content/cr…’) #4 {main} thrown in /www/content/crm-sys/docs/SuiteCRM/modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num.php on line 62
So I re-install pcre with utf8 support and then recompile PHP.
After that, the installation moved further until I got the following:
Creating SuiteCRM configuration file (config.php)
Creating SuiteCRM application tables, audit tables and relationship metadata
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /www/content/crm-sys/docs/SuiteCRM/include/database/MysqlManager.php on line 493
…
Creating default SuiteCRM data
Creating default users… done
Creating default scheduler jobs… done
Populating the database tables with demo data (this may take a little while)
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Fatal error: Uncaught exception ‘Exception’ with message ‘Database error. Please check suitecrm.log for details.’ in /www/content/crm-sys/docs/SuiteCRM/include/utils.php:1623 Stack trace: #0 /www/content/crm-sys/docs/SuiteCRM/include/database/DBManager.php(347): sugar_die(‘Database error…’) #1 /www/content/crm-sys/docs/SuiteCRM/include/database/DBManager.php(321): DBManager->registerError(‘Retrieving reco…’, ‘MySQL error 104…’, true) #2 /www/content/crm-sys/docs/SuiteCRM/include/database/MysqlManager.php(191): DBManager->checkError(‘Retrieving reco…’, true) #3 /www/content/crm-sys/docs/SuiteCRM/include/database/MysqlManager.php(277): MysqlManager->query(‘SELECT users.* …’, true, ‘Retrieving reco…’) #4 /www/content/crm-sys/docs/SuiteCRM/data/SugarBean.php(3834): MysqlManager->limitQuery(‘SELECT users.* …’, 0, 1, true, ‘Retrieving reco…’) #5 /www/content/crm-sys/docs/SuiteCRM/include/SugarObjects/templates/person/Person.php(83): SugarBean->retrieve(‘1’, true, true) #6 /www/content/crm-sys/docs/SuiteCRM/modu in /www/content/crm-sys/docs/SuiteCRM/include/utils.php on line 1623
suitecrm.log is empty, 0 byte.
install.log:
2016-05-06 18:53:17…DBG: SugarThemeRegistry::getDefault
2016-05-06 18:53:17…DBG: require modules/Users/Save.php
sugarcrm.log:
Fri May 6 14:52:12 2016 [37454][-none-][FATAL] Query Failed:SELECT id FROM aow_workflow WHERE aow_workflow.flow_module = ‘ACLActions’ AND aow_workflow.status = ‘Active’ AND (aow_workflow.run_when = ‘Always’ OR aow_workflow.run_when = ‘On_Save’ OR aow_workflow.run_when = ‘Create’) AND aow_workflow.deleted = 0 ::: MySQL error 1146: Table ‘suitecrm.aow_workflow’ doesn’t exist
Fri May 6 14:52:12 2016 [37454][-none-][FATAL] Query Failed:SELECT id FROM aow_workflow WHERE aow_workflow.flow_module = ‘ACLActions’ AND aow_workflow.status = ‘Active’ AND (aow_workflow.run_when = ‘Always’ OR aow_workflow.run_when = ‘On_Save’ OR aow_workflow.run_when = ‘Create’) AND aow_workflow.deleted = 0 ::: MySQL error 1146: Table ‘suitecrm.aow_workflow’ doesn’t exist
Fri May 6 14:53:17 2016 [37454][1][FATAL] Retrieving record by id users:1 found Query Failed:SELECT users.* FROM users WHERE users.id = ‘1’ AND users.deleted=0 LIMIT 0,1::: MySQL error 1046: No database selected
Is the installation really tested and working?
Dian
2 days 17 hours ago #31698
dianyuanwang
dianyuanwang’s Avatar
That part of the code does not seem to do anything.
It is this part of the code in include/database/DBManager.php:
public function checkConnection()
{
$this->last_error = ‘’;
if (!isset($this->database)) {
$this->connect();
}else{
/** try {
$this->database->ping();
}catch(Exception $ex){
unset($this->database);
$this->connect();
}
*/
$this->connect();
}
}
I commented out as above and installation at least proceeds now. But failed at a later stage.
Populating the database tables with demo data (this may take a little while)
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Fatal error: Uncaught exception ‘Exception’ with message ‘Database error. Please check suitecrm.log for details.’ in /www/content/crm-sys/docs/SuiteCRM/include/utils.php:1623 Stack trace: #0 /www/content/crm-sys/docs/SuiteCRM/include/database/DBManager.php(347): sugar_die(‘Database error…’) #1 /www/content/crm-sys/docs/SuiteCRM/include/database/DBManager.php(321): DBManager->registerError(‘Retrieving reco…’, ‘MySQL error 104…’, true) #2 /www/content/crm-sys/docs/SuiteCRM/include/database/MysqlManager.php(191): DBManager->checkError(‘Retrieving reco…’, true) #3 /www/content/crm-sys/docs/SuiteCRM/include/database/MysqlManager.php(277): MysqlManager->query(‘SELECT users.* …’, true, ‘Retrieving reco…’) #4 /www/content/crm-sys/docs/SuiteCRM/data/SugarBean.php(3834): MysqlManager->limitQuery(‘SELECT users.* …’, 0, 1, true, ‘Retrieving reco…’) #5 /www/content/crm-sys/docs/SuiteCRM/include/SugarObjects/templates/person/Person.php(83): SugarBean->retrieve(‘1’, true, true) #6 /www/content/crm-sys/docs/SuiteCRM/modu in /www/content/crm-sys/docs/SuiteCRM/include/utils.php on line 1623
2 days 18 hours ago #31697
dianyuanwang
dianyuanwang’s Avatar
Andreas
yes, that did do the trick. Now it makes some progress, but got fatal error:
Fatal error: Uncaught exception ‘Zend_Search_Lucene_Exception’ with message ‘Utf8Num analyzer needs PCRE unicode support to be enabled.’ in /www/content/crm-sys/docs/SuiteCRM/modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num.php:62 Stack trace: #0 /www/content/crm-sys/docs/SuiteCRM/modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num/CaseInsensitive.php(44): Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num->__construct() #1 /www/content/crm-sys/docs/SuiteCRM/modules/AOD_Index/AOD_Index.php(49): Zend_Search_Lucene_Analysis_Analyzer_Common_Utf8Num_CaseInsensitive->__construct() #2 /www/content/crm-sys/docs/SuiteCRM/install/performSetup.php(243): AOD_Index->__construct() #3 /www/content/crm-sys/docs/SuiteCRM/install.php(749): require(’/www/content/cr…’) #4 {main} thrown in /www/content/crm-sys/docs/SuiteCRM/modules/AOD_Index/Lib/Zend/Search/Lucene/Analysis/Analyzer/Common/Utf8Num.php on line 62
So I re-install pcre with utf8 support and then recompile PHP.
After that, the installation moved further until I got the following:
Creating SuiteCRM configuration file (config.php)
Creating SuiteCRM application tables, audit tables and relationship metadata
Deprecated: mysql_connect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /www/content/crm-sys/docs/SuiteCRM/include/database/MysqlManager.php on line 493
…
Creating default SuiteCRM data
Creating default users… done
Creating default scheduler jobs… done
Populating the database tables with demo data (this may take a little while)
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Warning: Invalid argument supplied for foreach() in /www/content/crm-sys/docs/SuiteCRM/modules/ProjectTask/updateDependencies.php on line 52
Fatal error: Uncaught exception ‘Exception’ with message ‘Database error. Please check suitecrm.log for details.’ in /www/content/crm-sys/docs/SuiteCRM/include/utils.php:1623 Stack trace: #0 /www/content/crm-sys/docs/SuiteCRM/include/database/DBManager.php(347): sugar_die(‘Database error…’) #1 /www/content/crm-sys/docs/SuiteCRM/include/database/DBManager.php(321): DBManager->registerError(‘Retrieving reco…’, ‘MySQL error 104…’, true) #2 /www/content/crm-sys/docs/SuiteCRM/include/database/MysqlManager.php(191): DBManager->checkError(‘Retrieving reco…’, true) #3 /www/content/crm-sys/docs/SuiteCRM/include/database/MysqlManager.php(277): MysqlManager->query(‘SELECT users.* …’, true, ‘Retrieving reco…’) #4 /www/content/crm-sys/docs/SuiteCRM/data/SugarBean.php(3834): MysqlManager->limitQuery(‘SELECT users.* …’, 0, 1, true, ‘Retrieving reco…’) #5 /www/content/crm-sys/docs/SuiteCRM/include/SugarObjects/templates/person/Person.php(83): SugarBean->retrieve(‘1’, true, true) #6 /www/content/crm-sys/docs/SuiteCRM/modu in /www/content/crm-sys/docs/SuiteCRM/include/utils.php on line 1623
suitecrm.log is empty, 0 byte.
install.log:
2016-05-06 18:53:17…DBG: SugarThemeRegistry::getDefault
2016-05-06 18:53:17…DBG: require modules/Users/Save.php
sugarcrm.log:
Fri May 6 14:52:12 2016 [37454][-none-][FATAL] Query Failed:SELECT id FROM aow_workflow WHERE aow_workflow.flow_module = ‘ACLActions’ AND aow_workflow.status = ‘Active’ AND (aow_workflow.run_when = ‘Always’ OR aow_workflow.run_when = ‘On_Save’ OR aow_workflow.run_when = ‘Create’) AND aow_workflow.deleted = 0 ::: MySQL error 1146: Table ‘suitecrm.aow_workflow’ doesn’t exist
Fri May 6 14:52:12 2016 [37454][-none-][FATAL] Query Failed:SELECT id FROM aow_workflow WHERE aow_workflow.flow_module = ‘ACLActions’ AND aow_workflow.status = ‘Active’ AND (aow_workflow.run_when = ‘Always’ OR aow_workflow.run_when = ‘On_Save’ OR aow_workflow.run_when = ‘Create’) AND aow_workflow.deleted = 0 ::: MySQL error 1146: Table ‘suitecrm.aow_workflow’ doesn’t exist
Fri May 6 14:53:17 2016 [37454][1][FATAL] Retrieving record by id users:1 found Query Failed:SELECT users.* FROM users WHERE users.id = ‘1’ AND users.deleted=0 LIMIT 0,1::: MySQL error 1046: No database selected
Is the installation really tested and working?
Dian