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
Add Reply, New Topic and other buttons not working
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 25, 2016 - 12:37 am

better to start your own topic than add on to another...

more than likely because you are caching the forum page

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

Object Caching 2936/2987 objects using disk

 Served from: brgyginebra.ph @ 2016-02-25 13:33:59 by W3 Total Cache -->

since the forum page is dynamic in nature, you cannot cache it..  you need to tell w3 total cache to ignore the wp page the forum is on for all caching types...

are you not getting a warning on the sp admin panels about w3 total cache??

Avatar
Wendell
Member
sp_UserOfflineSmall Offline
Feb 25, 2016 - 1:11 am

the forum page is not cached. even if i deactivate w3 total cache the buttons still don't work.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 25, 2016 - 8:09 pm

so where is the forum now?  I dont see it...

Avatar
H Finlay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 29, 2016 - 4:25 am

Yellow Swordfish said
Oh this is really bad. Not only are they using a non-standard version of jQuery but they are not even calling in the right way. The WordPress team have been talking about trying to stamp this sort of thing out and just stopping execution when this sort of thing turns up but so far they have not actually done anything about it. I sure wish they would!

So - this is actually load with a script tag. That means you would not even get the latest version when it comes along.

File is 'header.php' in the templates folder. Line 47. Force loads jquery.min.js from the googlapis site. That needs to be removed. Don't lose it though. If things go wrong you may need to put it back until we find out what the problem is.

Then in the file spFunctions.php in the templates folder try adding the following on the line after the opening php tag at the top:

 

add_action( 'wp_enqueue_scripts', 'load_up_jquery' );
function load_up_jquery() {
    wp_enqueue_script( 'jquery' );
}

 

The it is time to see what you have! And hope that the theme authurs have not left anything else nasty sitting around.

 Hi, Author not proving very helpful, but I am nervous about breaking my site. Presumably I can ftp in amended functions.php and header.php and then replace with originals if something doesn't work? I have backed up the site as a first step. 

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 29, 2016 - 4:39 am

Absolutely. If you make a local copy of your functions.php and header.php and things go wrong, putting them back via ftp will restore things to how they were before.

Avatar
H Finlay
Member
Free Members
sp_UserOfflineSmall Offline
Mar 4, 2016 - 7:14 am

Hi there,

Your suggested code fixes seem to have done the trick! Everything works, and there doesn't seem to be an other stuff lying around to mess it up. 

Thanks for your help!

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Mar 4, 2016 - 7:27 am

Great news. Thanks for the update.

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: 619
Members: 17361
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625