Advertisement:

Author Topic: Posts with multi-megabyte file attachments fail  (Read 3210 times)

Offline NotYetStravinsky

  • Newbie
  • *
  • Posts: 6
Posts with multi-megabyte file attachments fail
« on: September 06, 2018, 07:37:46 PM »
I've taken over a forum from another user, copying the forum files from his GoDaddy space to mine. After tweaking some paths everything seems to be working except larger file uploads (I've been using a 4.x mb test file). Smaller files seem to work fine (test file was 161 kb). Another user has reported similar results.

IE shows a generic error page. Chrome reports ERR_CONNECTION_RESET.

I've worked with GoDaddy on the problem, increasing timeout and max file size, along with a couple of other cPanel settings I forget, and as far as they can tell everything is fine at their end.

Suggestions?

Thanks,

Jamie

Offline Shambles

  • SMF Hero
  • ******
  • Posts: 5,158
  • Gender: Male
    • i30 Owners Club
Re: Posts with multi-megabyte file attachments fail
« Reply #1 on: September 06, 2018, 07:56:23 PM »
You're using old technology - SMF series 1.1.* won't get much support now.

Upgrade to 2.0.15

Offline NotYetStravinsky

  • Newbie
  • *
  • Posts: 6
Re: Posts with multi-megabyte file attachments fail
« Reply #2 on: September 06, 2018, 08:08:51 PM »
Thanks for getting back to me. Not surprised there isn't a lot of support for 1.x but I took this over because no-one else would and have already spent waaay too much time on it. So not planning to upgrade and risk more problems to solve.

Thanks for the advice though. I'm sure you're correct but it doesn't fit my situation.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,433
  • Gender: Male
    • Kindred-999 on GitHub
Re: Posts with multi-megabyte file attachments fail
« Reply #3 on: September 06, 2018, 09:26:16 PM »
If you do not upgrade, you will have more and more problems, including security - since 1.1.x has not received any of the last 3-5 security patches.

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline NotYetStravinsky

  • Newbie
  • *
  • Posts: 6
Re: Posts with multi-megabyte file attachments fail
« Reply #4 on: September 06, 2018, 09:39:12 PM »
Thanks for the input, but as I've said, I've spent far too much time on this already. Security isn't a huge deal with this particular forum. If someone hackled it and deleted the whole thing including database I'd just upload again it the next day, perhaps minus a few posts - this isn't a terribly busy forum.

I'm sure you're right, but I just want to get it to a point where I can more or less walk away from admin stuff. This is a forum for composers to post their stuff for discussion and in the end if I can't get larger file uploads to work then I'll just have to require that people host their music elsewhere.

Thanks for getting back to me though. I appreciate the input.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,433
  • Gender: Male
    • Kindred-999 on GitHub
Re: Posts with multi-megabyte file attachments fail
« Reply #5 on: September 06, 2018, 09:50:43 PM »
I don’t think you understand, still. If you do not update, you can not just walk away, because the forum will stop working soon, since 1.1.x will has not received any updates to keep working on modern versions of php and MySQL.

Seriously.
Upgrade.

Now, for your issue...
When you moved, Did you use the repair_settings.php tool to correct all of your paths and URLs?

Have you checked the size setting for the maximum attachment size ?
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Online vbgamer45

  • Customizer
  • SMF Super Hero
  • *
  • Posts: 21,506
    • smfhacks on Facebook
    • VBGAMER45 on GitHub
    • @createaforum on Twitter
    • SMF For Free
Re: Posts with multi-megabyte file attachments fail
« Reply #6 on: September 06, 2018, 10:26:52 PM »
I have an article on increasing your PHP upload limits at https://www.smfhacks.com/index.php/topic,3498.0.html
Community Suite for SMF - Take your forum to the next level built for SMF, Gallery,Store,Classifieds,Downloads,more!

SMFHacks.com -  Paid Modifications for SMF

Mods:
EzPortal - Portal System for SMF
SMF Gallery Pro
SMF Store SMF Classifieds Ad Seller Pro

Offline NotYetStravinsky

  • Newbie
  • *
  • Posts: 6
Re: Posts with multi-megabyte file attachments fail
« Reply #7 on: September 07, 2018, 01:23:32 AM »
I don’t think you understand, still. If you do not update, you can not just walk away, because the forum will stop working soon, since 1.1.x will has not received any updates to keep working on modern versions of php and MySQL.


Seriously.
Upgrade.

I don't mean walk away forever, just for the time being. :-)

Here's my situation: it has taken pretty much all my free time for three weeks to get this thing up and running. At the same time our entire yard (large) is being redone, so the place is full of landscapers and carpenters and arborists and materials delivery people all of whom need guidance of some sort pretty much every day. At the same time I'm about ten days away from a 5 week vacation that's been planned for over a year and we have much to do to finish preparing for that, besides nursing the yard reno. So I really have no more time to spend on this now.

So...today there is a functioning forum, and the issue I'm having affects perhaps 10-15% members. The rest host their music files on third-party services like Soundcloud. If I were to run the upgrader and it fails, well, I have no more time to spend on this now so there would be no forum, affecting 100% of the members. It's not like I'm not taking you people seriously, and your enthusiasm is impressive, but this just can't stay at the top of my list any more for now.

Now, for your issue...
When you moved, Did you use the repair_settings.php tool to correct all of your paths and URLs?

Have you checked the size setting for the maximum attachment size ?

settings.php got quite a lot of manual attention. repair_settings.php didn't appear to do much of anything, although I ran it couple of times early in the process ( with less than complete results) so it may have made some changes I missed not knowing the file until I decided I would have to do manual edits, at which point I learned :). I was assured by the previous admin the repair_settings would fix everything and when it didn't, I looked at the settings file and at the repair script and figured the settings file would be much quicker to learn - thus the manual changes.

I built one swebsite using php about 10+ years ago and have never worked in a Linux environment, so a bit of a learning curve here. :)

All of the paths for ordinary every day stuff work: note that uploading small files isn't a problem. The max attachment size , and all other like sizes are set to 0.

Thanks for replying. All info is good info.

Offline NotYetStravinsky

  • Newbie
  • *
  • Posts: 6
Re: Posts with multi-megabyte file attachments fail
« Reply #8 on: September 07, 2018, 01:26:24 AM »
I have an article on increasing your PHP upload limits at hxxp:www.smfhacks.com/index.php/topic,3498.0.html [nonactive]

Thank you. I had a help session with a GoDaddy tech support person and we increased the max upload size to a gig (silly I know, but trying to rule out the obvious). I don't remember max post size going by though so I'll take a look at that.

Offline Kindred

  • The Mean One
  • Support Specialist
  • SMF Legend
  • *
  • Posts: 58,433
  • Gender: Male
    • Kindred-999 on GitHub
Re: Posts with multi-megabyte file attachments fail
« Reply #9 on: September 07, 2018, 07:22:57 AM »
That’s your problem then.
Over half of the paths and URLs are not stored in settings.php,  it in the database. That’s why you need to use the correct tool.

If the tool was not working, then that demonstrates a much bigger problem with your system.... nd running the tool multiple times just indicates the same thing. You should only have to run it twice. Once to correct the database location and first set of paths nd the second time to correct all of the internal paths and URLs.
Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

Offline NotYetStravinsky

  • Newbie
  • *
  • Posts: 6
Re: Posts with multi-megabyte file attachments fail
« Reply #10 on: September 07, 2018, 03:26:53 PM »
That’s your problem then.
Over half of the paths and URLs are not stored in settings.php,  it in the database. That’s why you need to use the correct tool.

If the tool was not working, then that demonstrates a much bigger problem with your system.... nd running the tool multiple times just indicates the same thing. You should only have to run it twice. Once to correct the database location and first set of paths nd the second time to correct all of the internal paths and URLs.

Thanks for replying. I did change a number of paths stored in the database using the admin tools provided in the forum UI. And again, this problem has only occurred with larger attachments, suggesting that the basic functionality is working correctly.

Update: Because of the sketchy the results I get when running tracert as part of investigating this problem, I asked other forum members to try uploading a large file to see if the operation would succeed for anyone. Only one member responded, but he was able to successfully upload and later access a 7mb file. So I'm outing this down to flaky network connections on my part and that of the member who originally reported the problem. Thanks again to everyone who responded.