vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   File upload issues after 3.8.4 P1 upgrade from 3.6 (https://vborg.vbsupport.ru/showthread.php?t=226825)

ludachris 10-26-2009 06:05 PM

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?

Lynne 10-26-2009 06:42 PM

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

ludachris 10-26-2009 07:52 PM

Quote:

Originally Posted by Lynne (Post 1906548)
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 (Post 1906548)
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.

Lynne 10-26-2009 08:18 PM

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.

ludachris 10-26-2009 08:27 PM

Quote:

Originally Posted by Lynne (Post 1906597)
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.

Lynne 10-26-2009 08:40 PM

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?

ludachris 10-26-2009 08:44 PM

Quote:

Originally Posted by Lynne (Post 1906612)
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.

Lynne 10-26-2009 08:49 PM

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" />

ludachris 10-26-2009 08:53 PM

Quote:

Originally Posted by Lynne (Post 1906616)
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" />

Lynne 10-26-2009 08:54 PM

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.


All times are GMT. The time now is 01:20 AM.

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.01190 seconds
  • Memory Usage 1,750KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_html_printable
  • (5)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete