cfitz619 Posted January 16, 2021 Report Posted January 16, 2021 (edited) 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. Edited January 17, 2021 by ProAvia Added skin name Quote
Moderators servetas Posted January 16, 2021 Moderators Report Posted January 16, 2021 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? Quote
cfitz619 Posted January 16, 2021 Author Report Posted January 16, 2021 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. Quote
cfitz619 Posted January 16, 2021 Author Report Posted January 16, 2021 Done. No errors now. Thank You. Quote
cfitz619 Posted January 16, 2021 Author Report Posted January 16, 2021 (edited) 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. Edited January 16, 2021 by cfitz619 Quote
Moderators servetas Posted January 16, 2021 Moderators Report Posted January 16, 2021 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. Quote
cfitz619 Posted January 16, 2021 Author Report Posted January 16, 2021 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. Quote
cfitz619 Posted January 16, 2021 Author Report Posted January 16, 2021 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 Quote
Moderators servetas Posted January 16, 2021 Moderators Report Posted January 16, 2021 That means that the function you added already exists and there is no reason to add it. What are you whilling to do? Quote
cfitz619 Posted January 16, 2021 Author Report Posted January 16, 2021 I am just following what the readme tells me to do. Quote
Administrators ProAvia Posted January 17, 2021 Administrators Report Posted January 17, 2021 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? Quote
cfitz619 Posted January 17, 2021 Author Report Posted January 17, 2021 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. Quote
Administrators ProAvia Posted January 17, 2021 Administrators Report Posted January 17, 2021 If you are using the BlueIce skin by 209 Studios, I suggest you contact the developer of that skin. https://www.phpvms.209studios.com/ Quote
cfitz619 Posted January 17, 2021 Author Report Posted January 17, 2021 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. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.