Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
plugins-topic
Admin pages not loading after Comment Preview plugin installed
Avatar
hellboy1975
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2012 - 10:47 pm

Having an unusual problem at the moment. This morning all was working well until I started installing a few plugins.  First off I activated the TinyMCE plugin, which seems to work fine (and continues to do so).

A short time afterwards I activated the Comment Preview plugin.  I thought I'd give it a try, so jumped into the forum and created a reply, then clicked the preview button.  Nothing happened except for the loading gif appearing on the screen.  

I decided I'd jump into the forum administration screen on the WP dashboard, and started noticing that panels loaded via AJAX weren't loading - a similar issue to the comment preview with the loading gif appearing on the screen but never completing.

I decided to have a further look using the inspector Google Chrome, and noticed that the AJAX call to /index.php?sp_ahah=forums-loader was returning a 500 Internal Server Error.  Further inspection showed that the response did actually contain the expected html.

Not sure if this is the Plugin that caused this (it's since been removed, but that didn't fix the problem) or something else.

Any suggestions?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2012 - 11:41 pm

comment preview?  is that a wp plugin?

we normally see 500 server errors on ajax responses when the file permissions are not correct...  so if you could verify that wp-content, plugins and simple-press directories are 0755 and the php files within simple press are 0644... depending on flavor of php could be slightly different but the key is not too restrictive and not 0777 which ajax has some problems with...

the other thing that can cause ajax some issues is mod_security... it has more false positive than true positives... are you running mod_security?

are your ajax issues on front end and admin? sorry, not sure what you were saying...

do you have link to your site so we can check for any other obvious js conflicts?

Avatar
hellboy1975
Member
Free Members
sp_UserOfflineSmall Offline
Dec 19, 2012 - 11:57 pm

Nope, the Post Preview plugin for the forum.  I don't really think it's the plugin, just seemed to be a coincidence the problem happened at the same time.

I'll try and explain the symptoms a little more clearly:

  1. Enter the Wordpress Dashboard
  2. Click on the Forums item in the left menu
  3. Forums page appears fine, shows the Manage Groups and Forums page
  4. Click on Edit Group or Edit Forum on any of the items and the loading gif appears
  5. However nothing actually happens
  6. Check the Network tab in Google Chrome Dev tools and can see an AJAX call has taken place /index.php?sp_ahah=forums-loader but the response code is internal error 500, despite the actual response looking to be correct

Site was working fine up until I installed the Post Preview plugin, but as I seaid I believe that might be just a coincidence.  Will look into permissions now, everything should be setup as you've directed.

Link is http://www.fourtheye.net/f/

Avatar
hellboy1975
Member
Free Members
sp_UserOfflineSmall Offline
Dec 20, 2012 - 12:10 am

mod_security is installed, however disabling that made no difference to the problem.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 20, 2012 - 12:18 am

the post preview plugin does not even load in the admin... weird... so probably not related...

but I can say base don the link provided you have some plugins or theme not following the wp api and standards... they are loading they own versions of jquery and jquery ui which could cause problems on the front end...

theme and plugin authors REALLY need to stop loading external libs like that when wp provides their own... no good reason to load external especially given that other theme and plugin others expect the wp versions... read more: http://codex.simple-press.com/.....-conflict/

your user messages plugin is also loading its own version of jquery autocomplete

this could also potentially conflict with the wp provided jquery autocomplete version... its much better to use the wp provided ones... cannot tell for sure, but it might be the user messages plugin also incorrectly loading the jquery and jquery ui...

or the theme... but it seems to be a twenty twelve child theme or derivative so unless it got messed up, it shouldnt be the one loading those js incorrectly...

but again, that's front end... if problems are on admin side, not likely related...

Avatar
hellboy1975
Member
Free Members
sp_UserOfflineSmall Offline
Dec 20, 2012 - 12:25 am

Ok, seem to have solved the problem for now, though to be honest I'm not sure why this has fixed it.

Anyway, I've been using a Wordpress plugin called Widget Logic for some time on the blog.  It's always worked fine, even after the forum was installed yesterday.  However upon disabling that plugin (it was creating a whole bunch of lines in the error log) the AJAX inside the forum administration started working straight away.

And the Post Preview now works fine as well...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 20, 2012 - 8:29 am

good news - sort of... not sure why it would be causing issues... is it current and up to date with wp 3.5?

Avatar
hellboy1975
Member
Free Members
sp_UserOfflineSmall Offline
Dec 20, 2012 - 10:33 pm

Yep, the Widget Logic plug was up to date, and WP is at 3.5

Anyway, all good for now.  Thanks for the help.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Dec 20, 2012 - 10:43 pm

glad we could help!

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625