PhotoPlog

Go Back   PhotoPlog > PhotoPlog Lite > Troubleshooting & Problems
Screens Demo Purchase Download Register

Reply
Attention: Last reply in this thread was more than 18 Years ago
 
Thread Tools
  #1  
Old 01-11-2006, 08:33 PM
ka$h ka$h is offline
Green Plog
 
Join Date: Jan 2006
Location: NE England
Posts: 28
Gallery: 0
Comments: 0
Default No uploads and a message

I can't upload pics and get this message when I try:

Warning: move_uploaded_file(): SAFE MODE Restriction in effect. The script whose uid/gid is 6344/6344 is not allowed to access /mounted-storage/home8/sub003/sc15378-GJSN/www/photoplog/images/793 owned by uid/gid 99/99 in /mounted-storage/home8/sub003/sc15378-GJSN/www/photoplog/upload.php on line 143

I assume looking at the title that it's because SAFE MODE is on. I cannot change this as I don't have access to do so. A solution please?

K
Reply With Quote
  #2  
Old 01-11-2006, 09:44 PM
ka$h ka$h is offline
Green Plog
 
Join Date: Jan 2006
Location: NE England
Posts: 28
Gallery: 0
Comments: 0
Default

I also ge tthis error in the middle of the page:

Sorry, ka$h: Bad Type

Part of the same I hope, but I could do with some help

K
Reply With Quote
  #3  
Old 01-11-2006, 09:58 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Is the images directory set to 777 permissions? If so, and you still cannot upload, ask your host if they will change UID (user) checking to GID (group) checking so you can upload. Here's a link to safe_mode_gid. It's something that needs to be set in the php.ini or httpd.conf file.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #4  
Old 01-11-2006, 10:11 PM
ka$h ka$h is offline
Green Plog
 
Join Date: Jan 2006
Location: NE England
Posts: 28
Gallery: 0
Comments: 0
Default

Code:
Content visible to registered users only.
Yeah, images is 777 and that's the probs I get. I can ask host to change that, I'll have to read that link throurghly now to see where this is going as it's losing me a bit now. All will be come clear soon I hope. Thanks so far mate
Reply With Quote
  #5  
Old 01-11-2006, 10:27 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Not sure if you saw it on that page, but if you look for the sentence that starts with "When safe_mode is on, PHP checks to see if the owner of..." there is some more talk about UID/GID stuff that may be of some help. Let me know how it goes.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #6  
Old 01-12-2006, 04:21 PM
ka$h ka$h is offline
Green Plog
 
Join Date: Jan 2006
Location: NE England
Posts: 28
Gallery: 0
Comments: 0
Default

Right, although the servercp says that I am running SAEF MODE I was also running gid safe mode. To keep security on the shared server I changed the option for gid safe mode to off and it gives exactly the same, so that aint it.

In addition to this I switched the vb options for server safe mode to on and it refused to allow attachments to be uploaded. I switched back to off and it works fine. This makes me think it aint the server but something else.

Don't really want to be turning the SM off in the CP, and it's taking 2-3 hours for settings to change so it's not something I can tryout quickly if you know what I mean.

Any more thoughts?
Reply With Quote
  #7  
Old 01-12-2006, 04:23 PM
ka$h ka$h is offline
Green Plog
 
Join Date: Jan 2006
Location: NE England
Posts: 28
Gallery: 0
Comments: 0
Default

Just double checked the error and it has actually changed by dropping the gid part of the error:

Code:
Content visible to registered users only.
K
Reply With Quote
  #8  
Old 01-12-2006, 04:27 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Does the 793 directory have 777 permissions?
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
  #9  
Old 01-12-2006, 04:28 PM
ka$h ka$h is offline
Green Plog
 
Join Date: Jan 2006
Location: NE England
Posts: 28
Gallery: 0
Comments: 0
Default

it certainly does
Reply With Quote
  #10  
Old 01-12-2006, 06:19 PM
Morgan's Avatar
Morgan Morgan is offline
Head Plog
Admin
 
Join Date: Dec 2005
Posts: 5,324
Gallery: 10
Comments: 25
Default

Regarding safe mode, there is a blog (http://ilia.ws/archives/18-PHPs-safe...-security.html) where the last comment says:
Code:
Content visible to registered users only.
The issue you're experiencing with safe mode is because the PHP script has its own UID/GID (6344/6344) but the directory where the uploaded files are to go has a different UID/GID (99/99) and as 6344 != 99 you get the error message.

You could try Titov's patch, if you are server admin, or else try to convince your host to apply the patch. Alternatively, there is a page (http://bugs.php.net/bug.php?id=24604) where the last comment says:
Code:
Content visible to registered users only.
__________________
Please use the forums for support, feature requests, and similar such things. Support does not include custom code, custom template edits, or third-party modifications. PMs and emails to me should be for private information only, such as login information. If you PM or email me a support question, chances are good that I'll ignore it. Thanks.
While the work or play is on, it is a lot of fun if while you are doing one you don't constantly feel that you ought to be doing the other. -- Franklin Pierce Adams
Reply With Quote
Reply

« Previous Thread | Next Thread »
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ERROR MESSAGE wickedstangs Troubleshooting & Problems 2 09-10-2007 03:38 AM
Not logged in message anaintre Troubleshooting & Problems 4 02-02-2007 10:13 AM


All times are GMT. The time now is 09:36 AM.


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.