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
H Finlay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2016 - 6:10 am

Hi, Most buttons on site are not working - I believe it is a clash with the WP theme I am using, but don't know where the error lies. Any help here?

There are also the following errors in the Console:

Uncaught TypeError: a.widget is not a function
Uncaught TypeError: jspf(...).msDropDown is not a function

http://growgreatfruitprogram.com/forum/

Thx.

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 23, 2016 - 6:30 am

The first problem is indeed that your WordPress theme (and I am 99% sure it is the theme) IS loading a non-standard version of the jQuery Javascript library from the google CDN. Why they do this is beyond me when it can cause so many problems for well-behaved plugins that adhere to WordPress standards and the WP API.

To make it worse it is also loading a version that will disallow users of IE version 8 and below to make use of your site. Bear in mind that while these may not be great browsers there are still a large number of people using them!

There may - or may not - be another issue lurking underneath but this one is enough to cause the errors and should be fixed up first.

Personally, I would be asking the theme authors to correct this as they really should conform to standards,. If this is not possible then it is usually easy to fix but it does mean editing code and that code has to be found. 

Assuming, of course, that there is not an option within the Wp theme custom settings to NOT load the library from Google. Some have done that bless them!

 

 

andy-signature.png
YELLOW
SWORDFISH
Avatar
H Finlay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2016 - 6:40 am

Thanks, I will pass this on to theme author to fix, and see if this the cause.

Avatar
Ike
Sawtry, UK
Member
Free Members
sp_UserOfflineSmall Offline
Feb 23, 2016 - 9:26 am

Fingers crossed they can work something out, let us know how you get on!

Avatar
H Finlay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2016 - 4:55 am

Hmm, looks like I'm on my own with this...

So, firstly what code should I be looking for, and how does it need to change.

TIA

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 24, 2016 - 5:17 am

I will send you a private message...

andy-signature.png
YELLOW
SWORDFISH
Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 24, 2016 - 9:58 am

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
H Finlay
Member
Free Members
sp_UserOfflineSmall Offline
Feb 24, 2016 - 4:26 pm

Hi, thanks for your reply.

First instruction is Ok, but do not see the file "spFunctions.php in the templates folder ".

Cheers, Hugh >

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 24, 2016 - 4:38 pm

Whoops! Sorry. Wasn't thinking, That's just functions,php

andy-signature.png
YELLOW
SWORDFISH
Avatar
Wendell
Member
sp_UserOfflineSmall Offline
Feb 24, 2016 - 11:42 pm

hi @yellow-swordfish! this is happening to me as well.

 

add reply, add topic, quote and delete buttons not working - but edit and thanks button are fine.

im using the KLEO theme and i just updated.

here is my site --> http://brgyginebra.ph

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