PhotoPost Community

PhotoPost Community (http://www.photopost.com/forum/)
-   Photopost Pro Bug Reports (http://www.photopost.com/forum/photopost-pro-bug-reports/)
-   -   5.62 - missing chmod (http://www.photopost.com/forum/photopost-pro-bug-reports/133702-5-62-missing-chmod.html)

Zarzal October 6th, 2007 06:39 AM

5.62 - missing chmod
 
It seems that in adm-photo.php is missing a chmod. My server put the attribut 600 to a thumb/midsize if I move a picture. The result is a missing thumbnail (cant display while se to 600). I must use FTP to manual change it to 644 or 666.

Chuck S October 6th, 2007 10:19 AM

You sure here that it is not all thumbs and your host is not the one or two hosts I have came across that set permissions like that and they need to correct the server. There are threads here on that.

The scripts call a function move_image_cat and the files have already been set to 666 permissions when they where uploaded so there is no need to move_image_cat to chmod files. It would appear your server drops permission.
However I think your issue might be more like my original hypothesis. You need to contact the host and they should be able to clear it up. If this chmod thing affected all pictures with permissions being dropped on move then all photos medium and large would be not viewable. See its only your thumbnail which brings me right back to one or two hosts which we know Photopost has trouble with thumbs working and permissions until they correct the server. No one has of course told us what the server issue is just that they fixed it.

Zarzal October 6th, 2007 11:45 AM

All files handled by sever goes to 600. My hoster wont change the config and told me to change my scripts. So I have to find out where to set the chmod to correct the permissions in the script itself.

Chuck S October 6th, 2007 01:35 PM

Interesting and very restrictive host there. But again like i said this is just thumbs right why arent all files moved affected. See the point I was making.

You may modify the move_image_cat function in pp-inc.php and add chmod commands in there for each file. Maybe like this around line 3647 add in bold.

Code:

Content visible to verified customers only.

Zarzal October 6th, 2007 01:50 PM

Thank you, this work for me. There is another place where I put this to get thumbs if a file was uploaded. Now all work on my server. Have a nice weekend.

Chuck S October 7th, 2007 11:18 AM

Thanks however I must saw this is an issue your host can fix without any software modifications since as stated this is only happening on your thumb files.


All times are GMT -5. The time now is 01:46 PM.

Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97