Jump to content

[SOLVED] ChartsData.class.php error


Recommended Posts

Hello. i'm getting the following error in the public profile page: Warning: Creating default object from empty value in C:\wamp\www\testes\core\common\ChartsData.class.php on line 49

In line 49 has:

$z = '';
$z->label = $date[1].'-'.$date[2]; # 49
$z->point = $dat->total;
$dataPoint[] = $z;

Does anyone know the solution to this error?

Thanks!

Edited by brunoquadros
Link to post
Share on other sites

I solved the error going to the profile.php folder in core/modules/Profile and commenting the line 83:

#replacement for OFC charts - Google Charts API - simpilot
$this->set('chart_url', ChartsData::build_pireptable($pilotid, 30)); # -> 83
#end

Just add # at the beginning of the line.

Edited by brunoquadros
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...