Pro site throws error in statistics tab

Hi,

I have installed Pro sites. It was working fine. But suddenly today I am getting error on the stats tab. the error says,

Warning: date() expects parameter 2 to be long, string given in /home4/aathi/public_html/wp-content/plugins/pro-sites/pro-sites.php on line 2329

Please help me.

  • CatMan
    • The Incredible Code Injector

    Hi,

    I have granted support access. i also tried for plugin conflicts, still it shows. take a look at this problem.

    Please do note that the site you are about to log in is our live site so if anything goes wrong it affects our core business.

    Post here,once if find the problem.

  • CatMan
    • The Incredible Code Injector

    Hi,

    I just saw the code in line 2329 it is,
    $week_end_date = date( 'Y-m-d', $week_end );

    I suspect this problem is mainly due to Date settings in main site. While Installing the plugin the date format was Febraury 7, 2015.

    Now I changed it to the format matching Pro Sites Plugin. Deactivated and re activated the plugin. Still error shows.

  • CatMan
    • The Incredible Code Injector

    Hi,

    I think there is a problem with Date and Time conflicting Pro Sites Statistics.

    In "All Sites" Menu it shows 70 sites

    But In Pro Sites Stats - it shows "71 active Pro Sites 7 since last week"
    Followed by
    "0 new signups this week no change compared to last week

    0 upgrades this week no change compared to last week

    0 cancelations this week no change compared to last week"

    I think there is something going wrong over here. Please help me. Stats are important for us.

  • aristath
    • Recruit

    Hello again @CatMan, I hope you're well today!

    Can you please try the following?
    On the pro-sites.php file, cut line 2326 and paste it after line 2327.
    So instead of this:

    $week_end                             = $week_start;
    $week_start                           = strtotime( "-$i weeks", $start );

    do it like this:

    $week_start                           = strtotime( "-$i weeks", $start );
    $week_end                             = $week_start;

    Let me know if that fixes your issue!

    Cheers,
    Ari.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.