Support Forum

plugin Image, Media and file Uploader does't work

YO Younès
Younès
Member

hello,


I need your help, I installed the plugin “image and media file upload“, the plugin is installed, however when I add an image (add file), I can not start the download (start upload).

I verified the permissions and settings but still no solution, could you help me solve this problem?

 

 

attachments1.pngattachments2.pngattachments3.pngattachments4.png

11 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

If the issue is – as it looks to be – that the button to start the upload does nothing – then your WP theme is almost certainly loading the BootStrap javascript library which is unsupported by WordPress and stomps all over the jQuery UI javascript library which is supported.

It can usually be resolved. The trick – and it is a trick! – is to make sure that the jQuery UI library is loaded AFTER the BootStrap library.

if you do a search here on ‘Bootstrap’ you should find quite a few threads where solutions are posted as they differ dependent upon the WP theme in use and often how well the theme is authored (although using unsupported libraries is not a good start of course!).

The simplest solution is to check the option to load SP scripts in the footer bit sadly only works for a small number. It usually involves a little code change.

First thing though is to check your source code being generated and search for bootstrap library to make sure that is the problem.

YO Younès
Younès
Member
 

thank you for your quick reply, I’ll see if I can do that.
I use theme virtue

YO Younès
Younès
Member

it’s complicated for me to understand what I need to do exactly.
You can check this by looking at the address of my http://www.birdandyou.com/forum/ forum please?

YS Yellow Swordfish
Yellow Swordfish
Member

Curious… I can see that BootStrap CSS is being loaded but do not see the BootStrap JS file being loaded. I would suggest the first thing to do would be to ask the theme authors support if they are indeed loading the bootstrap JS file somewhere – perhaps under a different name or something. And if so how can they ensure that the jQuery UI library gets loaded after it

If they say they are NOT loading it then come on back and we can look again but it would be useful to know what they have to say.

YO Younès
Younès
Member

thank you I will contact them.

I tried another theme to see if the download works, it’s ok.

MP Mr Papa
Mr Papa
Member

let us know what you find…  we can help correct the theme… it just needs to load the wp jquery ui after bootstrap is loaded since bootstrap stomps on jquery ui…

YO Younès
Younès
Member

Mr Papa said
let us know what you find…  we can help correct the theme… it just needs to load the wp jquery ui after bootstrap is loaded since bootstrap stomps on jquery ui…

Hi Mr Papa,

I appreciated your responsiveness.

I contacted support for my theme (Virtue) wordpress, I have not received any response yet.

you think that with a plugin wp jquery ui can solve the problem?

 

YO Younès
Younès
Member

Here is my page: scripts.php (lib / scripts.php)
What do you think?

<?php

/**

* Enqueue scripts and stylesheets

*

*/

function kadence_scripts() {

wp_enqueue_style(‘kadence_bootstrap’, get_template_directory_uri() . ‘/assets/css/bootstrap.css’, false, “219”);

wp_enqueue_style(‘kadence_theme’, get_template_directory_uri() . ‘/assets/css/virtue.css’, false, “219”);

global $virtue; if(isset($virtue[‘skin_stylesheet’]) || !empty($virtue[‘skin_stylesheet’])) {$skin = $virtue[‘skin_stylesheet’];} else { $skin = ‘default.css’;}

wp_enqueue_style(‘virtue_skin’, get_template_directory_uri() . ‘/assets/css/skins/’.$skin.”, false, null);

 

if (is_child_theme()) {

   wp_enqueue_style(‘roots_child’, get_stylesheet_uri(), false, null);

}

 

if (is_single() && comments_open() && get_option(‘thread_comments’)) {

   wp_enqueue_script(‘comment-reply’);

}

 

wp_register_script(‘modernizr’, get_template_directory_uri() . ‘/assets/js/vendor/modernizr-2.6.2.min.js’, false, null, false);

wp_register_script(‘kadence_plugins’, get_template_directory_uri() . ‘/assets/js/plugins.js’, false, ‘219’, true);

wp_register_script(‘kadence_main’, get_template_directory_uri() . ‘/assets/js/main.js’, false, ‘219’, true);

wp_enqueue_script(‘jquery’);

wp_enqueue_script(‘modernizr’);

wp_enqueue_script(‘masonry’);

wp_enqueue_script(‘kadence_plugins’);

wp_enqueue_script(‘kadence_main’);

   if(class_exists(‘woocommerce’)) {

wp_deregister_script(‘wc-add-to-cart-variation’);

wp_register_script( ‘wc-add-to-cart-variation’, get_template_directory_uri() . ‘/assets/js/add-to-cart-variation-ck.js’ , array( ‘jquery’ ), false, ‘200’, true );

   wp_localize_script( ‘wc-add-to-cart-variation’, ‘wc_add_to_cart_variation_params’, apply_filters( ‘wc_add_to_cart_variation_params’, array(

     ‘i18n_no_matching_variations_text’ => esc_attr__( ‘Sorry, no products matched your selection. Please choose a different combination.’, ‘woocommerce’ ),

     ‘i18n_unavailable_text’           => esc_attr__( ‘Sorry, this product is unavailable. Please choose a different combination.’, ‘woocommerce’ ),

   ) ) );

wp_enqueue_script( ‘wc-add-to-cart-variation’);

}

 

}

add_action(‘wp_enqueue_scripts’, ‘kadence_scripts’, 100);

YS Yellow Swordfish
Yellow Swordfish
Member

As I said above in post #5 – I see the Bootstrap CSS being loaded but not the actual JS file. This could be because your theme authors have bundled in with a custom file of their own – which we have seen before. But I have no idea which it might be if that is the case. This is why i said you need to confirm that this IS the issue and if so which file it is using.

The really sad thing is that if nobody make a noise to theme authors about this they will just continue to spread this mess. There has been talk of the WordPress dev team trying to accommodate it but nothing has happened so far.

YO Younès
Younès
Member

I contacted theme support,  but no response until now