We recently moved our Database over to new Hosting and also upgraded to PHPvms 5.5.2 / Php version 5.6 / Paid Hosting.
After the move the frontpage on the site throws quite a few errors. At the outset I have to thank Eddie Baker and Vangelis for their help so far.
A couple of the errors are :
Warning: Invalid argument supplied for foreach() in /home/airin9ce/public_html/vms2/lib/skins/etc/frontpage_recentpilots.php on line 7
In the mail to admin on pirep submission :
A PIREP has been submitted by 0000 ( ) AI202: OKBK to OMSJ Aircraft: 60 Flight Time: 01.39 Landing Rate: -256 Filed using: smartCARS Comment: Click to approve this pirep (admin must be signed in):
From the PIREPdata class:
Send an email to the admin that a PIREP was submitted
$sub = “A PIREP has been submitted by {$pilotcode} ({$pirepdata[‘depicao’]} - {$pirepdata[‘arricao’]})”;
$message = "A PIREP has been submitted by {$pilotcode} "
The main issues are on the frontpage with Recent Reports / New pilots / and Recent Flights return blank from the maincontroller run functions I guess because of the IF( ! $XXX) functions in the class ?
Some variables have changed between the two versions. Your template seems to call some deprecated variables. What does line 7 of your /home/airin9ce/public_html/vms2/lib/skins/etc/frontpage_recentpilots.php have? Maybe it looks like this:
foreach($pilot\_list as $pilot) {
Also, in your core/common/PIREPData.class.php file, what do lines 750-755 have?
In your cpanel, change your php version on your domain to 5.4 if available and see if you get the same errors. You could try php 5.5 as well. You would look for “MultiPHP Manager” section in cpanel.
Sorry after the forum changed I just saw your reply , I’ll try it out again but if I recall correctly , I think I tried switching and trying all three 5.4 , 5.5 and 5.6.
I’ll try it again though thanks for the help with this.
Also for what its worth… the reset hours in Admin doesn’t work for all pilots
Calculating hours for all pilots:
AI0001 - found 1 flight hours for number
AI0002 - found 1 flight hours for number
AI0003 - found 1 flight hours for number
AI0004 - found 1 flight hours for number
AI0006 - found 1 flight hours for number
AI0008 - found 1 flight hours for number
IX0010 - found 1 flight hours for number