Hi,

Testing with debugging on I found I was getting a lot of these messages:

A non-numeric value encountered in file: C:\Users\Paul\htdocs\fa24\includes\ui\ui_controls.inc at line 258
C:\Users\Paul\htdocs\fa24\includes\ui\ui_view.inc:213:     viewer_link('Asset register','admin/view/view_package.php?id=asset_register','','','')
C:\Users\Paul\htdocs\fa24\admin\inst_module.php:121:     get_package_view_str('asset_register','Asset register')
C:\Users\Paul\htdocs\fa24\admin\inst_module.php:269:     display_extensions((Array[22]))

Problem was due to an extra '-' at the start of line 258 in  includes\ui\ui_controls.inc

-        $preview_str = "<a target='_blank' $class $id href='$path_to_root/$url' onclick=\"javascript:openWindow(this.href,this.target); return false;\"$pars[1]>$pars[0]</a>";

Removing the extra '-' fixed the issue

        $preview_str = "<a target='_blank' $class $id href='$path_to_root/$url' onclick=\"javascript:openWindow(this.href,this.target); return false;\"$pars[1]>$pars[0]</a>";

Hope this helps.

27

(24 replies, posted in Installation)

That is the XAMPP Apache version (Apache-2.4.25). Git auto-generated the name from the commit comment. Sorry for the confusion.

28

(24 replies, posted in Installation)

Hi @apmuthu,

I have merged my changes with current (Oct 2nd) master as one commit
https://github.com/PaulShipley/fa24/commit/3e7d2ed1d60d63b3f85654258fd07312d2e31855

and created a patch file in 
https://github.com/PaulShipley/fa24/blob/master/patches/0001-Installation-issues-with-XAMPP-3.2.2-Apache-2.4.25-P.patch


Hope this helps.

29

(24 replies, posted in Installation)

Thanks @apmuthu. I have updated the remaining old style constructors that I missed.

30

(24 replies, posted in Installation)

apmuthu wrote:

Whilst @PaulShipley's solution does the job (and degrades gracefully), the constructors can be replaced straightaway unless they are called specifically in the code as we now officially support only PHP  5+.

From the PHP Manual:

Warning:
Old style constructors are DEPRECATED in PHP 7.0, and will be removed in a future version. You should always use __construct() in new code.

Thanks @apmuthu. I wasn't sure if any of the old style constructors were being called directly and (as you say) the solution degrades gracefully for the cost of a few extra lines. A more complete fix would be to remove the old style constructors completely and correct any issues.

31

(24 replies, posted in Installation)

Hi,

I had the same installation problem with FA2.4.2 and XAMPP3.2.2. Failed with:

  Fatal error: Uncaught Error: Call to undefined function user_company() in ...

I have fixed this and many deprecated messages. My changes can be found in https://github.com/PaulShipley/fa24

Cloned from https://github.com/FrontAccountingERP/FA on 14Aug2017 (last commit 5Aug2017). Tested with Windows 10 and XAMPP 3.2.2 (Apache 2.4.25, PHP 7.1.4, MariaDB 10.1.22).

Thanks

Hi,

I'm in the process of converting from Quickbooks to FrontAccouting and I was wondering if anyone else has any experience or thoughts on this?

Quickbooks does not make it easy to export your data. The lists come as an IIF file which is text (but nothing understands the format) and the transactions can be exported as CSV. Of course none of the code values match FrontAccounting. I am working on a process of parsing the QB exports (with a perl script) to generate CSV files, which can then be amended in a spreadsheet (if required - I'm hoping in most cases the defaults will be sufficient). Then to import these files into FA using a module that I'm developing. So far I have SalesPersons, ShippingCompany and Suppliers working. Currently I'm working on Customers, with PaymentTerms, Items and transactions to do.

Would this be of interest to anyone else? Thoughts? Comments?

Thanks.

Paul Shipley
Melbourne, Australia