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
Private Messaging jquery errors?
Avatar
Andrew Mintram
Member
Free Members
sp_UserOfflineSmall Offline
Nov 3, 2012 - 7:52 pm

Hi guys,

Appear to have a problem with PM's now... was using them fine previously but now it seems I can't... disabled all plugins and still don't appear properly... clicking on Inbox loads the screen but the message window doesn't open and it appears to be creating errors in the console (but i don't know what they mean!):

  1. Uncaught ReferenceError: spPmGetThreadMessages is not defined /forum/private-messaging/send/Jems/:294
  2. Uncaught ReferenceError: spPmGetThreadMessages is not defined /forum/private-messaging/send/Jems/:301
  3. Uncaught ReferenceError: spPmExpandAll is not defined /forum/private-messaging/send/Jems/:287
  4. Uncaught ReferenceError: spjToggleLayer is not defined

Any ideas? Thanks in advance.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 3, 2012 - 9:28 pm

so what has changed? things normally dont just stop working... wp update? plugins or themes?

have you checked this: http://codex.simple-press.com/.....-conflict/

a link to your site and we might be able to check for obvious conflicts... try a temp switch to the default wp theme too...

Avatar
Andrew Mintram
Member
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2012 - 2:38 pm

Sorry, forgot to add URL: http://www.passengerfans.co.uk/forum/

Just tried switching back to TwentyEleven and the problem remains.

Recent changes to the site have been mainly css tweaks and a few new plugins, including adding W3 Total Cache and using a CDN, (but the forum pages are excluded from the Cache) but I disabled *all* the plugins and the problem still remained.

I will PM login info if required.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 4, 2012 - 2:42 pm

what are you loading from the CDN? The forum will need to be excluded from that as well.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Andrew Mintram
Member
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2012 - 3:16 pm

The forum is indeed excluded from the CDN, but the CDN is managed through W3 Total Cache, and when I disable the plugin, and therefore disable use of the CDN, it still does not work.

Sorry, there may be something else I have tweaked but I honestly can't remember what, most of my time recently, since we resolved the jquery conflicts for quote/reply with the theme, have been on main content and css. I honestly can't think of any major changes.

Avatar
Andrew Mintram
Member
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2012 - 3:22 pm

I just had a look through all the options and things, and tried deselecting 'Load javascript in footer', which allowed me to click on received PM's and read the thread, but I still can't reply or compose.

Avatar
Andrew Mintram
Member
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2012 - 3:32 pm

Just discovered the following in the error log which has jogged my memory:

04 November 2012

21:21

php file: tpd/vhosts/passengerfans.co.uk/problem-with-post-edit-buttonttpdocs/wp-content/sp-resources/forum-plugins/private-messaging/forms/sp-pm-form-pm.php

line: 118

function: sp_render_add_pm_form

Warning | include_once() [function.include]: Failed opening 'SPPLUPLIBDIRsp-plupload-forms.php' for inclusion (include_path='.:')

04 November 2012

21:21

php file: tpd/vhosts/passengerfans.co.uk/problem-with-post-edit-buttonttpdocs/wp-content/sp-resources/forum-plugins/private-messaging/forms/sp-pm-form-pm.php

line: 118

function: sp_render_add_pm_form

Warning | include_once(SPPLUPLIBDIRsp-plupload-forms.php) [function.include-once]: failed to open stream: No such file or directory

04 November 2012

21:21

php file: tpd/vhosts/passengerfans.co.uk/problem-with-post-edit-buttonttpdocs/wp-content/sp-resources/forum-plugins/private-messaging/forms/sp-pm-form-pm.php

line: 118

function: sp_render_add_pm_form

Notice | Use of undefined constant SPPLUPLIBDIR - assumed 'SPPLUPLIBDIR'

I disabled the 'File Uploader with Plupload' plugin on the forum... I just re-enabled it an everything now works again.

For now, I have left it enabled but removed permissions for individuals to be able to upload (as I decided I did not want this functionality, hence disabling it!) but this would appear to be a bug as I should be able to deactivate it without a problem I would've thought?

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2012 - 3:32 pm

doesnt look like to me that you disable the forum page from ALL types of caching in play...

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpre.....s-plugins/

Minified using disk: basic
Page Caching using disk: enhanced (Requested URI is rejected)
Database Caching using disk: basic
Object Caching 1200/1217 objects using disk: basic
Content Delivery Network via Amazon Web Services: CloudFront: cdn5.passengerfans.co.uk

Served from: http://www.passengerfans.co.uk @ 2012-11-04 21:30:20 -->

page caching is disabled, but its still object caching and minifying...  that will cause problems... especially since we already minify the js... 

can you also disable the forum page from caching for ALL types in use on W3TC??  go to each tab and where you can, tell it to ignore the page...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2012 - 3:34 pm

I will take a look at those messages... it does check for plupload, but perhaps something else is amiss there...

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 4, 2012 - 3:37 pm

ah, does look like a bit of a hole there... it does check for uploader, but if both are active and you are allowing uploads, but then decide to remove the file uploader, the checks dont appear sufficient... an extra check on both having been used and one removed is needed...

will get it fixed up...

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
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