Support Forum

Problems with Private Message System v 1.0.3 (SP 5.0.0 Build: 7534)

SP sptab
sptab
Member

I am having problems since the upgrade to latest Private Message System v 1.0.3 plugin on SP 5.0.0 Build 7534.

The PM message list on the left side does not bring message content when clicking on any message.

Compose button bring the compose fields, but the recipient name completion in Select from Members does not and the message does not seem to be sent.

 

Any idea to fix this ?

 

Thank you.

22 Answers

New Answer

MP Mr Papa
Mr Papa
Member

I assume you have cleared your browser cache and retried? if not, please try…

then with firefox and firebug, go to your inbox with the console open…  and when you click on a thread, see what is reported in the console (or before if errors after loading inbox)…  and report it back here…

sounds like a js issue…

CO CoMPa
CoMPa
Member

Same here .. below are the errors (varnish wiped, local caches destroyed, cookies dealt with) – can only show these two as composing is out of the question at all

Console gives onLoad errors:

/forum/private-messaging/send/admin/:786
Uncaught ReferenceError: spPmGetThreadMessages is not defined

On clicking a thread:

Uncaught ReferenceError: spPmGetThreadMessages is not defined /forum/private-messaging/send/admin/:276

  1. (anonymous function)/forum/private-messaging/send/admin/:276
  2. onclick/forum/private-messaging/send/admin/:277
MP Mr Papa
Mr Papa
Member

can one of you two please provide me a temp user account on your system to investigate? if workable, please pm the details of the account…

MP Mr Papa
Mr Papa
Member

received. most odd, but the forum pm js is not getting loaded. are you using the sp syntax highlighting plugin? its not required, but perhaps the dependencies are breaking down…

so first check, can you temp enable that plugin and see if it clears up?

CO CoMPa
CoMPa
Member

Insta-fix 🙂

Also auto-completion of names et all is back in action!

 

(You can still check, account still open)

 

And a very big thank you and merry x-mas to the developers/support!

MP Mr Papa
Mr Papa
Member

eh, was afraid of that… made an error in the script dependencies…  can you turn it back off and try a more permanent fix for me?

in the private message plugin, folder private-messaging/library/sp-pm-components.php, around line 280, can you change

        wp_enqueue_script('sp-pm', PMSCRIPT.'sp-pm.js', array('jquery', 'jquery-ui-autocomplete', 'sp-syntax', 'sp-syntax-cache'), false, $footer);

to

        wp_enqueue_script('sp-syntax');
        wp_enqueue_script('sp-syntax-cache');
        wp_enqueue_script('sp-pm', PMSCRIPT.'sp-pm.js', array('jquery', 'jquery-ui-autocomplete'), false, $footer);

and see if that solves it?  if so, will push out an update to the plugin…

CO CoMPa
CoMPa
Member

Turned syntax highlighting off

Tested PMs – broken as expected

Applied the new lines as indicated

Worked again (both viewing and composing)

 

Removed the syntax highlighting plugin – tried again – still functional (although i could not reset varnish this time, so I hope it now works truly without the highlighting plugin installed)

 

Is that sufficient?

MP Mr Papa
Mr Papa
Member

varnish is a cache?

it works fine now with sytnax highlighting in my tests… just wanted a second confirmation… thanks!

will push out an update to the pm plugin…

CO CoMPa
CoMPa
Member

Varnish as in http://varnish-cache.org/ … just restarted that as well to be extremely sure … still works!

MP Mr Papa
Mr Papa
Member

okay. thanks for the heads up and double check!

MP Mr Papa
Mr Papa
Member

so its an object cache?  ala eacclerator and apc?  and works with wp and sp?

CO CoMPa
CoMPa
Member

It’s a reverse (caching) proxy so it’s more like squid, i’m using APC already and even have W3TC in place within WP.

As both WP and (therefor?) SP use a lot of cookies varnish won’t do much to them thinking it can’t cache such objects, but it will do miracles for stylesheets and images and such (but you will need to purge when updating obviously).

It’s not for the faint of hearth though but seems to work reasonably for a couple of sites we run – although it needs per-site (and sometimes per package like drupal and wp) configuration to be fully optimized.

When you visited the site Varnish->Apache->PHP->APC->Wordpress->W3TC->SP where all doing there best to work together 🙂

MP Mr Papa
Mr Papa
Member

yeah, got it – thanks. just looked at the docs wink