Topic: Install error - Uninitialized string offset

Tried to install Front Accounting and received the following errrors from 3 thru 105 :

Uninitialized string offset: 3 in file: /var/www/html/SSC/public_html/account/includes/main.inc at line 185
REPEAT to
Uninitialized string offset: 105 in file: /var/www/html/SSC/public_html/account/includes/main.inc at line 185

Running Ubuntu 18.04.1 with PHP 7.2.24

FrontAccounting returning PHP version >=5.0.0 (which my installation is I am at 7.2.24)

Any help would be appreciated

Re: Install error - Uninitialized string offset

Its an FA bug unmasked by an advanced version of php, requiring a code change to fix.  You might make it quiet down by adding:

$line .= chr(32);

after $len = strlen($line);

on line 181.

Re: Install error - Uninitialized string offset

Worked - Installation completed on Ubuntu server running PHP 7.##

Thank YOU

Re: Install error - Uninitialized string offset

@joe: Maybe put in this fix after checking if PHP version >= 7.

The chr(32) is to specify Ascii instead of any other collation like utf-8, etc. that would occur if a mere space was put in place of it.

Re: Install error - Uninitialized string offset

This has been fixed and committed to 2.4.7 stable repo. A fixed file can be downloaded here.

/Joe