fsxsimulation Posted May 21, 2011 Report Share Posted May 21, 2011 Hi i am getting error in my signatures what to do? Get the following error when access my edit profile area. Warning: scandir(\httpdocs\birdva\/lib/signatures/background1) [function.scandir]: failed to open dir: No error in E:\ihttpdocs\birdva\core\common\PilotData.class.php on line 420 Warning: scandir() [function.scandir]: (errno 0): No error in \httpdocs\birdva\core\common\PilotData.class.php on line 420 Warning: Invalid argument supplied for foreach() in E:\\httpdocs\birdva\core\common\PilotData.class.php on line 422 Awaiting help. Thanks! UPDATE: TOPIC SOLVED THANKS TO MARK & AHMED. Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 22, 2011 Author Report Share Posted May 22, 2011 awaiting reply. Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 23, 2011 Author Report Share Posted May 23, 2011 no replies ??? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted May 23, 2011 Moderators Report Share Posted May 23, 2011 How are your permissions set for that directory? Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 23, 2011 Author Report Share Posted May 23, 2011 777 Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 23, 2011 Author Report Share Posted May 23, 2011 i use the plesk panel hosting and in that i have given full access to the directories. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted May 23, 2011 Moderators Report Share Posted May 23, 2011 You will need to upload the install folder and run the checkfiles.php see if that turns up anything. Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 23, 2011 Author Report Share Posted May 23, 2011 ok i will give it a try now Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 23, 2011 Author Report Share Posted May 23, 2011 yup you were correct 2 errors founds thanks Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 23, 2011 Author Report Share Posted May 23, 2011 what does this mean? Checking file hashes for corrupt or mismatched files [Checksum failed] /core/templates/frontpage_main.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/pilot_public_profile.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/codon.config.php did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/pilots_details.tpl did not match, possibly corrupt or out of date Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 23, 2011 Author Report Share Posted May 23, 2011 and now what should i do? Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted May 23, 2011 Moderators Report Share Posted May 23, 2011 You should re upload these below and forget about the template errors, [Checksum failed] /core/codon.config.php did not match, possibly corrupt or out of date [Checksum failed] /admin/templates/pilots_details.tpl did not match, possibly corrupt or out of date 1 Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 24, 2011 Author Report Share Posted May 24, 2011 not working still same error in the pilot center edit place and in the install check i get this error now [Checksum failed] /core/templates/frontpage_main.tpl did not match, possibly corrupt or out of date [Checksum failed] /core/templates/pilot_public_profile.tpl did not match, possibly corrupt or out of date Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 24, 2011 Author Report Share Posted May 24, 2011 now i dont get any errors in the phpvms install check but still getting this error in the pilot center Warning: scandir(\httpdocs\birdva\/lib/signatures/background1) [function.scandir]: failed to open dir: No error in E:\ihttpdocs\birdva\core\common\PilotData.class.php on line 420 Warning: scandir() [function.scandir]: (errno 0): No error in \httpdocs\birdva\core\common\PilotData.class.php on line 420 Warning: Invalid argument supplied for foreach() in E:\\httpdocs\birdva\core\common\PilotData.class.php on line 422 Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted May 24, 2011 Moderators Report Share Posted May 24, 2011 I still think its a permissions thing, http://bugs.php.net/bug.php?id=42832 Description: ------------ A user must have permissions for a directory's parent in order to scan it with scandir. If the user does not have permissions (for instance, user has "Full Control" over the subdir but is not in the parent's ACL at all), php fails with a "failed to open dir: Bad file descriptor" error followed by a "(errno 9): Bad file descriptor" error. Based on the quick test in the "Actual results" box below, this bug seems to have arrived between 5.2.1 and 5.2.2. No php.ini is in use in any of the tests. Reproduce code: --------------- Any use of scandir will work, here's a quick one to do from the command line, after cding to the subdir: php -r "foreach(scandir('.') as $f) { echo($f); }" Expected result: ---------------- The subdirectory's filenames (all run together): ...file1.txtfile2.txtfile3.txt Actual result: -------------- C:\>cd \parentdir Access is denied. C:\>cd \parentdir\subdir C:\parentdir\subdir>dir /B file1.txt file2.txt file3.txt C:\parentdir\subdir>\php521\php -r "foreach(scandir('.') as $f) { echo($f); }" ...file1.txtfile2.txtfile3.txt C:\parentdir\subdir>\php522\php -r "foreach(scandir('.') as $f) { echo($f); }" Warning: scandir(.): failed to open dir: Bad file descriptor in Command line code on line 1 Warning: scandir(): (errno 9): Bad file descriptor in Command line code on line 1 Warning: Invalid argument supplied for foreach() in Command line code on line 1 C:\parentdir\subdir>\php524\php -r "foreach(scandir('.') as $f) { echo($f); }" Warning: scandir(.): failed to open dir: Bad file descriptor in Command line code on line 1 Warning: scandir(): (errno 9): Bad file descriptor in Command line code on line 1 Warning: Invalid argument supplied for foreach() in Command line code on line 1 1 Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 24, 2011 Author Report Share Posted May 24, 2011 this is the result i get for the signature. Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted May 24, 2011 Moderators Report Share Posted May 24, 2011 They are not getting generated, what happens if you manually generate then from the admin panel? Also are you using any other fonts or is it the default? Finally check all your folder permissions, core/pages is writeable! core/cache is writeable! core/logs is writeable! lib/rss is writeable! lib/avatars is writeable! lib/signatures is writeable! Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 24, 2011 Author Report Share Posted May 24, 2011 IT SAYS GENERATED. Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 24, 2011 Author Report Share Posted May 24, 2011 core/pages is writeable! core/cache is writeable! core/logs is writeable! lib/rss is writeable! lib/avatars is writeable! lib/signatures is writeable! Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 24, 2011 Author Report Share Posted May 24, 2011 now what to do no errors but still getting this ? Can it be a problem with the background image? Quote Link to comment Share on other sites More sharing options...
Ahmad Posted May 24, 2011 Report Share Posted May 24, 2011 can you send me the pic and format you are using in http://www.birdva.waleeddc.com/lib/signatures/background/ i will look into it? 1 Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 24, 2011 Author Report Share Posted May 24, 2011 ok sending you the PM for that. Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 24, 2011 Author Report Share Posted May 24, 2011 KINDLY CHECK YOUR PM Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 25, 2011 Author Report Share Posted May 25, 2011 awaiting replies! Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted May 25, 2011 Moderators Report Share Posted May 25, 2011 Make sure your background image is owned by the www or root with full read write access, try different images ie png jpg gif. Also go back to the default phpVMS image see what happens when you regenerate. Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 25, 2011 Author Report Share Posted May 25, 2011 ok i will try. Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 25, 2011 Author Report Share Posted May 25, 2011 ISSUE RESOLVED THANKS TO MARK & AHMED FOR HIS REPLIES. POST MARKED AS SOLVED. Quote Link to comment Share on other sites More sharing options...
Ahmad Posted May 25, 2011 Report Share Posted May 25, 2011 Hey i just witnesed your VA have some Errors on Pilot Center Page please resolve it as it is not good for your VA reputation. SEE THIS [b]Warning[/b]: scandir(E:\inetpub\vhosts\waleeddc.com\httpdocs\birdva\/lib/signatures/background1) [[url="http://www.birdva.waleeddc.com/index.php/profile/function.scandir"]function.scandir[/url]]: failed to open dir: No error in [b]E:\inetpub\vhosts\waleeddc.com\httpdocs\birdva\core\common\PilotData.class.php[/b] on line [b]420[/b] [b]Warning[/b]: scandir() [[url="http://www.birdva.waleeddc.com/index.php/profile/function.scandir"]function.scandir[/url]]: (errno 0): No error in [b]E:\inetpub\vhosts\waleeddc.com\httpdocs\birdva\core\common\PilotData.class.php[/b] on line [b]420[/b] [b]Warning[/b]: Invalid argument supplied for foreach() in [b]E:\inetpub\vhosts\waleeddc.com\httpdocs\birdva\core\common\PilotData.class.php[/b] on line [b]422[/b] Ahmad Quote Link to comment Share on other sites More sharing options...
fsxsimulation Posted May 26, 2011 Author Report Share Posted May 26, 2011 Hey i just witnesed your VA have some Errors on Pilot Center Page please resolve it as it is not good for your VA reputation. SEE THIS [b]Warning[/b]: scandir(E:\inetpub\vhosts\waleeddc.com\httpdocs\birdva\/lib/signatures/background1) [[url="http://www.birdva.waleeddc.com/index.php/profile/function.scandir"]function.scandir[/url]]: failed to open dir: No error in [b]E:\inetpub\vhosts\waleeddc.com\httpdocs\birdva\core\common\PilotData.class.php[/b] on line [b]420[/b] [b]Warning[/b]: scandir() [[url="http://www.birdva.waleeddc.com/index.php/profile/function.scandir"]function.scandir[/url]]: (errno 0): No error in [b]E:\inetpub\vhosts\waleeddc.com\httpdocs\birdva\core\common\PilotData.class.php[/b] on line [b]420[/b] [b]Warning[/b]: Invalid argument supplied for foreach() in [b]E:\inetpub\vhosts\waleeddc.com\httpdocs\birdva\core\common\PilotData.class.php[/b] on line [b]422[/b] Ahmad Ok let me check Quote Link to comment Share on other sites More sharing options...
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.