Simple Machines Community Forum

SMF Development => Bug Reports => Fixed or Bogus Bugs => Topic started by: Bigguy on October 29, 2020, 09:43:08 AM

Title: Attachments
Post by: Bigguy on October 29, 2020, 09:43:08 AM
My users are reporting to me that they can not upload attachments. All they get when they try is a block of code in a red box but this does not produce errors in the log files. I can post attachments just fine. Just not my members.
Title: Re: Attachments
Post by: Shambles on October 29, 2020, 09:51:17 AM
Anything like this?

https://www.simplemachines.org/community/index.php?topic=575402.0
Title: Re: Attachments
Post by: Bigguy on October 29, 2020, 11:33:57 AM
Yup, OP is from my forum so maybe he is talking about it. Didn't see that before I posted sorry.
Title: Re: Attachments
Post by: shawnb61 on October 29, 2020, 11:52:29 AM
Not seeing it...

It might help to have that red text...
Title: Re: Attachments
Post by: lurkalot on October 29, 2020, 01:56:44 PM
Quote from: shawnb61 on October 29, 2020, 11:52:29 AM
Not seeing it...

It might help to have that red text...

Does it for me as well on Bigguy's site.  Here's the red text,

Quotetinyportal2.png <!DOCTYPE html> <html lang="en-US"> <head> <meta charset="UTF-8"> <link rel="stylesheet" href="https://www.smfhelper.com/Themes/default/css/index.css?smf21rc3_1603387703"> <link rel="stylesheet" href="https://www.smfhelper.com/Themes/default/css/jquery.custom-scrollbar.css?smf21rc3_1603387703"> <link rel="stylesheet" href="https://www.smfhelper.com/Themes/default/css/jquery.sceditor.css?smf21rc3_1603387703"> <link rel="stylesheet" href="https://www.smfhelper.com/Themes/default/css/hof.css?smf21rc3_1603387703"> <link rel="stylesheet" href="https://www.smfhelper.com/Themes/default/css/responsive.css?smf21rc3_1603387703"> <style> img.avatar { max-width: 100px; max-height: 100px; } .postarea .bbc_img { max-width: 600px; } .postarea .bbc_img { max-height: 800px; } </style> <script> var smf_theme_url = "https://www.smfhelper.com/Themes/default"; var smf_default_theme_url = "https://www.smfhelper.com/Themes/default"; var smf_images_url = "https://www.smfhelper.com/Themes/default/images"; var smf_smileys_url = "https://www.smfhelper.com/Smileys"; var smf_smiley_sets = "fugue,alienine,smfh"; var smf_smiley_sets_default = "fugue"; var smf_scripturl = "https://www.smfhelper.com/index.php"; var smf_iso_case_folding = false; var smf_charset = "UTF-8"; var smf_session_id = "194adec7e027b009e8f83b44a66a2f18"; var smf_session_var = "a3d39bcd4"; var smf_member_id = 3; var ajax_notification_text = 'Loading...'; var help_popup_heading_text = 'A little lost? Let me explain:'; var banned_text = 'Sorry lurkalot, you are banned from using this forum!'; var smf_txt_expand = 'Expand'; var smf_txt_shrink = 'Shrink'; var smf_quote_expand = 100; </script> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js?smf21rc3_1603387703"></script> <script src="https://www.smfhelper.com/Themes/default/scripts/smf_jquery_plugins.js?smf21rc3_1603387703"></script> <script src="https://www.smfhelper.com/Themes/default/scripts/jquery.custom-scrollbar.js?smf21rc3_1603387703"></script> <script src="https://www.smfhelper.com/Themes/default/scripts/script.js?smf21rc3_1603387703"></script> <script src="https://www.smfhelper.com/Themes/default/scripts/theme.js?smf21rc3_1603387703"></script> <script src="https://www.smfhelper.com/Themes/default/scripts/jquery.atwho.min.js?smf21rc3_1603387703" defer></script> <script src="https://www.smfhelper.com/Themes/default/scripts/jquery.caret.min.js?smf21rc3_1603387703" defer></script> <script src="https://www.smfhelper.com/Themes/default/scripts/tinyportal/tinyPortalMentions.js?smf21rc3_1603387703" defer></script> <script src="https://www.smfhelper.com/Themes/default/scripts/alerts.js?smf21rc3_1603387703"></script> <script> var new_alert_title = "SMF Helper"; var alert_timeout = 10000; var smf_you_sure ='Are you sure you want to do this?'; </script> <title>SMF Helper</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta property="og:site_name" content="SMF Helper"> <meta property="og:title" content="SMF Helper"> <meta name="keywords" content="SMF support,modifications,help,themes,tech,computers,downloads,showcase,articles "> <meta property="og:description" content="SMF Helper"> <meta name="description" content="SMF Helper"> <meta name="theme-color" content="#557EA0"> <meta name="robots" content="noindex"> <link rel="help" href="https://www.smfhelper.com/index.php?action=help"> <link rel="contents" href="https://www.smfhelper.com/index.php"> <link rel="search" href="https://www.smfhelper.com/index.php?action=search"> <link rel="alternate" type="application/rss+xml" title="SMF Helper - RSS" href="https://www.smfhelper.com/index.php?action=.xml;type=rss2"> <link rel="alternate" type="application/atom+xml" title="SMF Helper - Atom" href="https://www.smfhelper.com/index.php?action=.xml;type=atom"><meta name="viewport" content="width=device-width, initial-scale=1.0"/><link rel="stylesheet" type="text/css" href="https://www.smfhelper.com/Themes/default/css/tp-style.css?v200" /><link rel="stylesheet" type="text/css" href="https://www.smfhelper.com/Themes/default/css/tp-responsive.css?v200" /><link rel="stylesheet" type="text/css" href="https://www.smfhelper.com/Themes/default/css/tp-custom.css?v200" /> <style type="text/css"> .block_leftcontainer, .block_rightcontainer, .block_topcontainer, .block_uppercontainer, .block_centercontainer, .block_frontcontainer, .block_lowercontainer, .block_bottomcontainer { padding-bottom: 4px; } #tpleftbarHeader { margin-right: 4px; } #tprightbarHeader { margin-left: 4px; } </style> <script type="text/javascript"><!-- // --><![CDATA[ var tpPanels = new Array(); function togglepanel( targetID ) { var pstate = 0; var panel = targetID; var img = "toggle_" + targetID; var ap = 0; if ( document.getElementById && (0 !== panel.length) ) { target = document.getElementById( panel ); if ( target !== null ) { if ( target.style.display == "none" ) { target.style.display = ""; pstate = 1; removeFromArray(targetID, tpPanels); document.cookie="tp_panels=" + tpPanels.join(",") + "; expires=Wednesday, 01-Aug-2040 08:00:00 GMT"; var image = document.getElementById(img); if(image !== null) { image.src = 'https://www.smfhelper.com/Themes/default/images/tinyportal/TPupshrink.png'; } } else { target.style.display = "none"; pstate = 0; tpPanels.push(targetID); document.cookie="tp_panels=" + tpPanels.join(",") + "; expires=Wednesday, 01-Aug-2040 08:00:00 GMT"; var image = document.getElementById(img); if(image !== null) { image.src = 'https://www.smfhelper.com/Themes/default/images/tinyportal/TPupshrink2.png'; } } } } } function removeFromArray(value, array){ for(var x=0;x<array.length;x++){ if(array
  • ==value){ array.splice(x, 1); } } return array; } function inArray(value, array){ for(var x=0;x<array.length;x++){ if(array
  • ==value){ return 1; } } return 0; } // ]]></script> <script type="text/javascript"><!-- // --><![CDATA[ var tp_images_url = "https://www.smfhelper.com/Themes/default/images/tinyportal"; var tp_session_id = "194adec7e027b009e8f83b44a66a2f18"; var tp_session_var = "a3d39bcd4"; var tp_shout_key_press = false; var current_header_smiley = false;var current_header_bbc = false; // ]]></script> <script type="text/javascript" src="https://www.smfhelper.com/Themes/default/scripts/tinyportal/TPShout.js?v200"></script><link rel="stylesheet" type="text/css" href="https://www.smfhelper.com/Themes/default/css/tp-shout.css?fin160" /> <script type="text/javascript"><!-- // --><![CDATA[ $(document).ready(function() { $("#tp_shout").keydown(function (event) { if (event.keyCode == 13) { event.preventDefault(); } }); }); // ]]></script> </head> <body id="firefox" class="action_forum"> <div id="footerfix"> <div id="top_section"> <div class="inner_wrap"> <ul class="floatleft" id="top_info"> <li> <a href="https://www.smfhelper.com/index.php?action=profile" id="profile_menu_top" onclick="return false;"><img src="https://www.smfhelper.com/custom_avatar/avatar_3_1549713327.png" alt="" class="avatar">lurkalot</a> <div id="profile_menu" class="top_menu"></div> </li> <li> <a href="https://www.smfhelper.com/index.php?action=pm" id="pm_menu_top">My Messages</a> <div id="pm_menu" class="top_menu scrollable"></div> </li> <li> <a href="https://www.smfhelper.com/index.php?action=profile;area=showalerts;u=3" id="alerts_menu_top">Alerts</a> <div id="alerts_menu" class="top_menu scrollable"></div> </li> <li id="nojs_logout"> <a href="https://www.smfhelper.com/index.php?action=logout;a3d39bcd4=194adec7e027b009e8f83b44a66a2f18">Logout</a> <script>document.getElementById("nojs_logout").style.display = "none";</script> </li> </ul> <form id="search_form" class="floatright" action="https://www.smfhelper.com/index.php?action=search2" method="post" accept-charset="UTF-8"> <input type="search" name="search" value="">&nbsp; <select name="search_selection"> <option value="all" selected>Entire forum </option> <option value="members">Members </option> </select> <input type="submit" name="search2" value="Search" class="button"> <input type="hidden" name="advanced" value="0"> </form> </div><!-- .inner_wrap --> </div><!-- #top_section --> <div id="header"> <h1 class="forumtitle"> <a id="top" href="https://www.smfhelper.com/index.php"><img src="https://www.smfhelper.com/smfh1.png" alt="SMF Helper"></a> </h1> <div id="siteslogan"><i>Helping you along the way...</i></div> </div> <div id="wrapper"> <div id="upper_section"> <div id="inner_section"> <div id="inner_wrap"> <div class="user"> Oct 29, 2020, 05:54 PM </div> <div class="news"> <h2>News: </h2> <p>Backup those files <span style="color: red;" class="bbc_color"><b>BEFORE</b></span> manually editing them</p> </div> <hr class="clear"> </div> <a class="menu_icon mobile_user_menu"></a> <div id="main_menu"> <div id="mobile_user_menu" class="popup_container"> <div class="popup_window description"> <div class="popup_heading">Mobile Main Menu <a href="javascript:void(0);" class="main_icons hide_popup"></a> </div> <ul class="dropmenu menu_nav"> <li class="button_home"> <a href="https://www.smfhelper.com/index.php"> <span class="main_icons home"></span><span class="textmenu">Home</span> </a> </li> <li class="button_forum"> <a class="active" href="https://www.smfhelper.com/index.php?action=forum"> <span class="main_icons menu_tpforum"></span><span class="textmenu">Forum</span> </a> </li> <li class="button_tpbutton2"> <a href="https://www.smfhelper.com/index.php?cat=2"> <img src="https://www.smfhelper.com/Themes/default/images/tinyportal/arts1.png" alt=""><span class="textmenu">Articles</span> </a> </li> <li class="button_tpbutton1"> <a href="https://www.smfhelper.com/index.php?action=tportal;sa=download;dl"> <img src="https://www.smfhelper.com/Themes/default/images//tinyportal/downl1.png" alt=""><span class="textmenu">Downloads</span> </a> </li> <li class="button_search"> <a href="https://www.smfhelper.com/index.php?action=search"> <span class="main_icons search"></span><span class="textmenu">Search</span> </a> </li> <li class="button_calendar"> <a href="https://www.smfhelper.com/index.php?action=calendar"> <span class="main_icons calendar"></span><span class="textmenu">Calendar</span> </a> </li> <li class="button_gallery"> <a href="https://www.smfhelper.com/index.php?action=gallery"> <img src="https://www.smfhelper.com/Themes/default/images/gallery.png" alt=""><span class="textmenu">Gallery</span> </a> </li> <li class="button_mlist subsections"> <a href="https://www.smfhelper.com/index.php?action=mlist"> <span class="main_icons mlist"></span><span class="textmenu">Members</span> </a> <ul> <li> <a href="https://www.smfhelper.com/index.php?action=mlist"> View the memberlist </a> </li> <li> <a href="https://www.smfhelper.com/index.php?action=mlist;sa=search"> Search for Members </a> </li> </ul> </li> <li class="button_hof"> <a href="https://www.smfhelper.com/index.php?action=hof"> <span class="main_icons corefeatures"></span><span class="textmenu">The Team</span> </a> </li> </ul><!-- .menu_nav --> </div> </div> </div> <div class="navigate_section"> <ul> <li class="unread_links"> <a href="https://www.smfhelper.com/index.php?action=unread" title="Show unread posts since last visit.">Unread Posts</a> <a href="https://www.smfhelper.com/index.php?action=unreadreplies" title="Show new replies to your posts.">Updated Topics</a> </li> <li> <a href="https://www.smfhelper.com/index.php"><span>SMF Helper</span></a> </li> <li class="last"> <span class="dividers"> &#9658; </span> <a href="https://www.smfhelper.com/index.php?action=forum"><span>Forum</span></a> </li> </ul> </div><!-- .navigate_section --> </div><!-- #inner_section --> </div><!-- #upper_section --> <div id="content_section"> <div id="main_content_section"> <div class="nosides tp_responsive"> <div id="mainContainer" style="clear: both;"> <div id="centerContainer"> <div id="tpcontentHeader"> </div><!--tpcontentHeader--> <div id="fatal_error"> <div class="cat_bar"> <h3 class="catbg"> An error has occurred </h3> </div> <div class="windowbg"> <div id="cannot_post_attachment" class="padding"> You don't have permission to post attachments here. </div> </div> </div> <div class="centertext"> <a class="button" href="javascript:document.location=document.referrer">Back</a> </div> </div> <p class="clearthefloat" style="padding:0px;margin:0px;"></p> </div> </div> </div><!-- #main_content_section --> </div><!-- #content_section --> </div><!-- #wrapper --> </div><!-- #footerfix --> <div id="footer"> <div class="inner_wrap"> <ul> <li class="floatright"><a href="https://www.tinyportal.net/docs/" target=_blank>TinyPortal</a> | <a href="https://www.smfhelper.com/index.php?action=help">Help</a> | <a href="https://www.smfhelper.com/index.php?action=agreement">Terms and Rules</a> | <a href="#top_section">Go Up &#9650;</a></li> <li class="copyright"><a href="https://www.smfhelper.com/index.php?action=credits" title="License" target="_blank" rel="noopener">SMF 2.1 RC3 &copy; 2020</a>, <a href="http://www.simplemachines.org" title="Simple Machines" target="_blank" class="new_win">Simple Machines</a><br /><a href="http://www.createaforum.com" target="_blank">Simple Audio Video Embedder</a>, <a target="_blank" href="https://www.tinyportal.net" title="TinyPortal">TinyPortal 2.0.0</a> &copy; <a href="https://www.smfhelper.com/index.php?action=tportal;sa=credits" title="Credits">2005-2020</a></li> </ul> <p>Page created in 0.026 seconds with 19 queries.</p> </div> </div><!-- #footer --> <script> window.addEventListener("DOMContentLoaded", function() { function triggerCron() { $.get('https://www.smfhelper.com' + "/cron.php?ts=1603994055"); } window.setTimeout(triggerCron, 1); var user_menus = new smc_PopupMenu(); user_menus.add("profile", "https://www.smfhelper.com/index.php?action=profile;area=popup"); user_menus.add("alerts", "https://www.smfhelper.com/index.php?action=profile;area=alerts_popup;u=3"); user_menus.add("pm", "https://www.smfhelper.com/index.php?action=pm;sa=popup"); }); </script> </body> </html> 0.2 MB
Title: Re: Attachments
Post by: shawnb61 on October 29, 2020, 02:02:51 PM
Are you both on tinyportal?
Title: Re: Attachments
Post by: lurkalot on October 29, 2020, 02:04:44 PM
Quote from: shawnb61 on October 29, 2020, 02:02:51 PM
Are you both on tinyportal?

Yes that's on Bigguys site which is running TP. 

I don't have that on issue my own sites running the same setup.
Title: Re: Attachments
Post by: shawnb61 on October 29, 2020, 02:09:22 PM
Shambles - was your site on tinyportal?

I couldn't read the other screenshot, but the top looked the same...

Looks like insertion of the logo is doing something...  Might also be theme related?
Title: Re: Attachments
Post by: lurkalot on October 29, 2020, 02:16:24 PM
Quote from: shawnb61 on October 29, 2020, 02:09:22 PM
Shambles - was your site on tinyportal?

I couldn't read the other screenshot, but the top looked the same...

Looks like insertion of the logo is doing something...  Might also be theme related?

Funny you should mention the logo Shawn.  https://www.smfhelper.com/index.php?topic=737.msg5813#msg5813
Title: Re: Attachments
Post by: shawnb61 on October 29, 2020, 03:05:12 PM
Did the problem go away?

Bigguy - what did you do?
Title: Re: Attachments
Post by: Bigguy on October 29, 2020, 06:41:13 PM
The logo was just made wrong that's all. It did honestly look like crap, so I fixed how it looked, no code behind it. Also, I am running the new tp 2.0 not the older one, so that might make a difference, not sure.
Title: Re: Attachments
Post by: lurkalot on October 29, 2020, 06:44:59 PM
Quote from: Bigguy on October 29, 2020, 06:41:13 PM
The logo was just made wrong that's all. It did honestly look like crap, so I fixed how it looked, no code behind it. Also, I am running the new tp 2.0 not the older one, so that might make a difference, not sure.

Sorry Bigguy, I assumed you were having bigger issues with the logo.   If you Un-install TP I'll test the attachments again.  ;)
Title: Re: Attachments
Post by: Bigguy on October 29, 2020, 07:01:35 PM
TP was uninstalled and attachments tested and they still do not work. So something must be up with SMF. Unless it's a different mod I have installed which I can't see that really.
Title: Re: Attachments
Post by: lurkalot on October 29, 2020, 07:04:41 PM
Yep it was exactly the same without TP installed.

Was this the release version of RC3, or a later one from GitHub after the official release?
Title: Re: Attachments
Post by: Bigguy on October 29, 2020, 07:11:48 PM
After the official release. Not sure how long after but it was not the official release that I used. It was after that.
Title: Re: Attachments
Post by: shawnb61 on October 29, 2020, 08:10:44 PM
Does it behave the same on all themes?
Title: Re: Attachments
Post by: Bigguy on October 30, 2020, 06:48:23 AM
I don't have any themes installed. All I did was a bit of css work to change the colors.
Title: Re: Attachments
Post by: Bigguy on October 30, 2020, 09:53:16 PM
I may have figured it out. I need a member to post an attachment.
Title: Re: Attachments
Post by: lurkalot on October 31, 2020, 04:49:03 AM
Quote from: Bigguy on October 30, 2020, 09:53:16 PM
I may have figured it out. I need a member to post an attachment.

Still getting the red text issue Bigguy.  Two of us have now tried since with the same result.
Title: Re: Attachments
Post by: lurkalot on October 31, 2020, 04:50:44 AM
Try attaching a image as a regular member and see if you get the same result.  I'm guessing you don't see it logged in as admin. 
Title: Re: Attachments
Post by: Bigguy on October 31, 2020, 07:45:19 AM
Well damn. Maybe it needs updated again. I will go through my mods and see whats up if anything.
Title: Re: Attachments
Post by: shawnb61 on October 31, 2020, 06:35:10 PM
I still cannot reproduce, even using regular profiles, etc.
Title: Re: Attachments
Post by: lurkalot on October 31, 2020, 06:38:17 PM
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. 
Title: Re: Attachments
Post by: 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.
Title: Re: Attachments
Post by: lurkalot on October 31, 2020, 09:00:21 PM
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.   :(
Title: Re: Attachments
Post by: 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.
Title: Re: Attachments
Post by: shawnb61 on November 01, 2020, 01:21:55 PM
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...
Title: Re: Attachments
Post by: Bigguy on November 01, 2020, 02:11:12 PM
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.
Title: Re: Attachments
Post by: Bigguy on November 02, 2020, 08:55:35 AM
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.
Title: Re: Attachments
Post by: shawnb61 on November 02, 2020, 09:53:27 AM
Is the red text problem gone?
Title: Re: Attachments
Post by: Bigguy on November 02, 2020, 10:55:21 AM
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 ??
Title: Re: Attachments
Post by: Bigguy on November 02, 2020, 10:56:28 AM
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.
Title: Re: Attachments
Post by: 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!';
Title: Re: Attachments
Post by: Bigguy on November 02, 2020, 12:02:20 PM
Account activated. I have to step out for about half hour. I'll be back soon.
Title: Re: Attachments
Post by: shawnb61 on November 02, 2020, 12:07:14 PM
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)
Title: Re: Attachments
Post by: shawnb61 on November 02, 2020, 02:06:42 PM
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
Title: Re: Attachments
Post by: shawnb61 on November 02, 2020, 02:34:47 PM
One more tidbit...  The attached is how I found the permissions error.  A 403 was in the console, I clicked on that link...
Title: Re: Attachments
Post by: Bigguy on November 02, 2020, 03:22:04 PM
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.
Title: Re: Attachments
Post by: shawnb61 on November 02, 2020, 03:40:56 PM
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. 
Title: Re: Attachments
Post by: Bigguy on November 02, 2020, 04:15:04 PM
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.
Title: Re: Attachments
Post by: Bigguy on November 02, 2020, 04:33:52 PM
Changed permissions on the attachments folder to 777 and still nothing. It was working the other day as far as I know. I'm not sure what the hell is going on. Mod sec is not the problem either as far as I know.
Title: Re: Attachments
Post by: shawnb61 on November 03, 2020, 01:56:02 AM
Are you using post moderation?

(Check under Admin | Members | Permissions | Post Moderation...)
Title: Re: Attachments
Post by: landyvlad on November 03, 2020, 02:12:12 AM
Quote from: Bigguy on October 29, 2020, 11:33:57 AM
Yup, OP is from my forum so maybe he is talking about it. Didn't see that before I posted sorry.

Yes indeed, that is what I'm talking about!
Title: Re: Attachments
Post by: Bigguy on November 03, 2020, 06:39:08 AM
No, no post moderation.
Title: Re: Attachments
Post by: Bigguy on November 04, 2020, 08:34:44 AM
This is fixed now. I removed a bit of code. This has been reported on GH.
Title: Re: Attachments
Post by: shawnb61 on November 04, 2020, 03:11:28 PM
Confirmed.  This is a post-RC3 issue.  RC3 is fine.
Title: Re: Attachments
Post by: Bigguy on November 04, 2020, 07:03:33 PM
I updated from GH after RC3 was released...why did I get this bug. Maybe the update didn't take fully.
Title: Re: Attachments
Post by: shawnb61 on November 04, 2020, 07:08:10 PM
That makes sense...   RC3 was fine, & didn't have the issue (which is why Ihad a problem trying to reproduce it...).  That change was up on github after rc3.
Title: Re: Attachments
Post by: Bigguy on November 04, 2020, 07:19:03 PM
Aah, ok. That's cool then. Guess that's life on the bleeding edge, lol.
Title: Re: Attachments
Post by: Bigguy on November 16, 2020, 11:14:24 AM
Now that attachments are working, there is still a bug. It will not count how many people have viewed the attachment. I just posted one on my site and viewed it twice and a member has viewed it once and it still says 0 people have viewed the attachment.