Support Forum

Start Upload button not working

82 Answers

New Answer

MP Mr Papa
Mr Papa
Member

the theme or other is still loading a copy of bootstrap in the footer…

<script type=’text/javascript’ src=’http://vapersplace.com/wp-content/themes/powermag/js/bootstrap.min.js?ver=2.0′></script>

which is well after jquery ui is loaded…  That will cause problems…  As discussed, its also loaded in the head before jquery ui…  so just remove the second loading in the footer…

I dont think js/cs order matters…

KB Kevin Bowers
Kevin Bowers
Member

Mr Papa said
the theme or other is still loading a copy of bootstrap in the footer…

<script type=’text/javascript’ src=’http://vapersplace.com/wp-content/themes/powermag/js/bootstrap.min.js?ver=2.0′></script>

which is well after jquery ui is loaded…  That will cause problems…  As discussed, its also loaded in the head before jquery ui…  so just remove the second loading in the footer…

I dont think js/cs order matters…

I removed the second loading in the footer and it still doesn’t work.

 

YS Yellow Swordfish
Yellow Swordfish
Member

Well – perhaps a double check is the most sensible thing. If you could remove – briefly for testing – ALL calls to load the bootstrap JS and then try the attachment dialog it will perhaps show one way or the other if this is still the cause. I think you would need to disable cloudflare as well which always gets in the way of any proper testing.

KB Kevin Bowers
Kevin Bowers
Member

Yellow Swordfish said
Well – perhaps a double check is the most sensible thing. If you could remove – briefly for testing – ALL calls to load the bootstrap JS and then try the attachment dialog it will perhaps show one way or the other if this is still the cause. I think you would need to disable cloudflare as well which always gets in the way of any proper testing.

When I remove all calls to bootstrap nothing works at all. The Add Topic and Add Reply buttons don’t work so I can’t open anything.

This is very frustrating. I sent a message to the theme creator and told him about this issue. His response was it was an issue with the plugin and he doesn’t provide support for plugins.

He is wrong. There is nothing wrong with this plugin. I’ve tried 5 different themes and the upload button works on all of them. There is an issue with his theme and the jquery somewhere in his theme is interfering with the upload button.

I might just have to eat the $60.00 I paid for the theme and purchase another one :(

I thank you guys for your help. The both of you have always been very helpful and offer fantastic support.

 

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – Bootstrap is NOT a supported WordPress library and it is known to just stomp all over jQuery which is.

I have a few minutes spare at the moment if you want to email me a copy of the theme I could perhaps take a quick look – ‘andy at simple-press dot com’.

KB Kevin Bowers
Kevin Bowers
Member

Yellow Swordfish said
Yes – Bootstrap is NOT a supported WordPress library and it is known to just stomp all over jQuery which is.

I have a few minutes spare at the moment if you want to email me a copy of the theme I could perhaps take a quick look – ‘andy at simple-press dot com’.

e-mail sent. Thanks so much Andy.

 

YS Yellow Swordfish
Yellow Swordfish
Member

Well I will be honest. After forcing Bootstrap.js to be loaded earlier than jQuery UI I had no problem with the attachments buttons. All seemed well.

KB Kevin Bowers
Kevin Bowers
Member

Yellow Swordfish said
Well I will be honest. After forcing Bootstrap.js to be loaded earlier than jQuery UI I had no problem with the attachments buttons. All seemed well.

Really? Maybe I was doing it wrong. Can you instruct me on how to do it?

 

YS Yellow Swordfish
Yellow Swordfish
Member

All I did was find the wo_enqueue_script() call for Bootstrap.js in the theme code and change the end ‘true’ to ‘false’ so that it loaded in the header. Then in the forum admin > integration > page and permalink panel I ensured that the SP javascript was being loaded in the footer.

KB Kevin Bowers
Kevin Bowers
Member

Yellow Swordfish said
All I did was find the wo_enqueue_script() call for Bootstrap.js in the theme code and change the end ‘true’ to ‘false’ so that it loaded in the header. Then in the forum admin > integration > page and permalink panel I ensured that the SP javascript was being loaded in the footer.

So change this:

wp_enqueue_script( ‘bootstrap-js’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, array( ‘jquery’ ), ‘2.0’, true );

To this:

wp_enqueue_script( ‘bootstrap-js’, get_template_directory_uri() . ‘/js/bootstrap.min.js’, array( ‘jquery’ ), ‘2.0’, false );

 

KB Kevin Bowers
Kevin Bowers
Member

That’s it! It works :) Thank you so much Andy. I really appreciate the help. You’re a lifesaver.

GR Gary Rohland
Gary Rohland
Member

I’m having the same issue with the BootStrap theme, but we are stuck with it.

I have read this topic several times now, but I simply can not find the php file that contains the code that needs to be edited. I have searched the footer.php, header.php, functions.php and just about every page listed under the theme editor.

Could you help me, please.

MP Mr Papa
Mr Papa
Member

I dont have a copy of the theme, but if its using bootstrap.js, it MUST be loading it somewhere..  posts 69 and 70 pretty much cover the changes…  just need to use search and find the right file…

maybe Andy can say exactly which file it is tomorrow when he is back…

GR Gary Rohland
Gary Rohland
Member

I know, and I hated to write and ask after seeing all that you and Andy have already done, but it has me stumped.
I’m going to continue looking, but if anyone can offer guidance, I would really appreciate it. 
——– Original Message ——–
Subject: Forum Post – Simple:Press: [Start Upload button not working]
From: “Simple:Press Support” <support@simple-press.com>
Date: Sun, January 26, 2014 8:28 pm
To: Gary@3DPSPremium.com