forum.webdiplomacy.net

webDip dev coordination forum / public access todo list
It is currently Sun May 27, 2018 5:36 pm

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Game Crashed
PostPosted: Tue Oct 13, 2009 4:09 pm 
Offline

Joined: Thu Apr 02, 2009 4:13 pm
Posts: 93
Today, a user retreat and then the game crashed.

I get the following Log


Error: "file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(map.php?gameID=8&amp;turn=9&amp;mapType=xml) is not within the allowed path(s): (./;../;/;d:\www;d:\\www;D:\www;D:\\www;c:\temp;c:\\temp;c:\php;c:\\php;c:\php5;c:\\php5;d:\scripts\WLMonitorScripts)"
Raised: "D:\www\www688\diplomacy\map\displayMap.php"
Line: "68"
userID = 5, gameID = 8Variable dump: mapList => mapstore/8/mapList.js
latestSmallMap => mapstore/8/9-smallmap.png
latestLargeMap => map.php?gameID=8&turn=9&mapType=large
latestXMLMap => map.php?gameID=8&turn=9&mapType=xml


Trace:
0 => Array: (
function => error_handler
args => Array: (
0 => 2
1 => file_exists() [<a href='function.file-exists'>function.file-exists</a>]: open_basedir restriction in effect. File(map.php?gameID=8&amp;turn=9&amp;mapType=xml) is not within the allowed path(s): (./;../;/;d:\www;d:\\www;D:\www;D:\\www;c:\temp;c:\\temp;c:\php;c:\\php;c:\php5;c:\\php5;d:\scripts\WLMonitorScripts)
2 => D:\www\www688\diplomacy\map\displayMap.php
3 => 68
4 => Array: (
mapList => mapstore/8/mapList.js
latestSmallMap => mapstore/8/9-smallmap.png
latestLargeMap => map.php?gameID=8&turn=9&mapType=large
latestXMLMap => map.php?gameID=8&turn=9&mapType=xml
)
)
)
1 => Array: (
file => D:\www\www688\diplomacy\map\displayMap.php
line => 68
function => file_exists
args => Array: (
0 => map.php?gameID=8&turn=9&mapType=xml


Version 0.92


Top
 Profile  
 
 Post subject: Re: Game Crashed
PostPosted: Tue Oct 13, 2009 6:22 pm 
Offline

Joined: Wed Sep 09, 2009 2:37 pm
Posts: 156
Sounds like you're running PHP in safe mode, since your directory is contained in the directory list in the error. Open your php.ini file and make sure safe_mode is set to "0"


Top
 Profile  
 
 Post subject: Re: Game Crashed
PostPosted: Tue Oct 13, 2009 8:25 pm 
Offline

Joined: Thu Apr 02, 2009 4:13 pm
Posts: 93
Thank you for your answer.
I found the answer in a reply from jayp

Replace
file_exists($latestXMLMap) and unlink($latestXMLMap);


with


if (!strstr($latestXMLMap, 'map.php?') && file_exists($latestXMLMap))
unlink($latestXMLMap);

in displayMap.php at line 68


Top
 Profile  
 
 Post subject: Re: Game Crashed
PostPosted: Wed Oct 14, 2009 7:26 am 
Offline
Site Admin

Joined: Sat Jun 28, 2008 6:24 am
Posts: 892
Are you running the latest code? I thought I had fixed that a while ago


Top
 Profile  
 
 Post subject: Re: Game Crashed
PostPosted: Wed Oct 14, 2009 7:28 am 
Offline

Joined: Thu Apr 02, 2009 4:13 pm
Posts: 93
Hy Kestas,

I think, it is the latest code


Top
 Profile  
 
 Post subject: Re: Game Crashed
PostPosted: Wed Oct 21, 2009 1:11 pm 
Offline
Site Admin

Joined: Sat Jun 28, 2008 6:24 am
Posts: 892
You're right, I remembered fixing it for the small and large map but somehow added the XML one without fixing it


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group