Jump to content

OA01

Members
  • Posts

    176
  • Joined

  • Last visited

Everything posted by OA01

  1. OA01

    Cron job error

    File uploaded but error received is: <br /> <b>Notice</b>: A non well formed numeric value encountered in <b>/home2//public_html/core/common/StatsData.class.php</b> on line <b>171</b><br /> <br /> <b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Access denied for user 'xxxxxx'@'localhost' (using password: NO) in <b>/home2//public_html/admin/maintenance.php</b> on line <b>52</b><br /> <br /> <b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: A link to the server could not be established in <b>/home2//public_html/admin/maintenance.php</b> on line <b>52</b><br /> Access denied for user 'xxxxxx'@'localhost' (using password: NO)
  2. You were blocked since your domain is not listed in my white list. My domain is on the white list. So this not the cause of the problem.
  3. Here is a image link http://www.orange-air.co.uk/rank/1_trainee.png
  4. Since moving over to SimPilots phpvms my cron jobs have failed with the following error: <br /> <b>Notice</b>: A non well formed numeric value encountered in <b>/home2/xxxxxx/public_html/core/common/StatsData.class.php</b> on line <b>171</b><br /> <br /> <b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: Access denied for user 'xxxxxx'@'localhost' (using password: NO) in <b>/home2/xxxxxx/public_html/admin/maintenance.php</b> on line <b>52</b><br /> <br /> <b>Warning</b>: mysql_query() [<a href='function.mysql-query'>function.mysql-query</a>]: A link to the server could not be established in <b>/home2/xxxxxx/public_html/admin/maintenance.php</b> on line <b>52</b><br /> Access denied for user 'xxxxxx'@'localhost' (using password: NO) My host claims that nothing has changed on their end but were of no further help as they "don't support Cron jobs"
  5. My ranks already have the full URL but I still get this error Warning: imagecreatefromstring() [function.imagecreatefromstring]: Data is not in a recognized format in /xxxxx/xxxxx/public_html/core/common/PilotData.class.php on line 1017 My images are all .png not .jpg, does this make a difference?
  6. Remember Google is your friend: http://getfirebug.com/
  7. Yes I did but it seems that when I imported the PIREP data from the old DB it dropped 2 rows from the PIREP table I added the 2 missing rows and now it works THANK YOU for coming to the rescue DAM! When I accept a PIREP I get this error? Warning: imagecreatefromstring() [function.imagecreatefromstring]: Data is not in a recognized format in //core/common/PilotData.class.php on line 1016
  8. I'm an IT engineer so my trade is ruled by the 3 rules: 1:Back-up 2:Back-up 3:Back-up
  9. I decided to make the switch-over to PHPVMS-5 so I decided to set it up separate to the old version then, on switchover day just import all the data from the old DB to the new DB. So I did that then went through the various maintenance options in the admin panel, it found the pilot pay from the PIREPs. So far so good. Everything seems to work EXCEPT that it thinks that there are NO PIREPs to be found. When I then tried to submit a PIREP it appeared on the main page news feed but otherwise disappeared?!?!?!?!
  10. The airport look-up doesn't find EVERY airport, just add them manually.
  11. Both these lines should be in your / /core/local.config.php if not, add them. Config::Set('AIRPORT_LOOKUP_SERVER', 'phpvms'); Config::Set('PHPVMS_API_SERVER', 'http://api.vacentral.net');
  12. There are xacars, cacars, kacars, cavacars and ccftracker to name but a few They all have different features that you may like, or not! It's a case of try & see
  13. I also cannot access your site. It reports the following errors: Warning: realpath() [function.realpath]: open_basedir restriction in effect. File(/usr/local/apache/htdocs) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a1735481/public_html/vam/captcha/simple-php-captcha.php on line 75 One of the many reasons NOT to use free hosting
  14. <li><strong>Pay Rate: </strong><?php echo FinanceData::FormatMoney($userinfo->payrate); ?> per hour</li>
  15. http://forum.phpvms.net/topic/22786-notice-vacentral-api-server-url-changing-permanently/
  16. The port number seems a bit odd "465". Most mail servers use port "25" ?
  17. I had to tweak mine to get it to work again after recent changes. Does your code look like this? $xml = $cws->get('http://www.vacentral.net/airline/oaa_orangeair/xml');
  18. You have changed wrong file! You must edit local.config.php. If the line isn't there then enter it.
  19. Have you made the requested changes as detailed here? http://forum.phpvms.net/topic/22850-phpvms-centraldata-updates/
  20. Check your local.config.php looks like this: # VA Central config Config::Set('VACENTRAL_ENABLED', true); Config::Set('VACENTRAL_API_SERVER', 'http://api.vacentral.net'); Config::Set('VACENTRAL_API_KEY', 'YOUR API KEY'); Config::Set('VACENTRAL_NEWS_FEED', 'http://feeds.feedburner.com/vacentral'); Config::Set('CHECK_RELEASE_VERSION', false); Config::Set('CHECK_BETA_VERSION', false); Config::Set('GEONAME_API_SERVER', 'http://ws.geonames.org'); Config::Set('AIRPORT_LOOKUP_SERVER', 'phpvms'); Config::Set('PHPVMS_API_SERVER', 'http://api.vacentral.net'); Config::Set('PHPVMS_NEWS_FEED', 'http://feeds.feedburner.com/phpvms');
  21. In "pirep_viewreport.tpl, I use the following code to give a landing report: <li><strong>Landing Rate: </strong><?php echo $pirep->landingrate; ?> f/pm</li> <li><strong>Landing Report: </strong><?php if(abs($pirep->landingrate) <= 50) echo '!! OUTSTANDING LANDING !!'; elseif( abs($pirep->landingrate) >=51 && abs($pirep->landingrate) <= 100) echo 'Have we landed yet? Greased Landing!'; elseif( abs($pirep->landingrate) >=101 && abs($pirep->landingrate) <= 150) echo 'Smooth Landing, well done!'; elseif( abs($pirep->landingrate) >=151 && abs($pirep->landingrate) <= 199) echo 'OK! Steady Landing.'; elseif( abs($pirep->landingrate) >=200 && abs($pirep->landingrate) <= 299) echo 'BUMP! Not to bad.'; elseif( abs($pirep->landingrate) >=300 && abs($pirep->landingrate) <= 399) echo 'BOUNCE! BUMP! THUMP! Average Landing.'; elseif( abs($pirep->landingrate) >=400 && abs($pirep->landingrate) <= 499) echo 'OUCH! Passengers thought they had crashed!'; elseif( abs($pirep->landingrate) >=500 && abs($pirep->landingrate) <= 599) echo 'Hard Landing. You burst a tyre!'; elseif( abs($pirep->landingrate) >=600 && abs($pirep->landingrate) <= 650) echo 'The tyres have burst & the undercarriage is badly damaged!'; elseif( abs($pirep->landingrate) >=651 && abs($pirep->landingrate) <= 800) echo 'Undercarrage has collapsed causing substantial a/c damage!'; elseif( abs($pirep->landingrate) >=801 && abs($pirep->landingrate) <= 99999) echo '!! CRASH !! CRASH !! CRASH !! CRASH !! CRASH !! CRASH !!';?></li> This is how it looks: http://www.orange-air.co.uk/index.php/pireps/viewreport/2476 Hope this helps?
×
×
  • Create New...