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
Start upload button and remove file button not working
Avatar
Angus
Member
Offline
Jun 22, 2016 - 5:51 am

Good morning, in trying to attach a file to a post we can open the 'File Uploader' plugin box and add files by pressing the Add Files button or by drag and dropping. What isn't working however is the 'start upload' button or indeed the - button allowing you to remove a file from the upload list.

Both WP, SP and the plugin are all at the most update versions. Many thanks for any help.

Edit: this console log shows the js error ("cannot call methods on button prior to initialization; attempted to call method 'enable'") that occurs from file plugload.full.min when any forum topic page is loaded. The same error is logged when the 'minus' button is clicked. We see no activity (and no error logged) when the Start Upload button is pressed. 

uploaderror.jpgImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jun 22, 2016 - 8:47 am

If we can leave aside the console log for a moment and just look at the most common problem we have with this it would help at least potentially discount one factor,. And that is BootStrap. So - does your website load the bootstrap.js library - most often used, if at al, by themes it seems.

And also are you loading the SP javascript in the footer of your site (forum admin > Integration > Page and Permalink admin panel)?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Angus
Member
Offline
Jun 22, 2016 - 10:14 am

Thanks Yellow, answers are i) yes, we are loading bootstrap.min.js in the head, and ii) no, we are not loading the SP js in the footer

Avatar
Ike
Sawtry, UK
Member
Free Members
Offline
Jun 22, 2016 - 10:55 am

Could you try enabling the option to load SP Javascript in the footer? Also please note you should always clear your browser cache after making changes like this.

Avatar
Angus
Member
Offline
Jun 23, 2016 - 5:01 am

Great, that''s fixed it. Many thanks for your help.

Avatar
Yellow Swordfish
Glinton, England
SP Master
Offline
Jun 23, 2016 - 5:10 am

There are several threads on this subject but in case you have missed them the problem is that Bootstrap is NOT a supported WordPress library. The jQuery UI library IS supported. But Bootstrap messes with the jQuery UI and causes changes to some display components - notably buttons.

Many theme authors (in particular) do not use Bootstrap responsibly. The key - if a site may also be using the jQuery UI (which is ANY WP site of course) is to load Bootstrap BEFORE the jQuery UI library.

As this so rarely happens we do have a small line of code that corrects the damage but that does have to be run in the footer. So glad it sorted the problem for you.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
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: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625