Jump to content

Recommended Posts

Posted

I logged into my site using my test pilot today (something I haven't done in a long time) to find the following error on the pilot centre:

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/home/freshjet/public_html//lib/skins/premiumseries/<h2 align="center" style="border-bottom:2px solid #05a2ea;">Welcome to the Pilot Centre</h2> <center> You have not flown any flights yet!</center> <br> <style type="text/css"> a.icon { display:inline-block; width:100px; height:90px; text-align:center; border:1px solid #fff; padding-top:5px; position:relative; } a.icon span { font-size:16px; font-family:tahoma; color: #777; text-shadow:1px 1px #f5f5f5; z-index:999; } a.icon img { display:block; margin:auto; margin-bottom:3px; } .icon:hover { cursor:pointer; border:1px solid #05a2ea; border-radius:5px; } .accordionButton { width: 250px; background: #05a2ea; border-bottom: 1px solid #FFFFFF; cursor: pointer; padding:10px; font-family: Calibri; font-size:18px; color:#fff; } .accordionContent { width: 250px; backgroun in /home/freshjet/public_html/core/classes/TemplateSet.class.php on line 96

This appears nowhere else on the site. The code shown is from my profile_main.tpl, from the very first line. I presume it stops at 'backgroun' because it cannot display any more.

I don't get this error on my own profile, and am unaware if it happens on other pilot's profiles.

Could it be something to do with the double brackets (shown in red) ?

  • Like 1
  • 2 weeks later...
  • Moderators
Posted

What do you have in the file_exist() function in your TPL? Your host currently has the openbase restriction on which it prevents from you going out of the home directory.

Posted

I don't have that in there. I do have:

$metar1 = file_get_contents("http://www.freshjetvirtual.com/lib/skins/premiumseries/basic_metar.php?airport=EGPF");

But deleting it doesn't solve the problem.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...