• Hi,
    Since the last week, the Plugin throws PHP errors on two websites I manage:

    independent-analytics/vendor/matomo/device-detector/Parser/AbstractParser.php?(Line:?267)

    [Message]:
    Preg_match(): compilation failed: pcre2 does not support \f, \l, \l, \n{name}, \u, or \u at offset 82

    I tried reinstalling, but it didn’t help.

    • This topic was modified 2 weeks, 3 days ago by kmwwebdesign.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Author Ben Sibley

    (@bensibley)

    Thanks for getting in touch about this.

    We’ve seen this issue in the past, but it should be fixed in one of our updates. Could you let me know if you are running the latest version of Independent Analytics (v2.10.2)?

    Thread Starter kmwwebdesign

    (@kmwwebdesign)

    Thank you for the quick reply Ben, I am afraid both sites with this error do have version 2.10.2 installed – and used Version 2.10.1 before. I saw an older thread about this from 2023, but the occurence is quite recent and ongoing.

    The issue says “vendor/matomo” – could a former installation of Matomo and some remnants of the plugin in the database be the issue? I am not sure of the other site throwing this issue even had Matomo installed. Mine did, but the database was cleaned.

    Plugin Author Ben Sibley

    (@bensibley)

    Matomo developed an open-source library for detecting visitor devices, and we use it in our plugin, so that’s why you see matomo in the stack trace.

    Can you try deleting the “temp” folder located here: wp-content/independent-analytics/temp. That will cause the device data we cache to be rewritten, and we’ll see if that helps.

    Could you also let me know what version of PHP you’re using?

    Thread Starter kmwwebdesign

    (@kmwwebdesign)

    Thank you for clarifying this!

    PHP 8.2.27, WP 6.7.2

    I have since deleted the temp folder and went to see if something turned up again.

    This turned up:

    independent-analytics/IAWP/Utils/Device_Cache.php?(Line:?87)

    [Message]:
    File_put_contents(/data/sites/web/be9vnmyrdbxio/www/wp-content/plugins/independent-analytics/temp/device-detector.json): failed to open stream: no such file or directory
    Plugin Author Ben Sibley

    (@bensibley)

    Hmm that’s odd. Maybe that error was just triggered once? Can you check if the temp folder is in fact in place in the plugin now?

    Thread Starter kmwwebdesign

    (@kmwwebdesign)

    The new error has been triggered once when posting.

    The other one that made me start this thread has been going on like this from the first day I started watching:

    Plugin Author Ben Sibley

    (@bensibley)

    Could you let me know what version of PCRE2 the site is using? You can find this with the PCRE_VERSION constant or with phpinfo().

    Thread Starter kmwwebdesign

    (@kmwwebdesign)

    Finally – thank you for your patience!

    Plugin Author Ben Sibley

    (@bensibley)

    Thanks for sharing this info.

    I’m afraid that I’m struggling to find whats going wrong at this point. Everything appears to be in order and we can’t recreate this same issue under the same circumstances. If you can, I would recommend restarting the PHP server to make sure everything is running properly.

Viewing 9 replies - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.