[SOLVED] Signatures Problem

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.

awaiting reply.

no replies ???

How are your permissions set for that directory?

777

i use the plesk panel hosting and in that i have given full access to the directories.

You will need to upload the install folder and run the checkfiles.php see if that turns up anything.

ok i will give it a try now

yup you were correct 2 errors founds thanks

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

and now what should i do?

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 Like

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

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

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 Like

this is the result i get for the signature.

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!

IT SAYS GENERATED.

core/pages is writeable!

core/cache is writeable!

core/logs is writeable!

lib/rss is writeable!

lib/avatars is writeable!

lib/signatures is writeable!

now what to do no errors but still getting this ? Can it be a problem with the background image?