Quote:
Originally Posted by Saviour
Fresh install after removing previous version and I get this error when trying to create a new egg:
Warning: getimagesize() [function.getimagesize]: Read error! in [path]/admincp/eggadmin.php on line 427
Give me a break...
|
Code:
$imgpath = DIR . '/' . $vbulletin->options['eggavatar_eggpath'] . $image['image'];
list($imgw, $imgh, $imgt) = getimagesize($imgpath);
Not complicated. $vbulletin->options['eggavatar_eggpath'] is the path you set in the options. $image['image'] is the name of the file: e.g. egg.gif.
The only way for this to fail is if the path is wrong, or the image doesn't exist in the path. I am open to suggestion on how to make this simpler, but please everyone check your paths and images when you install before deciding that something is broken.
Edit:
In fact, because I already do a check further up (added in last update) to make sure the directory is valid:
Code:
if (!file_exists(DIR . '/' . $vbulletin->options['eggavatar_eggpath']))
{
print_table_header($vbphrase['eggavatar_invalid_path'], 4);
}
Then the only way to get the error message you are getting is if an image in the database does not exist in that directory.
It's
always possible I could be wrong, and there is an actual bug, so forgive my frustration, I've just been dealing with a lot of these image path issues that aren't real issues