Support Forum

"Start Upload" button does not work.

JM Jim McLoud
Jim McLoud
Member

The file uploader is not working. I can add a file to the box, but the “Start Upload” button does not respond. Right beside it is the “Add File” button, and it works just fine. I can add all the files I need into the upload box, but the upload will not start. Any ideas?

The file I’m trying to upload is a 176kb PDF. 

By the way, I just updated to the latest versions of SP and the uploader plugin. Didn’t work. Thanks for any help!

14 Answers

New Answer

MP Mr Papa
Mr Papa
Member

sounds like a js conflict… see http://codex.simple-press.com/codex/faq/troubleshooting/what-is-this-jquery-conflict/

if you gave us a link to your site, we could help look for obvious ones…

JM Jim McLoud
Jim McLoud
Member

Thank you for your response. I’ve read the codex page you sent me to, but unfortunately I am not a programmer, and much of that was just over my head. Can you possibly tell me in “simple” terms what I need to do to fix this?

I can give you the link to my page, but the website is not yet up-and-running. So I don’t want to post it for public information. Do you want me to pm it to you?

Because of the nature of what our website will be, uploading attachments is very important to us. We need to get it all online very soon, so thank you for your help.

MP Mr Papa
Mr Papa
Member

sure you can pm the site to us… be sure to send it to both yellow swordfish and myself… link back to this topic so we know what its about…

MZ maxime zelis
maxime zelis
Member

Hello, i have the same problem, i disabled all my wordpress plugin, but still have the problem. 

Can you check, my forum address is http://www.city-brick.com/forum

Thanks in advance.

 

EDIT : i think the problems comes from my template. When i put the twenty fourteen tempalte back, no problem with upload button. I don’t know what to do? 

YS Yellow Swordfish
Yellow Swordfish
Member

Yes – your WordPress theme is loading the BootStrap JS library and just to make matters more difficult – it is just about the very last script that is being loaded.

The trick is to get the Bootstrap library to be loaded earlier – before the WordPress standard jQuery UI library. This should be the way the theme authors code it.

The first thing to determine is if you can locate where in the theme code Bootstrap.JS is being set up and loaded. If that is not possible then I would ask your theme authors for a fix. Or – at the very least – the location of the loading.

MZ maxime zelis
maxime zelis
Member

Waw, your talking chinese to me… lol

I will try to look how I can change js loading order. Maybee a wordpress plugin? 

YS Yellow Swordfish
Yellow Swordfish
Member

I am unaware if any plugins that might help.

The bottom line is that the authors of your WordPress theme are using a javascript library that is unsupported by WordPress. And it creates problems for libraries that ARE supported by WordPress – which is the issue you are seeing,.

However – this can be mitigated by changing the order in which the scripts are loaded – so I was suggesting you seek support with the authors of the theme to (a) either change their code to ensure things work as they should (the preferable option – and the honourable one!) or – at the very least – inform you where the Bootstrap library is being loaded in their theme code so we can advise on possible changes that might correct the problem.

MZ maxime zelis
maxime zelis
Member

I’m sorry, i do my best, but i don’t understand what you say. English is not my native language and when the conversation gets technical, I find it hard to follow. 

I can send you the theme, so you can do tests and maybe find a fix. 

MP Mr Papa
Mr Papa
Member

in your theme, find where the bootstrap.js is being loaded…  we can walk you through changing it..

for reference:

https://simple-press.com/support-forum/sp5-plugin-topics/start-upload-button-not-working/

https://simple-press.com/support-forum/sp5-plugin-topics/file-upload-start-upload-not-working/

we walk through some ways to change there too…

MZ maxime zelis
maxime zelis
Member

My template is so complex, there are hundreds of php files. No one is called bootstrap.js or something. 

i can’t start a forum without image upload. 

On the support forum of my template, some people ask the question too and someone fixe the problem with this code in his function.php : 

add_action(‘wp_enqueue_scripts’, ‘deregister_pl_bootstrap’, 100);
function deregister_pl_bootstrap() {
    if(sp_is_forumpage()) {
        wp_dequeue_script(‘pagelines-bootstrap-all’);
    }
}

But it’s not working for me. 

Can i give you an admin access to my site and/or ftp access to all my files, so you can look. i’m not in a hurry, you can take your time!

YS Yellow Swordfish
Yellow Swordfish
Member

Before we go there – and having admin access is not a great way to try and solve these sort of things – have you actually tried this – which is a fix for pagelines that has worked for others? –

https://simple-press.com/support-forum/sp5-plugin-topics/file-uploader-with-pupload-and-pagelines/#p128846

MZ maxime zelis
maxime zelis
Member

I tried this solution too, but i don’t have action.site.php.

the solution you gave by the past are for Pagelines Framework, it’s an old theme. I use Pagelines DMS2, wich is a totaly new theme. That’s probably why all the solution doesn’t work. 

in the new theme, i found 7 php files that have the word “bootstrap” in it. and also xml, js, less and css files. 

I will try to look and find which php files to modify and try the old solution, maybee…

MZ maxime zelis
maxime zelis
Member

IT WORK’S!!! 

In the file lib.head.php, i changed the line 

wp_enqueue_script( ‘pagelines-bootstrap-all’, PL_JS . ‘/script.bootstrap.min.js’, array( ‘jquery’ ), ‘2.2.2’, true );
by this line 
wp_enqueue_script( ‘pagelines-bootstrap-all’, PL_JS . ‘/script.bootstrap.min.js’, array( ‘jquery’ ), ‘2.2.2’, false );

and in the forum options, i checked “load javascript in the footer”

all the site look’s to work fine, and now, i can load picture in the forum!

I’m not sure to understand what i’ve done exactly, do i disabled bootstrap on my site? or just the place where it loads? 

And a last question, when a new release of my template will be available, do i have to change the code again? Probably yes

MP Mr Papa
Mr Papa
Member

yes, you are likely to have to change it in the theme again…  the wp devs have mentioned considering adding bootstrap to core in which case it would be easy for them to control the loading order… until then, theme authors who continue to bump against existing wp libraries will have this potential issue…