Topic: Cannot create new company due to bugs in sql file
After a fresh install of FA 2.4.8, I get this error when trying to create a new company (admin/create_coy.php):
SQL script execution failed in line 16:
Cannot create new company due to bugs in sql file.
Details how I got here:
** Selected PHP version 5.6
** This is a continuation of topic "Import of Direct Sales Invoice from csv fails" (https://frontaccounting.com/punbb/viewtopic.php?pid=37390#p37390), but the subject is now different. I could no longer use the previous installation; carelessly, I selected PHP version 5.3 instead 5.6 as recommended by apmuthu. After that I could no longer log into my FA installation. Decided to start over.
** Used softaculous at InMotion Hosting to install FA 2.4.8.
** Copied php.ini to the FA root folder. Changed display_errors to On, track_errors to On, and 'error_log = /dev/null' to 'error_log = /logs/FA_errors.log'.
** 2. Obtained FA24_post_release_fixes_2020-04-07.zip from https://frontaccounting.com/punbb/viewtopic.php?pid=37005&login=1 , post number 4. Uploaded those files into their respective directories in FA after renaming the superseded files by appending .OLD to each file name.
** From inside FA, added the module imports_transactions which should be the latest after the official repository update reported in post #10 of https://frontaccounting.com/punbb/viewtopic.php?pid=37390#p37390 .
** Modified line 220 of import_transactions.php to read:
$_SESSION['Items'] = new import_sales_cart($type, 0, false); $_SESSION['Items']->prep_amount = 0.0E0;
** Entered company setup data for Company 0
** Tried to create Company 1; got error: SQL script execution failed in line 16: Cannot create new company due to bugs in sql file.