Page 1 of 1

getimagesize: Unable to open

Posted: Wed 11. Feb 2004, 20:17
by axelS
I'm getting the following error:

Code: Select all

Warning: getimagesize: Unable to open '.../content/images/1_13_s50QgaDo9V-68x70.jpg' for reading. in .../include/inc_front/content.article.inc.php on line 176
I've changed the file perms to 777 to no avail, so I looked at the code:

Code: Select all

$iinfo = getimagesize(PHPWCMS_ROOT."/".$phpwcms["content_path"].$phpwcms["cimage_path"].$ival[8]); // Check whether image exists
...which looks OK compared to my other installations (on the same server).

Funnily enough the site works absolutely fine, this "bug" only just occured... after I uploaded an image to the db and added it as "image/html" content to an article. The image uploads fine and is resized, etc. I've also tried different images and different articles, etc. All to no avail :(

Any help would be much appriciated since this is a live production site!

MTIA

axelS

Posted: Fri 13. Feb 2004, 08:49
by Oliver Georgi
Change all permission for dirs "content" and "images" to 777.

Posted: Fri 13. Feb 2004, 09:06
by axelS
Thanks Oliver. That did the trick :D

axelS