freshJet Posted December 16, 2012 Report Posted December 16, 2012 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) ? 1 Quote
Moderators Kyle Posted December 28, 2012 Moderators Report Posted December 28, 2012 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. Quote
freshJet Posted December 28, 2012 Author Report Posted December 28, 2012 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. Quote
freshJet Posted January 4, 2013 Author Report Posted January 4, 2013 Whoops, silly me. I had a string in speech marks in a date() function. My bad. 1 Quote
Moderators Kyle Posted January 4, 2013 Moderators Report Posted January 4, 2013 Hehe, Glad you found the problem. 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.