Warning message on Pro Sites statistics page

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

  • Ash

    Hello @antKat

    I hope you are well today and thanks for asking the question.

    Yes, I can replicate the issue in my test site and marking it as a bug. For now, please go to /wp-content/plugins/pro-sites/pro-sites.php line no 2327 to 2329 and replace:

    $week_start                           = strtotime( "-$i weeks", $start );
    			$week_start_date                      = date( 'Y-m-d', $week_start );
    			$week_end_date                        = date( 'Y-m-d', $week_end );


    $week_start                           = strtotime( "-$i weeks", (int) $start );
    			$week_start_date                      = date( 'Y-m-d', $week_start );
    			$week_end_date                        = date( 'Y-m-d', (int) $week_end );

    Hope it helps :slight_smile: Please feel free to ask more question if you have.


Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.