News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Preview hangs if user types an apostrophe in their message...

Started by johnmck6, June 06, 2014, 01:58:20 PM

Previous topic - Next topic

johnmck6

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 [nofollow]

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!


Arantor


johnmck6

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.




johnmck6

Quote from: K@ on June 06, 2014, 04:48:14 PM


I'll list them when I get a chance, though I tried uninstalling all if them with no effect.

Arantor

Anything in the forum or system error logs? Browser reporting any JavaScript errors?

johnmck6

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?)

Arantor

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?

Arantor

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.

johnmck6


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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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 [nofollow]
[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

Arantor

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.

johnmck6

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.

johnmck6

Next step, I deleted the Sources directory and the Themes directory, and reuploaded from a fresh install. No luck the problem persists.


Arantor

That strongly suggests it's not a problem in SMF... don't know what to suggest really.

johnmck6

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.


Ninja ZX-10RR

Quote from: Arantor on June 07, 2014, 12:16:05 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
Quote from: BeastMode topic=525177.msg3720020#msg3720020
It's so powerful that on this post and even in the two PMs you sent me,you still answered my question very quickly and you're apologizing for the delay. You're the #1 support I've probably ever encountered man, so much respect for that. Thank you, and get better soon.

I'll keep this in my siggy for a while just to remind me that someone appreciated what I did while others didn't.

♥ Jess ♥

STOP EDITING MY PROFILE

johnmck6

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 [nofollow], if you want to verify.

I'll post back with the solution if there is one!

Arantor


Advertisement: