• Resolved Grasboom

    (@grasboom)


    In my website error report (Sentry) I get this error on multiple Loco Translate PHP files:
    Warning: Uninitialized string offset 1

    Example: /loco-translate/lib/compiled/gettext.php in loco_parse_wp_comment at line 36

    To avoid this error, for example, put ! empty( $block[1] ) before $block[1].

    Can you fix this in the next update? That would prevent many unnecessary error reports.

    Thanks in advance.

Viewing 1 replies (of 1 total)
  • Plugin Author Tim W

    (@timwhitlock)

    To get this error would require the first comment in a file to be an empty # symbol. Pretty rare, but I can reproduce it and have fixed it in trunk.

    Thanks for reporting.

Viewing 1 replies (of 1 total)
  • The topic ‘PHP error “Warning: Uninitialized string offset 1”’ is closed to new replies.