Simple Machines Community Forum

SMF Support => SMF 2.0.x Support => Topic started by: johnmck6 on June 06, 2014, 01:58:20 PM

Title: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 06, 2014, 01:58:20 PM
I searched all over for this, but it seems to be my own special problem ;)

When I type a reply, then hit 'preview' everything works fine, unless I've used an apostrophe (not a smart quote, just a regular apostrophe.) If I use the apostrophe, the preview never loads, it just says 'fetching preview'.  If I hit a menu item, often it will then show the preview that it was fetching. I can hit the post key and it works fine.

When composing a private message, the same behavior happens, though it doesn't show the 'fetching preview' message, it just sits there.

I have removed all mods that I had installed, then tested, then reinstalled the few I need (anti spam stuff.)

This behavior persists on different browsers, and platforms (mac os X, windows)

I'm running SMF 2.07, my forum is here:  mixoff.org

I've run the little convert database to UTF-8 utility with no effect, and have english utf-8 selected as my default language.

Also, this behavior persists with other themes selected.

Please let me know if I can provide more info, this is my first post, though I've been running the forum successfully for a few years now. Great software!

Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 06, 2014, 02:00:10 PM
Does it do so here?
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 06, 2014, 03:13:07 PM
No, this forum works fine. My users are reporting the same behavior, so it's not anything on my end, browser or cookie wise, etc.
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: kat on June 06, 2014, 04:48:14 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSMF%2Fmods.gif&hash=98c805ce05ae4828b298c1ec7d7aaac7)
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Illori on June 06, 2014, 04:50:06 PM
http://wiki.simplemachines.org/smf/Why_do_I_have_partially_blank_or_missing_text_in_posts
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 06, 2014, 05:09:27 PM
http://wiki.simplemachines.org/smf/Why_do_I_have_partially_blank_or_missing_text_in_posts

This happens when typing directly into form, not pasting. Also, the forum has always been utf-8.

Thanks
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 06, 2014, 05:10:39 PM
(https://www.simplemachines.org/community/proxy.php?request=http%3A%2F%2Fwww.katzy.dsl.pipex.com%2FSMF%2Fmods.gif&hash=98c805ce05ae4828b298c1ec7d7aaac7)

I'll list them when I get a chance, though I tried uninstalling all if them with no effect.
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 06, 2014, 05:13:43 PM
Anything in the forum or system error logs? Browser reporting any JavaScript errors?
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 06, 2014, 06:37:26 PM
Browser doesn't report any errors, but in Firefox's console, it says "Use of getUserData() or setUserData() is deprecated.  Use WeakMap or element.dataset instead."

I'd be surprised if this was the issue, as preview works on other SMF forums.

I'm thinking this a javascript issue, of some sort.

Here's the list of mods:
1.    Stop Forum Spam    0.8    [ Uninstall ] [ List Files ] [ Delete ]
2.    SMF 2.0.7 Update    1.0    [ Uninstall ] [ List Files ] [ Delete ]
3.    Tapatalk SMF 2.0 RC5/Final Plugin    3.9.0    [ Install Mod ] [ List Files ] [ Delete ]
4.    Anti Bot: Are You Human/Bot?    3.0    [ Uninstall ] [ List Files ] [ Delete ]
5.    SMF 1.1.19 / 2.0.6 Update    1.0    [ List Files ] [ Delete ]
6.    SMF 2.0.5 Update    1.0    [ List Files ] [ Delete ]
7.    Global Headers Footers    2.0    [ Uninstall ] [ List Files ] [ Delete ]


I also added a soundcloud BBCode and the link to unread posts manually. Neither had caused any issues that I was aware of previously.

In the Error log, I see this error over and over:

8: Undefined index: max_signatureLength

In file /Themes/default/languages/Profile.english.php (eval?)
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 06, 2014, 06:43:46 PM
Hmmm... interesting. Something is very weird here.

Any chance you could PM me a link to your site and a test account so I can see what's going on?
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 06, 2014, 07:00:56 PM
OK, so I've taken a look and I'm genuinely confused as to what's going on here, I have never seen this before.

Definitely need to look at the logs to see what's going on at this point, because when I'm looking at the network logs, no response is being sent to the client. It's not like it's sending something invalid back, it's flat out not going anywhere. Definitely need to get the server log on this one, because it sounds like something isn't getting to SMF for some reason.

Ask your host if you can turn off mod_security, also.
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 06, 2014, 07:34:04 PM

OK, when I click on a menu item (admin, in this case) it finishes the preview. The Firefox console shows this error for about a second, then moves on: TypeError: XMLDoc.getElementsByTagName is not a function



Here's the server error log (I'll ask about mod_security, though I recall asking them to turn it off in the past and they refused):

[Fri Jun 06 19:21:01 2014] [error] [client 157.55.32.57] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 19:21:01 2014] [error] [client 157.55.32.57] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 19:18:59 2014] [error] [client 146.0.74.206] File does not exist: /home/giloh/jpmckay.com/404.shtml
[Fri Jun 06 19:18:59 2014] [error] [client 146.0.74.206] File does not exist: /home/giloh/jpmckay.com/wp-login.php
[Fri Jun 06 19:09:20 2014] [error] [client 157.55.35.106] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 19:09:20 2014] [error] [client 157.55.35.106] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 19:08:45 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc;start=20
[Fri Jun 06 19:08:45 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc;start=20
[Fri Jun 06 19:07:19 2014] [error] [client 157.55.32.89] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 19:07:19 2014] [error] [client 157.55.32.89] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 19:06:41 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc;start=10
[Fri Jun 06 19:06:41 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc;start=10
[Fri Jun 06 19:05:54 2014] [error] [client 157.55.35.93] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 19:05:54 2014] [error] [client 157.55.35.93] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 19:05:41 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc
[Fri Jun 06 19:05:41 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc
[Fri Jun 06 19:04:24 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 19:04:24 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/public
[Fri Jun 06 19:02:12 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig
[Fri Jun 06 19:02:12 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig
[Fri Jun 06 19:00:36 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig
[Fri Jun 06 19:00:36 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig
[Fri Jun 06 18:59:30 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig
[Fri Jun 06 18:59:30 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig
[Fri Jun 06 18:55:59 2014] [error] [client 54.84.198.40] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:55:59 2014] [error] [client 54.84.198.40] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 18:55:47 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig
[Fri Jun 06 18:55:47 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig
[Fri Jun 06 18:55:03 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:55:03 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/path
[Fri Jun 06 18:54:33 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig;eb767a842cf=6c6779f6e4ebc91fd98e5c4eba83772e
[Fri Jun 06 18:54:33 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=featuresettings;sa=sig;eb767a842cf=6c6779f6e4ebc91fd98e5c4eba83772e
[Fri Jun 06 18:53:54 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=featuresettings
[Fri Jun 06 18:53:54 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=featuresettings
[Fri Jun 06 18:53:16 2014] [error] [client 157.55.32.110] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:53:16 2014] [error] [client 157.55.32.110] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 18:46:28 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=permissions;pid=0
[Fri Jun 06 18:46:28 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=permissions;pid=0
[Fri Jun 06 18:44:50 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=permissions;sa=modify;group=0
[Fri Jun 06 18:44:50 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=permissions;sa=modify;group=0
[Fri Jun 06 18:44:16 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=permissions;sa=index;ebe57c9ca3=a0d5f67a30ed8c5a488bc8d9f2aa9409
[Fri Jun 06 18:44:16 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=permissions;sa=index;ebe57c9ca3=a0d5f67a30ed8c5a488bc8d9f2aa9409
[Fri Jun 06 18:43:47 2014] [error] [client 83.143.133.11] File does not exist: /home/giloh/public_html/mixoff.org/403.shtml
[Fri Jun 06 18:43:02 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=corefeatures;ebe57c9ca3=a0d5f67a30ed8c5a488bc8d9f2aa9409
[Fri Jun 06 18:43:02 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=corefeatures;ebe57c9ca3=a0d5f67a30ed8c5a488bc8d9f2aa9409
[Fri Jun 06 18:42:36 2014] [error] [client 157.55.35.106] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:42:36 2014] [error] [client 157.55.35.106] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 18:42:09 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=regcenter;sa=settings;ebe57c9ca3=a0d5f67a30ed8c5a488bc8d9f2aa9409
[Fri Jun 06 18:42:09 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=regcenter;sa=settings;ebe57c9ca3=a0d5f67a30ed8c5a488bc8d9f2aa9409
[Fri Jun 06 18:38:16 2014] [error] [client 65.55.24.246] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:38:16 2014] [error] [client 65.55.24.246] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 18:36:41 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc;start=10
[Fri Jun 06 18:36:41 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc;start=10
[Fri Jun 06 18:35:02 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc
[Fri Jun 06 18:35:02 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=logs;sa=errorlog;desc
[Fri Jun 06 18:31:54 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=packages;sa=browse
[Fri Jun 06 18:31:54 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=packages;sa=browse
[Fri Jun 06 18:31:13 2014] [error] [client 24.251.188.159] File does not exist: /home/giloh/public_html/mixoff.org/500.shtml, referer: http://mixoff.org/index.php?action=admin;area=packages
[Fri Jun 06 18:31:13 2014] [error] [client 24.251.188.159] SoftException in Application.cpp:261: File "/home/giloh/public_html/mixoff.org/Themes/minimal_2/images/admin/index.php" is writeable by group, referer: http://mixoff.org/index.php?action=admin;area=packages
[Fri Jun 06 18:28:57 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:28:57 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/fckeditor
[Fri Jun 06 18:28:38 2014] [error] [client 146.0.73.156] File does not exist: /home/giloh/jpmckay.com/404.shtml
[Fri Jun 06 18:28:38 2014] [error] [client 146.0.73.156] File does not exist: /home/giloh/jpmckay.com/wp-login.php
[Fri Jun 06 18:24:35 2014] [error] [client 157.55.35.100] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:24:35 2014] [error] [client 157.55.35.100] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 18:18:10 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:18:10 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/admin
[Fri Jun 06 18:12:15 2014] [error] [client 157.55.32.110] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:12:15 2014] [error] [client 157.55.32.110] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
[Fri Jun 06 18:09:46 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:09:46 2014] [error] [client 27.150.196.84] File does not exist: /home/giloh/public_html/mixoff.org/webeditor
[Fri Jun 06 18:06:13 2014] [error] [client 217.69.135.247] File does not exist: /home/giloh/public_html/mixoff.org/404.shtml
[Fri Jun 06 18:06:13 2014] [error] [client 217.69.135.247] File does not exist: /home/giloh/public_html/mixoff.org/robots.txt
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 06, 2014, 07:39:21 PM
Yeah, it's giving you that error because it's given up and called the 'what to do when the response comes back' routine, only without having any data. Unfortunately not a guide here :/

Also, nothing of relevance in the logs, which is interesting. Thought I would have seen *something* relevant. But yeah, turning off mod_security even temporarily would help to nail down things. If they're not willing to turn it off, that's not a good sign and usually means they got 'creative' in the rules put in, which is usually bad.
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 06, 2014, 11:31:43 PM
OK, They turned off mod_security for a few minutes, no effect that I could see.

I'm thinking I may just reinstall SMF and then reinstall my mods and themes. There must be something that went haywire in some file somewhere, but trying to sort if out seems pretty daunting.
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 07, 2014, 12:12:36 AM
Next step, I deleted the Sources directory and the Themes directory, and reuploaded from a fresh install. No luck the problem persists.

Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 07, 2014, 12:16:05 AM
That strongly suggests it's not a problem in SMF... don't know what to suggest really.
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 07, 2014, 12:50:04 AM
Weirdest thing. I restored everything back to my backup, after trying everything I could think of.

I'll have to think on it. I looked at php.ini thinking maybe it was something in there, but didn't see anything.

Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Ninja ZX-10RR on June 07, 2014, 02:38:20 AM
don't know what to suggest really.
This is the scariest thing I have ever read and will ever read in this forum then  :o :-X
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 07, 2014, 11:16:19 AM
OK, I installed a brand new forum on another domain I own, that's part of the same hosting account. The behavior in this new forum is the same.

So it has to be something on my hosting company's side, I think.

The new forum is at jpmckay.com, if you want to verify.

I'll post back with the solution if there is one!
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 07, 2014, 11:29:09 AM
Definitely smells like mod_security being an issue.
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 07, 2014, 11:46:32 AM
I emailed them a detailed description of the issue, hopefully they can figure it out.

If this helps, I created a phpversion file:

http://www.jpmckay.com/phpversion.php

(I'm no expert at this stuff, just googled how to find out the version...)
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 07, 2014, 11:54:27 AM
Well, I already knew it was PHP 5.3.28 since the server admits as much quite happily (as is standard for PHP), but unfortunately this isn't a PHP configurable thing, this sounds like an issue with mod_security under the hood which is an Apache module (and the server admits it's running Apache)
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 07, 2014, 12:48:28 PM
Waiting for a reply from them.

Interestingly, I noticed a new quirk.

If I type a reply without any apostrophes, then preview it, it previews fine. Then, sometimes, if I go back and insert an apostrophe into that reply, it will preview fine. But extending the reply by adding a letter at the end makes it no longer preview.

Weirdness

Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 07, 2014, 12:50:59 PM
That definitely sounds weird :-/
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 07, 2014, 10:13:58 PM
OK, well it's not very satisfying but the problem is resolved.

The solution was to move my account to another server, in another data center, but still owned by the same hosting company. The guy from support was very helpful, and we tried about a million things. In the end, though, it was just a hunch I had that moving to another server would solve it, and it did, for now.

Thanks for the help, I learned a lot!
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Ninja ZX-10RR on June 07, 2014, 11:45:08 PM
I don't know what you think arantor but to me they moved it to a server with mod_security disabled and maybe different settings. What do you think? I was following this topic but no way I could answer better than you so I was just shutting up. But then? Mod_security off and there it goes? It sounds so weird as regards the relative behaviour though...
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Arantor on June 07, 2014, 11:47:54 PM
I think you've nailed it, honestly. Since the software didn't change between server moves, and neither did the browser, the only thing that's different is the server.

Which means it's almost certainly something funky in the configuration - and mod_security is by far the usual culprit, though by no means the only one.
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Ninja ZX-10RR on June 07, 2014, 11:49:22 PM
Copy that thank you as always  :D
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: johnmck6 on June 08, 2014, 12:11:45 AM
They said they turned off mod_security and tried various things, but to no avail. The weird thing was that he couldn't replicate the behavior on his end. When I finally got him to install another instance of SMF into a test account (rather than my account) and it worked fine, he agreed that something was funky, but he couldn't find it. Moving to another server was just a hunch.

I'm sure it had to do with a configuration somewhere, but he never did isolate it. We worked on it via chat for about 3 hours.
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Ninja ZX-10RR on June 08, 2014, 12:46:50 AM
They said they turned off mod_security and tried various things, but to no avail. The weird thing was that he couldn't replicate the behavior on his end. When I finally got him to install another instance of SMF into a test account (rather than my account) and it worked fine, he agreed that something was funky, but he couldn't find it. Moving to another server was just a hunch.

I'm sure it had to do with a configuration somewhere, but he never did isolate it. We worked on it via chat for about 3 hours.
My face reading this -->  :o well ok... At least we are glad you sorted that very weird thing out...
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: kat on June 08, 2014, 05:16:33 AM
Sounds like your host is a good one. Not too often that we can say that. :)
Title: Re: Preview hangs if user types an apostrophe in their message...
Post by: Ninja ZX-10RR on June 08, 2014, 02:42:25 PM
Sounds like your host is a good one. Not too often that we can say that. :)
Indeed. Tell us your host john, I believe they definitely need a good feedback for this.