Statsdata.class.php

MOD note:  OP is using BlueIce skin and having an issue with the instructions in that skin.

 

I am trying to install phpvms 5.5.2.72.  I am following all of the instructions in the readme.  I copy and pasted this from the readme to StatsData.class.php, but it’s not working.  If I leave this part out my website works, but if I put it in, the website wont load.  Any help would be greatly appreciated.  Thank You.

 

Where did you did you find this part. of code? Remove the following part from the above statement and it should be working correctly:

public static function get_stats_by_cur_month($howmany)

 

What are you trying to do?

 

4 minutes ago, servetas said:

Where did you did you find this part. of code? Remove the following part from the above statement and it should be working correctly:

public static function get_stats_by_cur_month($howmany)

 

What are you trying to do?

 

I will try that.  I got the code from the readme in the documentation that comes with phpvms 5.5.2.72.  I just took a screenshot and posted it in my last message.  Thank You for the help.

Done.  No errors now.  Thank You.

17 minutes ago, servetas said:

Where did you did you find this part. of code? Remove the following part from the above statement and it should be working correctly:

public static function get_stats_by_cur_month($howmany)

 

What are you trying to do?

 

Actually I am now getting the error below circled in red.Statsdata.png.0a213047fc75024c00308b2954343435.png

 

 

Yes, the error is shown because there is not a closing bracket before the new function (“public static function…”) statement. Did you randomly past it into the file? The previous function should close using a bracket “}” without the “” before you start declaring a new one.

1 minute ago, servetas said:

Yes, the error is shown because this is not a closing bracket before the new function (“public static function…”) statement. Did you randomly past it into the file? The previous function should close using a bracket “}” without the “” before you start declaring a new one.

Thanks for catching that.  I put a bracket in and the X disappeared.  Thanks for the help.

Now I am getting this error.

 

Fatal error: Cannot redeclare StatsData::TotalPilotMiles() in /home/u742478123/domains//public_html/core/common/StatsData.class.php on line 847

 

Stats.png.cf58bfa65768ba83303745e46e12b400.png

That means that the function you added already exists and there is no reason to add it. What are you whilling to do?

I am just following what the readme tells me to do.

Just to be clear - the README.MD file in phpVMS 5.5.2.72 does NOT instruct you to change anything in StatsData.class.php or any other file for that matter.

 

What module or addon are you attempting to add to your phpVMS install?

6 hours ago, ProAvia said:

Just to be clear - the README.MD file in phpVMS 5.5.2.72 does NOT instruct you to change anything in StatsData.class.php or any other file for that matter.

 

What module or addon are you attempting to add to your phpVMS install?

I’m sorry, I was talking about the  blueIce 2.0.1 skin.  I wrote phpvms by accident.  Thanks.

If you are using the BlueIce skin by 209 Studios, I suggest you contact the developer of that skin.

https://www.phpvms.209studios.com/

 

23 minutes ago, ProAvia said:

If you are using the BlueIce skin by 209 Studios, I suggest you contact the developer of that skin.

https://www.phpvms.209studios.com/

 

will do, thanks.