PHP error “Warning: Uninitialized string offset 1”
-
In my website error report (Sentry) I get this error on multiple Loco Translate PHP files:
Warning: Uninitialized string offset 1Example: /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)
Viewing 1 replies (of 1 total)
- The topic ‘PHP error “Warning: Uninitialized string offset 1”’ is closed to new replies.