getimagesize: Unable to open

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
axelS
Posts: 31
Joined: Thu 20. Nov 2003, 16:47
Location: Münster, Germany
Contact:

getimagesize: Unable to open

Post 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
John Murdoch (DarkCity): "When was the last time you remember doing something during the day?"
User avatar
Oliver Georgi
Site Admin
Posts: 9904
Joined: Fri 3. Oct 2003, 22:22
Contact:

Post by Oliver Georgi »

Change all permission for dirs "content" and "images" to 777.
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn | Систрон
axelS
Posts: 31
Joined: Thu 20. Nov 2003, 16:47
Location: Münster, Germany
Contact:

Post by axelS »

Thanks Oliver. That did the trick :D

axelS
John Murdoch (DarkCity): "When was the last time you remember doing something during the day?"
Post Reply