News:

Wondering if this will always be free?  See why free is better.

Main Menu

Attachments

Started by Bigguy, October 29, 2020, 09:43:08 AM

Previous topic - Next topic

Bigguy

Well damn. Maybe it needs updated again. I will go through my mods and see whats up if anything.

shawnb61

I still cannot reproduce, even using regular profiles, etc.
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

lurkalot

Quote from: shawnb61 on October 31, 2020, 06:35:10 PM
I still cannot reproduce, even using regular profiles, etc.

Bigguy's site is the only one I've seen with the issue. 

Bigguy

I uninstalled the gallery mod. That is the only mod that was installed that you could upload to besides SMF. So maybe it was that. I have not tested as I deleted my test user.

lurkalot

Quote from: Bigguy on October 31, 2020, 07:27:19 PM
I uninstalled the gallery mod. That is the only mod that was installed that you could upload to besides SMF. So maybe it was that. I have not tested as I deleted my test user.

Bigguy, problem is still there unfortunately.   :(

Bigguy

Ok, well the only other edits I did was to color in the css so I will re-install when I get home tomorrow.

shawnb61

Quote from: Bigguy on October 31, 2020, 11:02:11 PM
Ok, well the only other edits I did was to color in the css so I will re-install when I get home tomorrow.

Are you sure there were no template changes?  Especially around Display.template.php?  I would compare that to the vanilla version...
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Bigguy

No changes other than what mods did. I only have two installed right now. Tp, which was tested by uninstalling and trying attachments, which still did not work. The other is the updated version of Simple Audio Video imbedder that I just installed today.

Bigguy

I just updated the forum from GH now. I created a test user so I could test out the attachments as a regular user. I have two screenshots. Both are of the posts I tried. admin.png is me as an admin typing a post. smfhtest.png is of the new test user. My question is this:
Why does the text in the post look different from the admin shot to the member shot. It may have something to do with attachments but I am not sure. It's really weird.

shawnb61

Is the red text problem gone?
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Bigguy

No it's not. I just thought it may have something to do with why the text in those 2 post boxes is different. It should not be different like that between Admin and members should it ??

Bigguy

Also I noticed a line in that text saying that smfhtest (my test user) was banned from the forum, which he is not as it is just a new user I created.

Bigguy

It also says it in this thread in the post that Lurkalot posted:

'Sorry lurkalot, you are banned from using this forum!';

Bigguy

Account activated. I have to step out for about half hour. I'll be back soon.

shawnb61

Quote from: Bigguy on November 02, 2020, 10:57:51 AM
It also says it in this thread in the post that Lurkalot posted:

'Sorry lurkalot, you are banned from using this forum!';

That is a dump of what appears to be multiple .js scripts that were for some reason not loaded properly.  Instead of being passed to your browser for execution, they ended up displayed as html content...  Another clue a template is broken, in this instance, my guess is a missing script tag somehow.

If you see that error in earnest, it should be accompanied with an http500 message somewhere in your apache log...
(ref: https://github.com/SimpleMachines/SMF2.1/blob/415d16f7172a31072bac466a2e20d11f149c8322/Themes/default/scripts/script.js#L345)
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

shawnb61

I still cannot duplicate on my site.  But I did find a few things out...

I suspect there is a permissions issue of some sort.  The attached is the message it is trying to display.

Dropzone (the 3rd party open source we use to make uploading attachments easier), instead of displaying the error, is coughing up the html...  Other sites have experienced this before:
https://stackoverflow.com/questions/39761736/dropzone-image-upload-error-display-how-to-remove-error

We did update the min version of jquery recently, used by dropzone...  Worth making sure we don't have a jquery issue here. 

So... 
- Please double-check all SMF permissions.
- Double-check the attachment folder setting, & attachment folder OS-level permissions.
- Do you have a custom jquery library specified?  Under Features & Options | General? 

If you find anything, please share...

I logged this up on GitHub, to make sure we look into Dropzone error reporting:
https://github.com/SimpleMachines/SMF2.1/issues/6328
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

shawnb61

One more tidbit...  The attached is how I found the permissions error.  A 403 was in the console, I clicked on that link...
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Bigguy

I will check permissions on SMF and in cpanel. No, I did not have a custom jquery library specified but will try that as well. I shoulda went to the console, damn it, lol. I'll share anything I find, thank you sir.

shawnb61

It's also interesting that that url gets a 403 when invoked from dz/js but not when you type it in the browser url bar. 

It might also be worth it to talk with your host about mod_sec rules that may have been enabled. 
Address the process rather than the outcome.  Then, the outcome becomes more likely.   - Fripp

Bigguy

I re-uploaded the Sources and Themes folder and changed the jquery library. Still no change. I will check permissions now. I run this server so there is no host really other than NameCheap.

Advertisement: