Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 10-26-2009, 06:05 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default File upload issues after 3.8.4 P1 upgrade from 3.6

I just recently upgraded from 3.6 to 3.8.4 P1, and after doing so, I'm having an issue with file uploads - specifically, any uploaded files that are run through a thumbnailing system - avatars, Photopost vbGallery thumbnails, vBadvanced Dynamics thumbnails, etc. Some are vb, some are add-ons. But they all have the same problem, and all of them seemed to work fine before the upgrade, and no server changes were made.

It seems that any file being uploaded and thumbnailed is created with insufficient file permissions. If I go in and set the entire directory permissions to 777 recursively, it fixes the existing thumbnails in all sections. But any new ones that are uploaded keep having the same problem.

Can anyone give me some place to look? I've asked in the vb support forums but haven't received a reply, and I'm sure the reply I will receive from them is that it's an "add-on" issue. How could an add-on be causing how a file is created?
Reply With Quote
  #2  
Old 10-26-2009, 06:42 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you tried turning off all your add-ons and seeing if you still have this issue?

What happens when you upload a file via Admin CP > Maintenance > Diagnostics > Upload
Reply With Quote
  #3  
Old 10-26-2009, 07:52 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Have you tried turning off all your add-ons and seeing if you still have this issue?

What happens when you upload a file via Admin CP > Maintenance > Diagnostics > Upload
I'm trying to avoid turning off all add-ons, in order to prevent further service interruptions.

Here are the results of the diagnostics:

file_uploads: On
open_basedir: None
safe_mode: Off
upload_tmp_dir: /tmp
upload_max_filesize: 2.00 MB

No errors occurred while opening the uploaded file for reading.

--------------- Added [DATE]1256590932[/DATE] at [TIME]1256590932[/TIME] ---------------

Quote:
Originally Posted by Lynne View Post
Have you tried turning off all your add-ons and seeing if you still have this issue?

What happens when you upload a file via Admin CP > Maintenance > Diagnostics > Upload
Just disabled all add-ons by editing the config file and adding this:
define('DISABLE_HOOKS', true);

Saved the file, cleared browser cache/cookies, logged back in, tried uploading a new custom avatar, and the custom avatar shows up as a broken image file. Doesn't look like it's a problem with add-ons.
Reply With Quote
  #4  
Old 10-26-2009, 08:18 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I assume you have the avatars stored in the file system? Have you double-checked those directory paths?

I don't think vbulletin does a thing to change directory permissions which is why it seems strange that this would be a default vbulletin issue.
Reply With Quote
  #5  
Old 10-26-2009, 08:27 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
I assume you have the avatars stored in the file system? Have you double-checked those directory paths?

I don't think vbulletin does a thing to change directory permissions which is why it seems strange that this would be a default vbulletin issue.
I recently moved avatars to the file system (after we upgraded to 3.8) because a few members were having this problem, plus I've been wanting to move them for a while. After moving them, all avatars were broken, which told me that the directory had the wrong permissions. I set the directory permissions at that point, so yes, the directory paths are correct, otherwise I can't see how they'd be showing up at all at this point.

Unfortunately, I didn't try duplicating the error with my own account before I moved avatars to the file system. I did, however, try uploading an avatar for a user who was having trouble in admincp and found that I could see the avatar in admincp (before avatars were moved to the file system) but saw a broken image in his posts/profile. At that point I tried reverting templates, which didn't fix the problem. I then moved the avatars over to the file system.

The problem lies in the file permissions of new avatars that are uploaded - they're being created with the wrong permissions. There is no problem with existing avatars after I fixed the permissions. The developer at vbadanced couldn't figure this out either. Again, this only started being a problem after we upgraded to 3.8 from 3.6. Something must have changed in vb.
Reply With Quote
  #6  
Old 10-26-2009, 08:40 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Check the source code. It would be interesting to see the image source in there. Then, see if it is the correct path for your site - can you view the avatar directly in your browser? What are the permissions on the avatar folder? Are you using the default avatar folder they supply with the software?
Reply With Quote
  #7  
Old 10-26-2009, 08:44 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
Check the source code. It would be interesting to see the image source in there. Then, see if it is the correct path for your site - can you view the avatar directly in your browser? What are the permissions on the avatar folder? Are you using the default avatar folder they supply with the software?
The source code for a broken avatar looks like this:
http://www.mysite.com/forums/customa...tar53481_5.gif

If you view the image directly, you get a 403 error, since the permissions are wrong. The avatar directory permissions are set to 0777. And yes, I'm using the default directory supplied by the script.
Reply With Quote
  #8  
Old 10-26-2009, 08:49 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So you are actually having the full path to the avatar added into the source code? On my site, it looks like this (note the relative path, not the full path):
HTML Code:
<img src="customavatars/avatar136297_2.gif" width="100" height="100" alt="Someone's Avatar" border="0" />
Reply With Quote
  #9  
Old 10-26-2009, 08:53 PM
ludachris ludachris is offline
 
Join Date: Feb 2002
Posts: 287
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
So you are actually having the full path to the avatar added into the source code? On my site, it looks like this (note the relative path, not the full path):
HTML Code:
<img src="customavatars/avatar136297_2.gif" width="100" height="100" alt="Someone's Avatar" border="0" />
That's being spit out by this template code:
HTML Code:
<img src="$post[avatarurl]" $post[avwidth] $post[avheight] alt="<phrase 1="$post[username]">$vbphrase[xs_avatar]</phrase>" border="0" />
Reply With Quote
  #10  
Old 10-26-2009, 08:54 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I know what template it is being spit out in. What I find weird is that the full path is being spit out instead of the relative path. That isn't how it is supposed to be in default vbulletin. I don't know that that is the issue, but it is rather strange.
Reply With Quote
Reply


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


All times are GMT. The time now is 09:35 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04262 seconds
  • Memory Usage 2,268KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (3)bbcode_html
  • (5)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (10)post_thanks_box
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (10)postbit_onlinestatus
  • (10)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete