Jump to content

OA01

Members
  • Posts

    176
  • Joined

  • Last visited

Posts posted by OA01

  1. 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. 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" :(

  3. 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 :unsure:

    I added the 2 missing rows and now it works :rolleyes:

    THANK YOU for coming to the rescue :D

    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
    

  4. 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?!?!?!?!

  5. 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 :rolleyes:

  6. 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');
    

  7. 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...