Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
'View New Posts" button not working
Avatar
Jimmy Thomson
Australia
Member
Free Members
sp_UserOfflineSmall Offline
Aug 29, 2014 - 8:07 am

The 'view new posts" button isn't working and wnah I hover over it, the message "Javascript:void (0)" appears at the foot of the screen.  The pop-up admin menu for posts is also not working and i can't reply to posts

When I click on "Inspect element" in Chrome, I see this message:

* Uncaught TypeError: Cannot read property 'split' of undefined .................................................www.flat-chat.com.au/wp-content/sp-resources/forum-cache/sp-plugin-scripts-footer.js?ver=448:26

* Uncaught TypeError: undefined is not a function ................................... http://www.flat-chat.com.au/:2860

! Invalid App Id: Must be a number or numeric string representing the application id.

! FB.init has already been called - this could indicate a problem

! Invalid App Id: Must be a number or numeric string representing the application id.

Uncaught ReferenceError: spjOpenEditor is not defined 

Now, I think I may have done something when I ran and anti-malware progam the other night and it "fixed" a lot of files in my system.  

But what is the problem and is it easily fixable?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 29, 2014 - 8:13 am

It's hard to say exactly what the problem is but clearly you have some JavaScript installed - either from your WP theme or from another plugin - that is forcing the jQuery script to stop processing so anything after the conflct just doesn't work.

It might be something as is discussed here - https://simple-press.com/docum.....-conflict/ - but is just as likely to be a bad script that doesn't properly use the WordPress standards. Look at this article and see if the condition on there exists. Otherwise you may have to just briefly try with a standard (default)  WP theme or by deactivating plugins one at a time to try and find the source of the conflict. Hopefully be something simple.

The 'void' status by the way is as it should be.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Jimmy Thomson
Australia
Member
Free Members
sp_UserOfflineSmall Offline
Aug 29, 2014 - 11:11 am

I'm shutting down plugins left right and centre but getting the same error message.

Is it possible to reinstall  SP without losing all my posts and structure?  

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 29, 2014 - 12:40 pm

You can copy the plugin code files back in from a fresh copy. You wont be able to 're-install' as such without losing all of your current data.
But the chances that you have a corruption in an SP file is extremely remote and slim and of there were it is unlikely to cause the symptoms you have described.
You can give me a link to your forum page so I can look at it for you - doesn't mean I can find the culprit but worth looking at...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Jimmy Thomson
Australia
Member
Free Members
sp_UserOfflineSmall Offline
Aug 30, 2014 - 2:29 am

 It definitely seems to be a jQuery issue.  I shut down all the plugins (apart from SP, itself, obviously) and it had the same result.

The error message in the "Inspect Element' window says:

Uncaught TypeError: Cannot read property 'split' of undefined                    sp-plugin-scripts-footer.js?ver=511:4
Uncaught TypeError: undefined is not a function (index):2482 

I attach the problem file as a pdf - maybe you can see something there that can be fixed.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 30, 2014 - 3:35 am

Attachment? And if there WERE an attachment what file are you actually talking about?

I see from the paste that you seem to be caching the javascript into a single file. Generally a good idea but perhaps not so helpful when needing to troubleshoot. I would suggest you turn that off until the problem is sorted (forum admin > options > combine and cache scripts...

And I will ask again for a link to your forum page? It is often much easier to take a look.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Jimmy Thomson
Australia
Member
Free Members
sp_UserOfflineSmall Offline
Aug 30, 2014 - 5:26 am

Well, I thought there was an attachment when it left here because I had to convert a js file into a pdf due to the restrictions on the kind of files we can send. Anyway, I've loaded it again.

The url is http://www.flat-chat.com.au/forum.  Our messages crossed over so I didn't get your original request for it.

I have been using the "Inspect Element" option in Chrome.

I have switched off the js and css  cacheing (didn't even know they were on) but I'm going to reactivate some of the plugins so you can see how it works (or doesn't).

Avatar
Jimmy Thomson
Australia
Member
Free Members
sp_UserOfflineSmall Offline
Aug 30, 2014 - 5:30 am

Well I never!  Switching off the cache's seems to have fixed it.  Is there any harm in just leaving them off or is there an underlying issue that needs to be addressed?

Avatar
Jimmy Thomson
Australia
Member
Free Members
sp_UserOfflineSmall Offline
Aug 30, 2014 - 5:36 am

Spoke too soon.  

I can now see the new posts' headers  when I click on that button but I can't open,  edit or approve them.  And the admin pop-up menu isn't working

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Aug 30, 2014 - 5:58 am

First thing...

Can you go to the forum admin > Options > General Settings

Make sure 'Use auto update' is turned OFF and also make sure you Update the form with the button at the bottom. Does that make any difference?

And if it does not would you be able to add a constant to your wp-config.php file as a temporary measure?

define('SP_SCRIPTS_DEBUG', true);

which might help with the analysis.

And no - leave the script cache turned off until this is resolved...

andy-signature.png
YELLOW
SWORDFISH
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: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626