The solution to our problems seems to be ridiculously simple. The default in FA in our setup is 2615, i.e. four digits. But our number of entries is obviously much larger after 8 years of working. So adding a digit to e.g. 26150 solves the issue and FA starts adding +1 for each entry created. As I said, this has not been a fatal problem, but annoying. `
1 12/29/2022 10:02:03 pm
Re: After upgrade to 2.4.4 duplicate references generated (7 replies, posted in Installation)
2 12/29/2022 06:57:24 pm
Re: Invoice not printing in 2.4.14 (7 replies, posted in Installation)
Thanks for the link. It apparently solved the issue:
+++ b/core/includes/db/connect_db_mysqli.inc
@@ -10,7 +10,7 @@
See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
***********************************************************************/
define('DB_DUPLICATE_ERROR', 1062);
-define('SQL_MODE', 'STRICT_ALL_TABLES'); // prevents SQL injection with silent field content truncation
+define('SQL_MODE', ''); // well tested
So I deleted STRICT_ALL_TABLES and kept the
define('SQL_MODE', '');
Thanks for the hint. I would never have found that. However, not sure whether the STRICT check means that there is something wrong in our DB. I hope not.
and
3 12/25/2022 05:34:49 pm
Re: Invoice not printing in 2.4.14 (7 replies, posted in Installation)
Thanks for the proposal. Now I get the following message in the FA error-log:
25-Dec-2022 11:31:30 America/Managua] 0:admin:connect_db_mysqli.inc:68: Unhandled exception [1364]: Field 'fiscal_year' doesn't have a default value.
[25-Dec-2022 11:31:35 America/Managua] 0:admin:sales_order_db.inc:103: Trying to access array offset on value of type null
[25-Dec-2022 11:31:35 America/Managua] 0:admin:connect_db_mysqli.inc:68: Unhandled exception [1292]: Incorrect date value: '' for column 'gl_date' at row 1.
I have checked the fiscal year in the configuration file, and it is correctly defined as 2022. The date format is configured as DDMMYYYY, and that is also what appears in the invoice (that won't print).
Any suggestion?
4 12/20/2022 09:35:23 pm
Re: Invoice not printing in 2.4.14 (7 replies, posted in Installation)
So I guess it simply tells me that it didn't succeed in generating a valid invoice. So it doesn't bring me further to understand why I can't generate an invoice.
5 12/20/2022 09:32:40 pm
Re: Invoice not printing in 2.4.14 (7 replies, posted in Installation)
Thanks for your reply. Searching in the database, this transaction is simply the last invoice. Deleting it doesn't help. Strange.
6 12/19/2022 11:04:13 pm
Topic: Invoice not printing in 2.4.14 (7 replies, posted in Installation)
We have been using FA for more than 10 years now, and are happy with the programme. Currently on 2.4.4 with php 7.3. As we want to update our server (Linux Mint 19) to Mint 21, we have the challenge of how to handle php8. Trying with a fresh install with American 4 digit COA), we get problems when trying to restore the backup. So I thought it might a good idea to start updating to 2.4.14 before updating the OS, as I understand 2.4.14 should be compatible with php 8.
The install of FA 2.4.14 with php 7.3 apparently works well, and restoring the backup from 2.4.4 gives no error. All data seem to have been restored. We can print accounting reports in both pdf and excel, but it is for some reason not possible to print an invoice. We get the error: "You have missing or invalid sales document in database (type:30, number:20131)". Not clear to me where that document should have gone, or why ti should suddenly be invalid. Any hint on where to look for a solution?
7 09/09/2021 06:23:48 pm
Topic: Printing on paper with preprinted heading (0 replies, posted in Reporting)
We are printing our official financial statements on paper with a preprinted heading. I therefore want the report to start 6-7 lines lower than the margin so it does not print upon the preprinted heading. If I edit header2.inc and put in 6-7 new blank lines in before the "Logo" that works fine. But it also makes the printing of the invoices start lower, which is not what we want. I can make a copy of header2.inc with the extra blank lines and call i e.g. header3.inc, bit how how do I tell FA to use header3.inc for the financial reports?
8 08/17/2021 06:33:20 pm
Re: Option for printing logo on reports. (12 replies, posted in Reporting)
We are printing our official financial statements on paper with a preprinted heading. I therefore want the report to start 6-7 lines lower than the margin so it does not print upon the preprinted heading. If I edit header2.inc and put in 6-7 new lines in before the "Logo" that works fine. But it also makes the printing of the invoices start lower, which is not what we want. I can make a copy of header2.inc with the extra blank lines and call i e.g. header3.inc, bit how how do I tell FA to use header3.inc for the financial reports?
9 07/27/2021 12:13:00 am
Re: Restore backup of multiple companies and upgrading (6 replies, posted in Installation)
Thank you for the explanation, sounds right. I will give it a try. As I will be creating a new FA instance, it should be risk free. I shall come back when I have tried (may take a couple of days as I need time to do that).
10 07/25/2021 09:38:28 pm
Re: Restore backup of multiple companies and upgrading (6 replies, posted in Installation)
Not sure if this is the right thread. I had to create a new company fast, and as I had a copy of my principal company on a PC, I thought the easiest was to create the new company in that copy. Unfortunately I didn't create a new database, so now I have both companies in the same database (the first and the second). I don't really need the copy of my principal (first) company, so I thought the easiest would be to eliminate that, and keep the new company, I created (and which already has a lot of data in it).
Is there are way I can eliminate the first company without damaging the second? I can see that even though I have made the second company the default, the first company still has the privilege to configure the system. So I can imagine it will not be possible to delete? Or is there any other way I could do it? E.g. create a new company (preferably in a second version of FA) and migrate only the data from the second company?
I can of course keep both companies and simply ignore the first one. However, as the first company is very heavy in data and the backup is already around 80 MB (before compressing), it would be good to get rid of it (short of simply deleting all the preceding years).
I am running FA 2.4.4 on a LAMP setup.
11 10/12/2020 06:45:13 pm
Re: PHP 7.4 bug (20 replies, posted in Report Bugs here)
I used the Mysql restore. First problems with the timestamp (ERROR 1067). After adding
mysql> SET @@session.sql_mode =" ";
the restore worked. Thanks.
12 10/12/2020 06:01:19 pm
Re: PHP 7.4 bug (20 replies, posted in Report Bugs here)
After overriding the initial errors, I now get:
Trying to access array offset on value of type null in file: /var/www/html/frontaccounting/includes/db/connect_db_mysqli.inc at line 55
Line 55 is:
$cur_prefix = $db_connections[$comp]['tbpref'];
13 10/12/2020 05:47:47 pm
Re: PHP 7.4 bug (20 replies, posted in Report Bugs here)
Thanks for the clarification. I suspected it was a language issue.
When starting the FA installation there are actually a lot of warnings, which disappear when i try login once again:
* include_once(../installed_extensions.php): failed to open stream: No such file or directory in file: /var/www/html/frontaccounting/frontaccounting.php at line 23
* include_once(): Failed opening '../installed_extensions.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/frontaccounting/frontaccounting.php at line 23
* include_once(../config_db.php): failed to open stream: No such file or directory in file: /var/www/html/frontaccounting/includes/session.inc at line 383
* include_once(): Failed opening '../config_db.php' for inclusion (include_path='.:/usr/share/php') in file: /var/www/html/frontaccounting/includes/session.inc at line 383
* Undefined variable: installed_extensions in file: /var/www/html/frontaccounting/includes/session.inc at line 392
Line 383 in sessions.inc is:
"include_once($path_to_root . "/config_db.php");"
Line 392 in sessions.inc is:
"foreach ($installed_extensions as $ext)"
Regarding the language this has been a pain in each new installation since we started using FA 8 years ago. I have managed to get it to work, but I am a bit lost in the question of utf8 vs. ISO. Which of those am I supposed to install? According to phpmyadmin utf8_unicode_ci is the default for creating databases and my FA db is utf8.
14 10/11/2020 06:12:55 pm
Re: PHP 7.4 bug (20 replies, posted in Report Bugs here)
Trying to install FA 2.4.8 with PHP 7.4.3 on Linux Mint 20 to go from FA 2.4.4 on Linux Mint 19. When installing I get the following error:
Trying to access array offset on value of type null in file: /var/www/html/frontaccounting/install/isession.inc at line 140
If I ignore the error, the install goes on but returns an error:
Trying to access array offset on value of type null in file: /var/www/html/frontaccounting/includes/db/connect_db_mysqli.inc at line 55
Apparently it is starts OK with an US 4 digit COA and Spanish interface. I can then upload a back-up from our working system (after increasing the parameters in the php.ini file), but it will not restore from the backup file (11 MB gzip file). I have tried doing the restore in phpmyadmin, but it turns up a blank page.
Any hint?
15 01/01/2019 06:49:54 pm
Re: After upgrade to 2.4.4 duplicate references generated (7 replies, posted in Installation)
We are hosting Frontaccounting on a PC on our local network. The PC has Linux Mint 18.3 installed. This is what is in System Diagnostics:
Versión MySQL >=4.1 Requerido 5.7.24-0ubuntu0.18.04.1 OK
Versión php >=5.0.0 Requerido 7.2.10-0ubuntu0.18.04.1 OK
Tipo de servidor Http Información Apache/2.4.33 (Ubuntu) OK
So that seems to be OK:
I can see that in Configuration of Entreprise there is a possibility to set the reference numbers, and it is actually set to 2615 and with default activates. Is that where I should make a change?
16 12/26/2018 05:12:18 pm
Re: After upgrade to 2.4.4 duplicate references generated (7 replies, posted in Installation)
We have the same issue with reference numbers getting stuck. We upgraded to 2.4.4 around 6 months ago with no issues. But from about around November, the reference number to ledger entries got stuck at the same number (2615) so we have to keep track of the reference numbers to manually enter the next available number. I have tried to update to 2.4.6 on a copy, but the issue persists. Of course this is not a fatal failure, but it is annoying (and time consuming). Any suggestions?
17 09/25/2018 10:40:05 pm
Re: No access to GL entries (3 replies, posted in Banking and General Ledger)
Sounds as a reasonable explanation, as it actually is a higher versions of PHP. How do I "rejig"?
18 09/20/2018 09:15:56 pm
Topic: No access to GL entries (3 replies, posted in Banking and General Ledger)
We have been using FA for 6 years now. Until recently we were working in FA 2.3.22 (LAMP on Linux Mint 17), taking daily backups and restoring to FA on another PC so we would always have a working backup. However, all of a sudden it was not possible to restore the latest backups any more. We first tried to upgrade to 2.3.24 on both machines, but backup and restore was still not working. The solutions we went for was to make a fresh install of FA 2.4.4 on a another PC (on Linux Mint 19), restore the latest working backup from FA 3.2.22 and reenter the entries done during the days after the latest working backup. Not a very elegant solution, but it is now working and we are again able to backup and restore.
One thing that is not working is the ability to open and modify the entries done before the latest backup - we can open and modify only entries done after (i.e. the latest two weeks). We can still see the old entries when opening a specific GL account, and we can also see and eliminate the old entries. But we can't open and modify them.
Why is this? Some security feature? Or some incompatibility between 2.3.22 and 2.4.4?
19 12/16/2016 10:06:30 pm
Topic: Fixed Assets (1 replies, posted in Banking and General Ledger)
We have been using FA for 4 years now in our Hotel in Nicaragua and are presently running FA 2.3.22. We are managing the fixed asset list and depreciations in a separate spread sheet, which is quite a hassle. I have been trying the 2.4 RC with a copy of our data and it seems to work fine. It has a Fixed Asset module by default, which looks promising. I wonder what may be the best way to move our spread sheet data into FA. The different fixed assets and cumulated depreciation accounts are already in our balance. I could do it as a series of sell and buy operations, but it would completely distort our sales (and purchase) information. Has anyone done this before and can come up with a good proposal on how best to do it?
20 12/11/2015 03:21:55 pm
Re: Size limit on restoring backup (14 replies, posted in Reporting)
I have no problem uploading it to the server. When I then make the restore command FA asks if I really want to proceed and it starts the restoring but stops after around 5 seconds without doing anything and with no error message.
21 12/11/2015 02:53:05 pm
Re: Size limit on restoring backup (14 replies, posted in Reporting)
Forgot to say that I had already increased "max_execution_time =" from 30 to 600. Still not working. Any other suggestion?
22 12/10/2015 08:56:05 pm
Re: Size limit on restoring backup (14 replies, posted in Reporting)
As the backup files go on growing, I am again running into the problem that I can't restore the backup in Frontaccounting. My backup files are 4.5 (gzip) and 4.8 MB (zip) respectively. I have tried to adjust further upwards the limits in the php.ini file, but to no avail. If I go into phpmyadmin, and import the backup file to the database, it works OK. But it is a bit akward to do it that way. Any suggestions?
23 10/03/2015 04:38:35 pm
Re: Discrepancy: value of stock in balance and inventory valuation report (6 replies, posted in Items and Inventory)
I am not sure whether this is the same problem. What happens is that when we check the value of the inventory in the balance and compare with the value in the Inventory Valuation Report, they are normally the same at a given date. However, if a month later I check the same Inventory Valuation Report, the prices have changed. I can see that the valuation is made at average prices, and they of course change as new purchases are made. But why should it change the historical valuation of the inventory? Seems the system uses the actual prices from say October to determine the value of the inventory in say May. What we have been doing is to print out the inventory report at the end of each month, so we can document that the balance and the inventory report gave the same result at that date, even if the system is not able to reproduce that report later on. This is illogical and not very useful.
24 04/01/2015 11:59:44 pm
Re: Profit before taxes (2 replies, posted in Banking and General Ledger)
I can see that the income tax account is set to account type "expenses", but it makes no sense to change it to "incomes", "assets" or "liabilities". So I guess the system understands it as "expenses".
25 04/01/2015 11:47:49 pm
Topic: Profit before taxes (2 replies, posted in Banking and General Ledger)
I am using the standard 4-digit COA for a US company (translated into Spanish and used here in Nicaragua). It is working pretty well. However, the tax authorities are complaining (rightly I think) that the Profit and Loss Report does not calculate the subtotal P&L before income tax, but only calculates and prints the P&L after income tax. As they say: tax is not a (deducible) cost.
I thought it could be solved in the config.php by setting $alternative_tax_include_on_docs = 1; but this does not change anything.
Have I done something wrong in the setup, and - more importantly - how can I get FA to calculate and print the subtotal P&L before income tax?:)