We need to find equivalents in the reflines class for the functions in the old file.
2,877 07/07/2017 02:06:52 pm
Re: Import Transactions (154 replies, posted in Modules Add-on's)
The file includes/db/references_db.inc was in FA 2.3.x but is not there in FA 2.4.x anymore.
2,878 07/07/2017 01:31:37 pm
Re: reminders in 2.4 (19 replies, posted in Setup)
Did you just swap the last part without wrapping any of the functions? If so we may need it to be as you described. There is no $use_date_picker at all in FA 2.4.1 as it is only a property in the user_prefs class.
Actually, the said function text_input is just defined in the extension with extra parameters and different order as well since a new parameter is at the beginning. It is not used anywhere in the extension. It is also not used in the dashboard_theme as well. We may consider removing this function in the extension. If this function gets used anywhere then the parameters and their order will affect such usage.
All instances in the core use the following construct:
$js = "";
if (user_use_date_picker())
$js = get_js_date_picker();
@joe?
The original function in the core is used in the standard functions text_cells() and editor_view().
Committed in my FA24Extensions Repo.
2,879 07/07/2017 12:46:46 pm
Re: Bank account types (5 replies, posted in FA Modifications)
This is best "translated" in the .po/.mo files. They are translatable strings and not hardcoded.
Refer my commit of the en_US.po file for the default en_US.mo file
2,880 07/07/2017 12:43:45 pm
Re: Yet another problem with utf-8 (22 replies, posted in Report Bugs here)
Try:
SHOW VARIABLES LIKE 'collation%';
SHOW VARIABLES WHERE Variable_name LIKE 'character\_set\_%' OR Variable_name LIKE 'collation%';
If they are different, look in your /etc/[mysql/]my.cnf, find the contents below near collation_server:
[mysqld]
init_connect='SET collation_connection = utf8_unicode_ci'
init_connect='SET NAMES utf8'
character-set-server=utf8
collation-server=utf8_unicode_ci
skip-character-set-client-handshake
2,881 07/06/2017 01:51:21 pm
Re: Bank account types (5 replies, posted in FA Modifications)
Take a backup and search and replace of the words you want (if they are unique) and then restore it in FA.
2,882 07/06/2017 01:47:35 pm
Re: Yet another problem with utf-8 (22 replies, posted in Report Bugs here)
Make sure that the collation of the db is the same as that of the specific field(s) used here and that the said locale is installed in the OS (Linux).
2,883 07/04/2017 04:04:30 pm
Re: reminders in 2.4 (19 replies, posted in Setup)
The function text_input() is available in modules/dashboard/includes/dashboard_ui.inc and is executed first. Therefore when the same function defined in includes/ui/ui_input.inc gets executed later, the said error arises. Hence we need to modify the function in the latter file to be executed only if the said function is not defined as yet when it is executed. The code in the latter file at line 507 onwards:
function text_input($name, $value=null, $size='', $max='', $title='', $params='')
{
if ($value === null)
$value = get_post($name);
return "<input $params type=\"text\" name=\"$name\" size=\"$size\" maxlength=\"$max\" value=\"$value\""
.($title ? " title='$title'" : '')
.">";
}
should be wrapped like:
if (!function_exists('text_input')) {
function text_input($name, $value=null, $size='', $max='', $title='', $params='')
{
if ($value === null)
$value = get_post($name);
return "<input $params type=\"text\" name=\"$name\" size=\"$size\" maxlength=\"$max\" value=\"$value\""
.($title ? " title='$title'" : '')
.">";
}
}
2,884 07/04/2017 01:35:20 am
Re: reminders in 2.4 (19 replies, posted in Setup)
Take latest Git Master or take the changed files from this post.
Dashboard is included in the FA 2.4.1. You may at best need the extension and make sure that the includes/dashboard.inc does not get overwritten or superseded. You can try to remove the old dashboard theme and extension first before upgrading and then install them afresh aferwards.
Do not forget to activate the dashboard for your specific company when logged in on the default company. When in the target company, make sure to enable ti for the access roles and permissions, logout, clear cache, close all browser instances and login again.
2,885 07/03/2017 04:24:01 pm
Re: WAMP error in second server action (3 replies, posted in Installation)
MySQL 5.7 may be the issue. By default the strict mode is on in MySQL v5.7 onwards. Hence all dates and timestamp fields no longer respect the 0000-00-00 00:00:00 values. Details are in this post.
PHP 5.6 too may have issues with array declaration syntax.
2,886 07/03/2017 04:19:36 pm
Re: Bank account types (5 replies, posted in FA Modifications)
The chart_master table is where you change the account name. The bank_accounts table is where you change the name of the Bank Account and it's assignment to the account in the chart_master table's account code.
2,887 07/03/2017 10:25:51 am
Re: Import Transactions (154 replies, posted in Modules Add-on's)
No. Just replace the said file with the one in the attachment above.
2,888 07/03/2017 10:24:00 am
Re: Importing Multiple Line Journal (5 replies, posted in Accounts Receivable)
In the file at <web_fa_root>/modules/import_transactions/includes/import_transactions.inc,
Search for mysql_fetch_assoc
Replace with db_fetch_array
There is no need for any mysqli changes as the connection choice is automatic.
2,889 07/03/2017 05:29:35 am
Topic: FA Posters Country Stats (0 replies, posted in Misc. Charts of Accounts)
Among the top 50 posters as on date in the FA Forum, Canada leads with 6, followed by UK and USA with 5 and then by India with 4. Australia, Netherlands and Pakistan each have 3 posters in this list.
Caveat:
Some users may have multiple accounts (aliases) and from more than one country as well.
These stats would serve to enable users from those regions to follow these users posts and ask for targeted assistance possibly assuming they possess regional operational info and experience.
2,890 07/03/2017 04:25:22 am
Re: Importing Multiple Line Journal (5 replies, posted in Accounts Receivable)
Check this post.
2,891 07/03/2017 04:21:21 am
Re: WAMP error in second server action (3 replies, posted in Installation)
Are you using FA v2.4.1?
If so, have you incorporated the fixes post release?
What are the versions of PHP/MySQL in use?
If on Linux (version and type in use?), make sure the permissions of the (upgraded) files match the installation platform.
What is the browser and version you are using?
2,892 07/02/2017 10:37:55 am
Re: reminders in 2.4 (19 replies, posted in Setup)
Clear browser cache. State versions of PHP/MySQL and OS and make sure you have the latest GitMaster version of FA.
2,893 07/02/2017 10:36:48 am
Re: German COA (3 replies, posted in Misc. Charts of Accounts)
Take a backup of the entire FA DB - that is the CoA if stripped off the data in the user table and replacing it from any CoA with locale changes. Also purge the transactions and take the backup as the CoA. Then revert to your original backup for regular use.
2,894 07/02/2017 10:34:23 am
Re: Error installing 2.4.1 (XAMPP 3.2.2) (3 replies, posted in Installation)
The latest version of XAMPP uses PP 7.0.x and 7.1.x. What versions of PHP/MySQL are you using? It is safe ti use FA on PHP version upto 5.3.x and MySQL upto v5.5 and some tweaks may be needed thereafter.
Also see if this post is helpful.
2,895 07/01/2017 01:55:16 pm
Re: Error installing 2.4.1 (XAMPP 3.2.2) (3 replies, posted in Installation)
This has been rectified in later commits. Just overwrite your files with those from the attachment in this post.
2,896 07/01/2017 01:52:43 pm
Re: German COA (3 replies, posted in Misc. Charts of Accounts)
Just take a sql backup from within FA (hope it is version 2.4.1) and upload it somewhere and paste the link here.
The standard Chart of Accounts for de_DE language is at:
https://github.com/apmuthu/FA24extensio … eneral.sql
2,897 07/01/2017 01:43:01 pm
Re: Leap Year (Period Y-1) Not included in Profit and Loss (15 replies, posted in Banking and General Ledger)
I was thinking of the default end date for the next fiscal year creation in such a situation. Periods less than a month for reporting can be manually entered.
2,898 06/30/2017 06:35:57 pm
Re: Leap Year (Period Y-1) Not included in Profit and Loss (15 replies, posted in Banking and General Ledger)
Thanks for the explanation and the edge case. Rather than use PHP to compute the last day of the financial year, it might be prudent to use the MySQL function:
SELECT DATE_SUB(DATE_ADD('2015-03-01', INTERVAL 1 YEAR), INTERVAL 1 DAY)
which will yield 2016-02-29.
Similarly
SELECT DATE_SUB(DATE_ADD('2016-03-01', INTERVAL 1 YEAR), INTERVAL 1 DAY);
will get us 2017-02-28.
Also, how did it affect the JOURNAL entries alone?
2,899 06/30/2017 03:29:21 pm
Re: Leap Year (Period Y-1) Not included in Profit and Loss (15 replies, posted in Banking and General Ledger)
@joe: serious?
2,900 06/30/2017 02:41:05 pm
Re: Import Transactions (154 replies, posted in Modules Add-on's)
The $use_popup_windows is set in the config.php file (see config.default.php) and is used in the said module in line 68 in modules/import_transactions/import_transactions.php.
By default, the entire module uses old mysql_xxx functions. Your PHP / MySQL build may need the newer mysqli_xxx construct. Try replacing the 3 instances of mysql_fetch_assoc with mysqli_fetch_assoc or better still, the generic db_fetch_array in modules/import_transactions/includes/import_transactions.inc.
The db driver is auto chosen in includes/db/connect_db.inc:
if (function_exists('mysqli_connect'))
include_once("connect_db_mysqli.inc");
else
include_once("connect_db_mysql.inc"); // use deprecated mysql_* API as fallback on old servers
The following modules/files too have the hardcoded mysql_xxx construct:
osc_orders/osCommerce.php
repgen/repgen_strings.php
repgen/repgen_test_sel.php
The zen_import module references the ZenCart DB and hence has mysql_xxx constructs hardcoded:
zen_import/zencart.php
zen_import/includes/zen_interface_db.inc
zen_import/includes/zen_orders_db.inc
Committed in my repo with filter fix as well.