Woopra Forums » Plugins and Add-ons

Wordpress plugin - woo_widget bug - causes not collecting any data

(5 posts)
  • Started 3 months ago by kimpenhaus
  • Latest reply from kimpenhaus
  • This topic is not resolved

Tags:

  • kimpenhaus
    Member

    Hi,

    the woo_widget function contains a bug which is causing the script not collecting any analytics for specific pages (those whose website_id is bigger than php-maxint 2147483647).

    in line 70 on woopra.php

    echo "var woopra_id = '" . intval( $woopra_id ) . "';\r\n";

    intval is causing to change the website_id to MaxInt 2147483647.

    Removing php-function intval() from the script starts collecting data again.

    regards,
    marcus.

    Posted 3 months ago #
  • curdaneta
    Member

    Thanks Marcus you were right!

    Posted 3 months ago #
  • almanzarj
    Member

    hey guys i tried editing line 70 and the issue still remains can you confirm what the final script should be on line 70? i think also an update to the plugin should be made to future users that download it...

    Posted 3 months ago #
  • You'll also want to set line 181 to say update_option('woopra_website_id', $_POST['websiteid']);

    I believe I removed an (int) somewhere.

    It STILL doesn't work for me though...

    Posted 3 months ago #
  • kimpenhaus
    Member

    Line 70 should read like this

    echo "var woopra_id = '" . $woopra_id . "';\r\n";

    Maybe you need to check the woopra-options page to see whether the website_id is written to the db as 2147483647.

    @sum1else

    sure thing - you're absolutly correct line 181 should read like this


    update_option('woopra_website_id', $_POST['websiteid']);

    Posted 3 months ago #

RSS feed for this topic

Reply

You must log in to post.