webERP Forum

Full Version: report builder
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
when I go to the report builder, then to form, dropdown menu to show invoices and packing list. then click continue I get this error

Fatal error: Uncaught Error: [] operator not supported for strings in C:\xampp\htdocs\weberp\reportwriter\admin\ReportCreator.php:117 Stack trace: #0 {main} thrown in C:\xampp\htdocs\weberp\reportwriter\admin\ReportCreator.php on line 117
I think you haven't entered a name for the form which is why you are getting this error.

However the error message is not being displayed properly, which I think is a PHP7 issue, but I don't have time at the moment to look too closely into it.

Tim
I found the issues causing that error ... a very minor thing the way a variable is initialized as a string and not an array.

It is PHP 7.1 related: (I have PHP 7.1.1, and I saw a similar error on a different line number)

php.net Wrote:Note: As of PHP 7.1.0, applying the empty index operator on a string throws a fatal error. Formerly, the string was silently converted to an array.

I'll commit the change in a moment.
Change committed to SVN.
Reference URL's