• Hey! Thank you for sharing this plugin with the commmunity.

    I’m giving it a spin on my test bench with ‘WP_DEBUG’ true, and gets this warning on every page in the backend.

    Warning: Only the first byte will be assigned to the string offset in /siteurl/wp-includes/class.wp-scripts.php on line 492

    Any idea how to resolve that?

    Kind regards
    Bjarne

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Support Ole

    (@trsupsys)

    Hello, @oldrup
    Thank you for contacting us!
    We can’t reproduce this issue on our test envirnment.
    More details needed.

    • What is your php version?
    • WP version?
    • Theme?
    • Have you tried disabling other plugins?

      Best wishes,
      Ole

    • This reply was modified 3 years, 10 months ago by Support Ole.
    • This reply was modified 3 years, 10 months ago by Support Ole.
    Thread Starter Bjarne Oldrup

    (@oldrup)

    Hey! The test bench is a WordPress 5.6 multisite install with PHP 8.0.0 and the Blocksy theme. Warning appears with Ultimate Maps enabled, and goes away with Ultimate Maps disabled. Not sure, but I expect the warning to be shown with ‘WP_DEBUG’ set to true only.

    Hope that helps ??
    Bjarne

    Actually this is a PHP 8.0 Warning. In PHP 7.x this warning is not present.
    As stated in the PHP Documentaion:
    ?Internally, PHP strings are byte arrays. As a result, accessing or modifying a string using array brackets is not multi-byte safe, and should only be done with strings that are in a single-byte encoding such as ISO-8859-1.”

    As of PHP 8 trying to replace a string offset with more than one byte using square array brackets style will emit a warning.

    Unfortunately, I don’t know how to solve this issue, and I’m looking into finding a valid answer too.

    Plugin Support Support Ole

    (@trsupsys)

    The plugin is not yet compatible with this PHP version.
    It takes some time to test. We recommend using version 7.3 or 7.4

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Warning: Only the first byte will be assigned to the string offset’ is closed to new replies.