Page 1 of 1

File Center uploaded files not selectable in articles

Posted: Tue 21. Mar 2006, 22:04
by HansV
Hi all,

I have a problem on our website: files uploaded to the server using File Center, cannot be selected in articles. In an article I *can* see the name of the file, but I can't see the thumbnail and can't use it.

Strange thing is, one picture that I've uploaded a few months ago (when I was installing phpwcms) *can* be selected! When I compare the pictures that can be selected with the pictures that can't be selected, I notice one difference: the pictures that can't be selected have a different username (the web providers username, 'apache')

But when I upload a picture now, it gets the username the provider gave me (the one I use to connect to the webspace) and it can't be selected in an article.

I have read a number of posts about this problem, like:
http://www.phpwcms.de/forum/viewtopic.p ... ile+center and http://www.phpwcms.de/forum/viewtopic.php?t=9790

I have even implemented the chmod change of the last one, and I can see it works but I still can't select the pictures I upload!

Does somebody recognise this?
Do you have a solution?

Help!

Posted: Tue 21. Mar 2006, 22:23
by HansV
Incredible. I am looking for a solution for days, and finally decided to call in the help of the phpwcms forum. And, 5 minutes later, I found the solution.

This is the cause:
phpwcms wasn't able to create a thumbnail.
But, strangely enough, it didn't show an error message! That's what confused me, and set on the wrong track. In stead, it only showed an error message after I clicked the '+create thumbnail' icon behind the filename (it appears if you click on the filename in File Center). Then an error like this popped up:

Code: Select all

Warning: imagejpeg(): Unable to open '[..]oetsikoetsi.nl/public_html/[..]/phpwcms_tmp/thumb_preview/1_25_88kHU5PDrU.jpgjpg' for writing in /[..]oetsikoetsi.nl/public_html/[..]/include/inc_ext/hft_image/hft_image.php on line 346
Unable to output: [..]oetsikoetsi.nl/public_html/[..]/phpwcms_tmp/thumb_preview/1_25_88kHU5PDrU.jpgjpg
file=[..]oetsikoetsi.nl/public_html/[..]/include/inc_ext/hft_image/hft_image.php
Warning: getimagesize(): Unable to access [..]oetsikoetsi.nl/public_html/[..]/phpwcms_tmp/thumb_preview/1_25_88kHU5PDrU.jpgjpg in [..]oetsikoetsi.nl/public_html/[..]/include/inc_ext/hft_image/hft_image.php on line 306

Warning: getimagesize([..]oetsikoetsi.nl/public_html/[..]/phpwcms_tmp/thumb_preview/1_25_88kHU5PDrU.jpgjpg): failed to open stream: No such file or directory in [..]oetsikoetsi.nl/public_html/[..]/include/inc_ext/hft_image/hft_image.php on line 306
no thumbnail exists
This is the solution:
Change the authorisation of folder phpwcms_tmp/thumb_list and phpwcms_tmp/thumb_preview to 777.

Cheers!
Hans

Posted: Tue 21. Mar 2006, 22:53
by DeXXus
HansV wrote:This is the solution:
Change the authorisation of folder phpwcms_tmp/thumb_list and phpwcms_tmp/thumb_preview to 777.

Cheers!
Hans
Sounds like a very old version of phpWCMS. Those files and folders and directions for chmod permissions are no longer used.
You should use the latest v1.2.6-DEV from the CVS link at the phpWCMS Docu site in my signature.

Posted: Thu 23. Mar 2006, 20:02
by HansV
Yeah I know. But we needed to go live quickly, I had experience with the 1.1 version, so we decided to go ahead with that. But, point taken: we will move to the latest version asap!

Thanks, Hans