filesize, fread, fclose error

teresafranco / 2009-05-22 19:28:46   

I'm getting this error on my site (http://kristinacollantes.com) and I'm not sure what it means:

Warning: filesize(): Stat failed for /home/content/k/r/i/kristinacoll/html/ndxz-studio/site//index.php (errno=2 - No such file or directory) in /home/content/k/r/i/kristinacoll/html/index.php on line 81

Warning: fread(): supplied argument is not a valid stream resource in /home/content/k/r/i/kristinacoll/html/index.php on line 81

Warning: fclose(): supplied argument is not a valid stream resource in /home/content/k/r/i/kristinacoll/html/index.php on line 82

teresafranco / 2009-05-22 20:47:20   

indexhibit is credited in the site. i know you can't see it but i made sure to add a link for it.

iwakami / 2009-05-22 21:50:26   

did the website worked before? did you deleted the homepage? made any changes recently? moved the website folder? or deleted any content by accident and tried to correct it with some invented code?... (i did this myself at the beginning, and it didn't worked, of course. then i replaced the file with the original and started over... wise decision...)

i can't help any more than this... these... questions... :(

teresafranco / 2009-05-23 00:07:36   

alright, I'll reinstall everything and start over. thanks.

iwakami / 2009-05-23 09:27:43   

keep us updated!

: ]

Eloisa A / 2009-05-23 10:21:06   

It clearly worked because her link is working now :)

louisbullock / 2012-01-06 23:51:48   

I found a solution when the fread is 0, that means that the file it's supposed to read for some reason is 0bytes. The reason why is your index.php file in /site/ isn't saved, or is 0 bytes. I solved this by re-saving the index.php file in /site/, and made sure that the full size of it was on the server.

I hope that helps some of the users here :)

This thread has been closed, thank you.