• Resolved jeanjean75001

    (@jeanjean75001)


    Hi,

    I recently updated to the last version (2.1.4) and noticed some bugs in the analytics dashboard (Everything was working fine before).

    The ajax request loading the data table returns this error :

    <br /> <b>Deprecated</b>: Creation of dynamic property IAWP_SCOPED\Spatie\Once\Listener::$objectHash is deprecated in <b>/home/wp-content/plugins/independent-analytics/vendor/spatie/once/src/Listener.php</b> on line <b>11</b><br /> <br /> <b>Deprecated</b>: Creation of dynamic property IAWP_SCOPED\IAWP\Rows\Pages::$___once_listener__930188 is deprecated in <b>/home/wp-content/plugins/independent-analytics/vendor/spatie/once/src/Cache.php</b> on line <b>80</b><br />
    {"success":true,"data":{"rows":"<div id=\"iawp-rows\" class=\"iawp-rows\" data-row-count=\"48\">\n  <!-- Some rows -->\n   <div class=\"iawp-row\" ......

    There is also an issue with the french translation. I just switched to US language to get the error above.

    When I set the WP language to french, I get this JS error in the dashboard (web console) :

     DOMException: Document.querySelectorAll: '.cell[data-column=amoureuse/amoureux]' is not a valid selector

    I checked the source code and noticed that the word “date” was translated to “amoureuse/amoureux”.

    <option value="amoureuse/amoureux" data-type="amoureuse/amoureux">Date de publication  

    I’m using PHP 8.2 and the website traffic is very small (less than 100 visitors a day)

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

    (@bensibley)

    Hi there,

    Thanks for letting us know about these bugs! We’ve just fixed them both in the version 2.1.5 patch, which is available now.

    I would also recommend that DEBUG_DISPLAY is turned off in wp-config.php. The deprecation notice wouldn’t normally break any functionality, but it’s the output of the error notice inside the Ajax response that breaks things. This is likely to come up again in other Ajax requests on the site from other plugins too, such as a form plugin. You can leave DEBUG enabled and enable DEBUG_LOG to keep a log of all your errors without any risk of affecting the site’s functionality.

Viewing 1 replies (of 1 total)

The topic ‘Data table below graph not loading’ is closed to new replies.