Can't upload image to group.

I created a group, but when I go to upload an image I get the following message.

 

Warning: rename(/tmp/Dol_ThggDA,/home/weunitec/public_html/groups/gallery/1_19_df8354446e.jpg) [function.rename]: Permission denied in /home/weunitec/public_html/group_actions.php on line 144

Warning: rename(/tmp/Dol_ThggDA_,/home/weunitec/public_html/groups/gallery/1_19_df8354446e_.jpg) [function.rename]: Permission denied in /home/weunitec/public_html/group_actions.php on line 145

Warning: rename(/tmp/Dol_ThggDA_icon,/home/weunitec/public_html/groups/gallery/1_19_df8354446e_icon.jpg) [function.rename]: Permission denied in /home/weunitec/public_html/group_actions.php on line 146

Warning: chmod() [function.chmod]: Permission denied in /home/weunitec/public_html/group_actions.php on line 148

Warning: chmod() [function.chmod]: Permission denied in /home/weunitec/public_html/group_actions.php on line 149

Warning: chmod() [function.chmod]: Permission denied in /home/weunitec/public_html/group_actions.php on line 150

Warning: Cannot modify header information - headers already sent by (output started at /home/weunitec/public_html/group_actions.php:144) in /home/weunitec/public_html/inc/design.inc.php on line 488
 

Please help.

Quote · 6 Aug 2008

Check your permissions on the indicated directories/files  .....

Quote · 6 Aug 2008

Thanks. What should it be set to? 666?

Quote · 6 Aug 2008

Thanks. What should it be set to? 666?

My 6.1.4 group_actions.php is 644 and works fine  .....

Also make sure the /groups directory is 755  .....

Quote · 6 Aug 2008

ok. thanks. group_actions.php is set to 644 /groups directory is set to 755 . Let me clarify this a bit. It says the upload is successful when I upload a pic, but although the square for the image is there, the pic is not visable and I get the above error. I hope that is more clear. Thank you.

 

Quote · 6 Aug 2008

Check permission on tmp folder (0777)

and what is the permission on the uploaded picture (0644)

Quote · 6 Aug 2008

I've checked all permissions and everything seems to be what I'm being told they should be. Still no image. Help!!!!

Quote · 7 Aug 2008

Have your picture been uploaded!!!!

and if it have, what is the permission on the uploaded picture?

Quote · 8 Aug 2008

 

ok. thanks. group_actions.php is set to 644 /groups directory is set to 755 . Let me clarify this a bit. It says the upload is successful when I upload a pic, but although the square for the image is there, the pic is not visable and I get the above error. I hope that is more clear. Thank you.

 

 

As you can see I have uploaded the images. all permision in question are 644 or 755. The image is 644. The /tmp folder is set to 777.

Quote · 9 Aug 2008

Did you try to upload another image which name doesnt have spaces? Or to rename that picture? Not sure if that is cousing your problem.

Quote · 10 Aug 2008

Hey didn't think of that. Thank you. I will give changing the name a try. Thanks much.

Quote · 10 Aug 2008

 OK. Tried to upload an image with no spaces in the name and I get the error below the quote.

 

Should the group_actions.php be set to 655 or 666 maybe? Just stabbing in the dark. Thanks.

 

ok. thanks. group_actions.php is set to 644 /groups directory is set to 755 . Let me clarify this a bit. It says the upload is successful when I upload a pic, but although the square for the image is there, the pic is not visable and I get the above error. I hope that is more clear. Thank you.

 

 

Warning: rename(/home/weunitec/public_html//tmp/Dol_TUXqh6,/home/weunitec/public_html/groups/gallery/1_22_edd1c27489.jpg) [function.rename]: Permission denied in /home/weunitec/public_html/group_actions.php on line 144

Warning: rename(/home/weunitec/public_html//tmp/Dol_TUXqh6_,/home/weunitec/public_html/groups/gallery/1_22_edd1c27489_.jpg) [function.rename]: Permission denied in /home/weunitec/public_html/group_actions.php on line 145

Warning: rename(/home/weunitec/public_html//tmp/Dol_TUXqh6_icon,/home/weunitec/public_html/groups/gallery/1_22_edd1c27489_icon.jpg) [function.rename]: Permission denied in /home/weunitec/public_html/group_actions.php on line 146

Warning: chmod() [function.chmod]: No such file or directory in /home/weunitec/public_html/group_actions.php on line 148

Warning: chmod() [function.chmod]: No such file or directory in /home/weunitec/public_html/group_actions.php on line 149

Warning: chmod() [function.chmod]: No such file or directory in /home/weunitec/public_html/group_actions.php on line 150

Warning: Cannot modify header information - headers already sent by (output started at /home/weunitec/public_html/group_actions.php:144) in /home/weunitec/public_html/inc/design.inc.php on line 488

Quote · 10 Aug 2008

Im just guessing here but look at the warrning and file name

 

Warning: rename(..../public_html/groups/gallery/1_22_edd1c27489.jpg) <-----now your error shows different picture. That underline between 1 and 22 and edd1c... is a space.

 

 

 

 

Quote · 10 Aug 2008

That's wierd. The image name was 2couples2.jpg with no spaces. What the..... lol

Quote · 10 Aug 2008

I just checked my group_actions.php and here are the lines from 144 to 150 I think...compare them with yours...

 

xxxxxxxxxxxxxxx

 

rename( $tempImg,  $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}.{$Ext}" );
          rename( $tempImg_, $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}_.{$Ext}" );
          rename( $tempImg_icon, $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}_icon.{$Ext}" );
          
          chmod( $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}.{$Ext}", 0644 );
          chmod( $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}_.{$Ext}", 0644 );
          chmod( $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}_icon.{$Ext}", 0644 );

 

xxxxxxxxxxxxxx

Quote · 10 Aug 2008

It still appears there are permissions issues.

The script renames files with no apparent rhyme or reason.

In my v6.1.4 it inserts underscores regardless whether there are spaces in

original name or not  .....  they all get underscores.
.

Quote · 10 Aug 2008

Mine is the same. At least I don't see a difference.

 

rename( $tempImg,  $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}.{$Ext}" );
          rename( $tempImg_, $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}_.{$Ext}" );
          rename( $tempImg_icon, $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}_icon.{$Ext}" );
          
          chmod( $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}.{$Ext}", 0644 );
          chmod( $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}_.{$Ext}", 0644 );
          chmod( $oGroups->sGrpGalPath."{$groupID}_{$imgID}_{$seed}_icon.{$Ext}", 0644 );

Quote · 10 Aug 2008

what is your web address? can we see your site?

Quote · 10 Aug 2008

This is line 144-150 from the group_actions.php file from v6.1.4  .....

144
145    $_page['header']        = _t( "_Upload to group gallery error" );
146
147    $_page['header_text']   = _t( "_Upload to group gallery error" );
148
149    $_page_cont[$_ni]['page_main_code'] = MsgBox(_t('_You should specify file'));
150


You must be using a different version  ..... 
The same code as yours is starting on line 286
.

Quote · 10 Aug 2008

is your grp.php set to 644? Look at 3 last warnings.

Quote · 10 Aug 2008

Im using 6.1.2.

 

Quote · 10 Aug 2008

What do you have in tmp folder? Dol_tuxqh6? Mine is empty...and you got 2 // before tmp? Is that ok?

 

Warning: rename(/home/weunitec/public_html//tmp/Dol_TUXqh6,    /home/weunitec/public_html/groups/gallery/1_22_edd1c27489.jpg) [function.rename]: Permission denied in /home/weunitec/public_html/group_actions.php on line 144

Quote · 10 Aug 2008

Sorry was AFK. I'm using 6.1.4. grp.php is 644. Hold on I'll look at the tmp file.

Quote · 10 Aug 2008

/home/weunitec/public_html/tmp/ has no file called (/home/weunitec/public_html//tmp/Dol_TUXqh6

 

 

Also I get the same error and result with IE7 and firefox

Quote · 10 Aug 2008

Sorry was AFK. I'm using 6.1.4. grp.php is 644. Hold on I'll look at the tmp file.

Then you do not have the v6.1.4 group_actions.php file  .....  see my post above.

Did you upgrade from another version?
.

Quote · 10 Aug 2008

If you can catch it I would like to know if the owner is 99 or you...would be something like your ftp username

I have video tutorials to help you mrpowless.com
Quote · 11 Aug 2008

If you can catch it I would like to know if the owner is 99 or you...would be something like your ftp username

Mine is me if you're asking me  .....

Quote · 11 Aug 2008

Good morning. Yes this was upgraded from 6.1.3. I'm not sure what you mean by the group_actions.php file is not there. I can see the file.? To mrpowless: I am the owner. I don't know wnat you mean by,"am I 99". The URL for my site is weunitecouples.com and my version says 6.1.4. Thanks again.

By the way more and more stuff is starting to malfunction. I have not changed any scripts or anything and all permisions are still what they were when I started. What is happening to my site?

Quote · 11 Aug 2008

Yes this was upgraded from 6.1.3. I'm not sure what you mean by the group_actions.php file is not there. I can see the file.?

I meant you don't have the v6.1.4 group_actions.php file. The v6.1.4 group_actions.php file is 23.57kb in size and is 1319 lines long  ..... 

To mrpowless: I am the owner. I don't know wnat you mean by,"am I 99". The URL for my site is weunitecouples.com and my version says 6.1.4.

Look in your ftp client to the right of the filename and there is a column "Owner", see who owns the file group_actions.php.
.

Quote · 11 Aug 2008

Sorry, where do I go to check this? Other than the folder /incoming (which is empty) there is nothing in the ftp folder. I must be looking in the wrong place. I checked the file size, it is 23k, but when I paste it in notepad I only get 666 lines not 1319. Thanks for your help.

Quote · 11 Aug 2008

/public_html/group_actions.php  .....  in the right pane  ..... 

In your ftp client the left pane is your local files and the right pane is your remote files (server)

Quote · 11 Aug 2008

Okay. I see what you mean. I am using IPswitch and I only have name, size, type, modified and attributes. No owner column. I will look in the settings and try to find that option. Thanks.

 

Quote · 11 Aug 2008

Can't find an area to add the owner column. WOW, this is all making me feel really stupid.

Quote · 11 Aug 2008

Don't worry about it AT ALL!  There is just SO MUCH imvolved with this 'easy to use'
system that the average user should NOT have to know to begin with. (IMHO)

Go to your hosting control panel > file manager and see if you can see the owner there.
If not, ask your hosting who owns it.
.

Quote · 11 Aug 2008

Okay great. Thanks. I feel a little better now. ;)

Quote · 11 Aug 2008
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.