When installing new copy of forums, errors on 'dropping tables' while not necessary!
I have a completely empty database, and it connects just fine, but it does not see the tables are NOT there, it attempts to drop tables.
top snippet of error:
Notice (8): Use of undefined constant DIR - assumed 'DIR' [APP\plugins\forum\controllers\install_controller.php, line 255]
Code | Context
$prefix = "forum_"
*/
private function __rewriteSql($prefix = '') {
$path = dirname(__DIR__) . DS .'config'. DS .'schema'. DS;
InstallController::__rewriteSql() - APP\plugins\forum\controllers\install_controller.php, line 255
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 106
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Notice (8): Use of undefined constant DIR - assumed 'DIR' [APP\plugins\forum\controllers\install_controller.php, line 107]
Code
// Prepare SQL
$this->__rewriteSql($this->Session->read('Install.prefix'));
$path = dirname(__DIR__) . DS .'config'. DS .'schema'. DS;
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 107
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Warning (2): file_get_contents(.\config\schema\prepared_schema.sql) [function.file-get-contents]: failed to open stream: No such file or directory [APP\plugins\forum\controllers\install_controller.php, line 110]
Code | Context
$path = ".\config\schema"
file_get_contents - [internal], line ??
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 110
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Warning (2): file_get_contents(.\config\schema\prepared_users_create.sql) [function.file-get-contents]: failed to open stream: No such file or directory [APP\plugins\forum\controllers\install_controller.php, line 115]
Code | Context
$path = ".\config\schema"
$schema = array(
""
)
file_get_contents - [internal], line ??
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 115
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Warning (512): SQL Error: 1051: Unknown table 'forum_access' [CORE\cake\libs\model\datasources\dbo_source.php, line 527]
Code | Context
$sql = "DROP TABLE forum_access
;"
$error = "1051: Unknown table 'forum_access'"
$out = null
$out = null;
if ($error) {
trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE\cake\libs\model\datasources\dbo_source.php, line 527
DboSource::execute() - CORE\cake\libs\model\datasources\dbo_source.php, line 203
InstallController::__rollback() - APP\plugins\forum\controllers\install_controller.php, line 282
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 137
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Query: DROP TABLE forum_access
;
Warning (512): SQL Error: 1051: Unknown table 'forum_access_levels' [CORE\cake\libs\model\datasources\dbo_source.php, line 527]
Code | Context
$sql = "DROP TABLE forum_access_levels
;"
$error = "1051: Unknown table 'forum_access_levels'"
$out = null
$out = null;
if ($error) {
trigger_error("<span style = \"color:Red;text-align:left\"><b>SQL Error:</b> {$this->error}</span>", E_USER_WARNING);
DboSource::showQuery() - CORE\cake\libs\model\datasources\dbo_source.php, line 527
DboSource::execute() - CORE\cake\libs\model\datasources\dbo_source.php, line 203
InstallController::__rollback() - APP\plugins\forum\controllers\install_controller.php, line 282
InstallController::create_tables() - APP\plugins\forum\controllers\install_controller.php, line 137
Object::dispatchMethod() - CORE\cake\libs\object.php, line 116
Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 227
Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 194
[main] - APP\webroot\index.php, line 88
Query: DROP TABLE forum_access_levels
;
--- end of snippet ---
What's wrong?