Go Back   vb.org Archive > vBulletin 4 Discussion > vB4 Programming Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 04-27-2016, 08:36 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Uploading attachment pics failing..

Hello everyone ...

I'm not sure if this is the right place or not, but I thought I'd start here ...

I've been trying to troubleshoot an issue for some time now and I need some help ...

Our site is a bunch of worldwide retired military veterans (about 27,000 members) who collect old militaria and we've been operating for about 10 years now. We're using vBulletin 4.1.3 Patch Level 8, but before everyone jumps all over me and says we need to upgrade... please don't as for a wide range of reasons, we need to stay frozen at this release level until all of us die...

Anyway, the site runs fine with no problems at all, except for one.

Some members experience issues with uploading files to attach to their posts. I've tried to duplicate the problem myself, but I can't get the issue to happen for me.

It appears to be an issue with the "Enhanced Attachment Uploading" option turned ON. Essentially, they select their files and begin their upload. See attached pic from a member who is experiencing a problem. It begins the process (it some cases it doesn't even start), then just freezes their computers?

File size and type of file seems immaterial ....

A typical comment from one member with this problem .. "I have had the issue as well from time to time. The main time is crops up is when trying to upload images. The site will time me out for a couple of hours or until I get a new IP address."

What's interesting is that if many of the members who have this problem change "Enhanced Attachment Uploading" option to OFF, thereby just using the BASIC mode, it seems to solve their problem?

So, my question... can someone here explain to me what vBulletin PHP files, or even other types of program files, are involved in the upload attachments process, both "Advanced Mode" and "Basic Mode".?

Maybe if I understand what's going on with the process, I can better troubleshoot it...

I should note that a few months ago, we started using Sucuri's Cloudproxy Firewall system and I have to say, it's been a remarkable improvement for us in both site performance and eliminating hacker and spam attacks.

Having said that and since we started with it, I think there may be a correlation between the time we started routing all our site's data through their firewall and an increase in some member's complaints about having issues uploading attachments. Some of those complaints have come from members who never had a problem before we implemented Sucuri's Cloudproxy Firewall.

One member who is a bit technology savvy said:

"I almost predictably encounter this problem with my "This day in history" uploads, and the next attempt I will screenshot my work as I go, and it if fails I will forward the requested information to you for troubleshooting. I usually have no troubles with this or any other forums and am respecting the upload file size limits when doing so, but I will try my best to help out with finding the root cause which may lead to a fix.

Wild speculation:

My upload is being interpreted as some sort of "cyber attack" to the site and my IP is being blocked for a timeout period to protect the site.

Crude work arounds include:

1. Using another device on the same network for accomplish the task, (mobile smartphone via tapatalk app)
2. Waiting 1-2 hours until the site responds and allows me to view the site and resume viewing and uploading. (2nd try of the exact same task is always successful)
3. Re-setting my modem, and reconnecting to my ISP. (Allows instant restoration of site access.)"


My apologies for the lengthy post, but if any of you can provide me with some education on how the upload attachments works and perhaps some guesses as to why it's failing predominately with the "Enhanced Attachment Uploading" option turned ON mode, I'd sincerely appreciate it.

Thanks .. :up:

Regards,
Doug

ps: I added a pic of my diagnostics test, just in case it was necessary ...
Attached Images
File Type: jpg Screen Shot 2016-04-27 at 5.16.47 AM.jpg (76.7 KB, 0 views)
File Type: jpg Screen Shot 2016-04-27 at 6.53.11 AM.jpg (34.4 KB, 0 views)
Reply With Quote
  #2  
Old 04-29-2016, 10:40 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?

Thanks ..

Regards,
Doug
Reply With Quote
  #3  
Old 05-01-2016, 07:25 PM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you check group/attachment permissions for uploading images?

Do you have any screenshots what error are you getting?
Reply With Quote
  #4  
Old 05-01-2016, 07:30 PM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for replying ..

All group/attachment permissions for uploading images are fine and haven't changed in years..

See screenshot in first post from a member. There doesn't appear to be any error messages with any of these failures reported by members.

Their uploading process just freezes and the the user has to close the window and re-log back in.

Regards,
Doug
Reply With Quote
  #5  
Old 05-01-2016, 11:57 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you turn off the firewall for a few days, do your users still have the same issue? That is the easiest way to find out if the two are related.

Also, I wonder what version of PHP and MySQL are on the site? That could have an effect also if your version isn't confirmed to work with that version of PHP. As far as I know, the latest version of PHP that is confirmed to work with vB4.1.3 is PHP5.3.

(I'm not sure what your reason's are for staying with vB4.1.3, but you do know it isn't the most secure version, right?)
Reply With Quote
  #6  
Old 05-03-2016, 01:18 AM
webmastersun's Avatar
webmastersun webmastersun is offline
 
Join Date: Oct 2013
Location: www.webmastersun.com
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lynne View Post
If you turn off the firewall for a few days, do your users still have the same issue? That is the easiest way to find out if the two are related.
Why firewall can affect this?

Also, I wonder what version of PHP and MySQL are on the site? That could have an effect also if your version isn't confirmed to work with that version of PHP. As far as I know, the latest version of PHP that is confirmed to work with vB4.1.3 is PHP5.3.

(I'm not sure what your reason's are for staying with vB4.1.3, but you do know it isn't the most secure version, right?)[/QUOTE]

I think this is the reason, maybe he missed some configs on the server.
Reply With Quote
  #7  
Old 05-03-2016, 09:47 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Uploads were working fine with vB4.13 patch 8 for years. Unfortunately, due to customization over the last 10 years, I can't upgrade our site easily and have no need to. We do not have a security problem and never have so far. Maybe hackers have a soft spot for a bunch of old retired veterans and have left us alone, I don't know ..

So, for sake of argument, let;'s assume that the vBulletin version is not the issue..

I also can't see the firewall causing this...

Requested information..

PHP Version 5.3.3
SQL version: 5.0.95 (not sure if this is the number you're looking for?)

Regards,
Doug

ps: a follow up... I received this message from a long time member using Windows 10 who said this:

"I performed the browser cache clearing thing as recommended but it doesn't seem to have helped things. Had troubles while trying to post a photo earlier tonight. Computer freezes and I have to shut it down and restart to get it going again. Why would it have had to do disc damage repairs during the restart? That can't be good. I had the same thing happen last year, except the computer I had then ended up crashing shortly afterward."
Reply With Quote
  #8  
Old 05-05-2016, 11:23 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by webmastersun View Post
Why firewall can affect this?
I don't know. But, in his original post he said "I think there may be a correlation between the time we started routing all our site's data through their firewall and an increase in some member's complaints about having issues uploading attachments". So, I was recommending he turn it off to see if there really is a correlation.

What if you set AdminCP > Settings > Options > Attachment Options > Asset Manager - Enable to Yes, Flash Upload by Default. Does that make a difference.

Is there anything in your error_logs (if you don't know where they are, ask your host) at the time the users have problems uploading?

Are attachments stored in the file system or database (admincp > Attachments > Attachment Storage Type)?
Reply With Quote
Благодарность от:
MarkFL
  #9  
Old 05-06-2016, 10:00 AM
BadgerDog BadgerDog is offline
 
Join Date: Oct 2006
Location: Toronto
Posts: 1,789
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had Sucuri Cloud Firewall tech support do extensive testing and they couldn't duplicate the problem, yet I sense it started when that intermediate cloud security measure was added to our site.

I even white listed on the Sucuri firewall settings at their host end, the newattachment.php code file used by vBulletin to handle the file management function and uploading, but that didn't seem to help at all.

Flash enabled by default.. (see attached pic)

Nothing unusual appears in error logs..

Attachments are stored in file system...

Here's another report by a long time members who's never had problems before.

The following is a typical complaint from a member.

Quote:
I appreciate you taking the time to assist me in figuring out what the problem. Please understand that I'm probably the most illiterate person your likely to deal with when it comes to computers, so bear with me.

First of the step by step sequence of what I'm doing... I type the reply, click ''manage attachments'', click ''add files'' then ''select files'', double click chosen photo(s), click on ''upload files'' and this is when the trouble starts.

After this happens I can't get the photo to load and if I try to delete and start over or click the ''back'' button a circle runs in the top left corner of the screen for 10-12 seconds and error message reading'' sorry, can't access this page''.

Refreshing the page does no good and I can't access anything without the error message appearing. I have to shutdown and restart to get things working again but can't access the site for varying lengths of time, in some cases nearly a day!

Requested info:

Adobe Java Software... checked that and it says...In windows 10 the edge browser does not support plug ins and therefore will not run Java. Switch to a different browser(Firefox or Internet Explorer II) to run the Java plug in.

Adobe Flash Software: up to date and current

User Agent: Mozilla/5.0(Windows NT 10.0; Win64;x64) Apple Webkit/537.36(K HT ML,like Gecko) Chrome/46.0.2456.0 Safari/537.36 Edge/13.10586

Computer: HP 15 Notebook PC
Operating System Version: Windows 10 Home 64-bit
Browser: Microsoft Edge,
Version: ?
Memory: 4GB
It should be noted that I set his default method of uploading from Advanced to Basic and it seemed to work for him.. see his response...

Quote:
I managed to post a photo on the forum using the new method you set up for me. Took a bit to get it figured out but it went off without a hitch.

As far as trying a different browser, no I have not but after learning I don't have JAVA or at least the latest version I plan to remedy that shortly. Thanks for taking time from your busy schedule to help me out
So, why would using the Basic method work and the Advanced method not?

I have suggest that other members who started to experience this problem try switching to the Basic method, but it hasn't solved the issue for every situation.

Thanks for any additional help here ..

Regards,
Doug
Attached Images
File Type: jpg Screen Shot 2016-05-06 at 7.48.58 AM.jpg (17.7 KB, 0 views)
Reply With Quote
  #10  
Old 05-06-2016, 02:47 PM
Lynne's Avatar
Lynne Lynne is offline
 
Join Date: Sep 2004
Location: California/Idaho
Posts: 41,180
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Have you asked the users for the type of attachment they are trying to upload (jpeg, png, gif, etc) and the width, height, and filesize of these attachments? Perhaps they are too large? Also, these server settings may also effect your attachment upload limits:

PHP Settings:
max_execution_time
memory_limit
post_max_size
upload_max_filesize
max_input_time

MySQL Settings:
max_allowed_packet
wait_timeout

What do you have set for these on the server? And have they changed recently?
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 07:17 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06654 seconds
  • Memory Usage 2,298KB
  • Queries Executed 12 (?)
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
  • (4)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
  • (1)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (10)postbit
  • (3)postbit_attachment
  • (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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete