Search code examples
opentbstinybutstrong

How do i resolve 'Uninitialized string offset:' error in TinyButStrong


I was successfully download the merged spreadsheet document but it gives me these errors instead of the merge values. Why is that and how should i resolve it ?

Notice: Uninitialized string offset: 2 in /.../tinybutstrong-opentbs/tbs_plugin_opentbs.php on line 1832

Notice: Undefined index: in /.../tinybutstrong-opentbs/tbs_plugin_opentbs.php on line 1832

Thanks in advance.


Solution

  • It appears to be a bug that occurs when you open a LibreOffice template from a stream (using fopen() for example).

    The only consequence is for the Mime header when the merged result is downloaded using OpenTBS.

    So commenting this line of code is a correct work around. This bug will be fixed in the next OpenTBS version 1.10.1.