Failed to create tables
Posted: 2022-04-01 10:24
Hi,
I'm having a problem when trying to launch an app.
I recently changed PC and when trying to move my files to the new PC in order to keep working with the app, I can't make it to work.
Using windows 11, with XAMPP.
Appgini version 5.97 (tried with 5.95 with same results)
I just launched the existing code for a working app (working fine in the "old" PC) and I just keep receiving an error:
When trying to open a "fresh" app downloaded from Appgini site (Inventory Manager), I receive the same error (I manually created table transactions that was showing error before) :
I'm out of ideas.
I checked and the config for XAMPP is the same in the old and new PC.
Any ideas on where I should look to find the cause of the error?
Thank you!
I'm having a problem when trying to launch an app.
I recently changed PC and when trying to move my files to the new PC in order to keep working with the app, I can't make it to work.
Using windows 11, with XAMPP.
Appgini version 5.97 (tried with 5.95 with same results)
I just launched the existing code for a working app (working fine in the "old" PC) and I just keep receiving an error:
Fatal error: Uncaught mysqli_sql_exception: Table 'cubicdb_local.projects' doesn't exist in D:\hds\xampp\htdocs\cubicapp-1\db.php:109 Stack trace: #0 D:\hds\xampp\htdocs\cubicapp-1\db.php(109): mysqli_query(Object(mysqli), 'SELECT COUNT(1)...') #1 D:\hds\xampp\htdocs\cubicapp-1\updateDB.php(1183): db_query('SELECT COUNT(1)...') #2 D:\hds\xampp\htdocs\cubicapp-1\updateDB.php(13): setupTable('projects', ' \r\n\t\t\tCREATE TA...', false) #3 D:\hds\xampp\htdocs\cubicapp-1\setup.php(144): include_once('D:\\hds\\xampp\\ht...') #4 {main} thrown in D:\hds\xampp\htdocs\cubicapp-1\db.php on line 109
When trying to open a "fresh" app downloaded from Appgini site (Inventory Manager), I receive the same error (I manually created table transactions that was showing error before) :
Table transactions exists, containing 0 records.Table is up-to-date.
Fatal error: Uncaught mysqli_sql_exception: Table 'invmanager.batches' doesn't exist in D:\hds\xampp\htdocs\inv-manager-4.6\generated_app\db.php:109 Stack trace: #0 D:\hds\xampp\htdocs\inv-manager-4.6\generated_app\db.php(109): mysqli_query(Object(mysqli), 'SELECT COUNT(1)...') #1 D:\hds\xampp\htdocs\inv-manager-4.6\generated_app\updateDB.php(127): db_query('SELECT COUNT(1)...') #2 D:\hds\xampp\htdocs\inv-manager-4.6\generated_app\updateDB.php(29): setupTable('batches', ' \r\n\t\t\tCREATE TA...', false) #3 D:\hds\xampp\htdocs\inv-manager-4.6\generated_app\setup.php(144): include_once('D:\\hds\\xampp\\ht...') #4 {main} thrown in D:\hds\xampp\htdocs\inv-manager-4.6\generated_app\db.php on line 109
I'm out of ideas.
I checked and the config for XAMPP is the same in the old and new PC.
Any ideas on where I should look to find the cause of the error?
Thank you!