AGE: Fatal Error

  • Resolved
    Posted in: BlackFyre  
  • Member
    Qmpz
    May 16, 2018 at 11:41 am #111925

    I got this error, what i need to change there
    AGE: Fatal error: Call to a member function format() on boolean in /home/*******/wp-content/themes/blackfyre/buddypress/members/single/profile.php on line 79

    In line 79 is this code:
    $age = $age->format(‘Y-m-d’);
    $age = floor((time() – strtotime($age)) / 31556926);
    echo $age;

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.