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
plugin Image, Media and file Uploader does't work
Avatar
Younès
France
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 12:59 pm

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.pngImage Enlargerattachments2.pngImage Enlargerattachments3.pngImage Enlargerattachments4.pngImage Enlarger

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 8, 2014 - 1:08 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Younès
France
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 1:14 pm
 

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

Avatar
Younès
France
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 1:27 pm

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?

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 8, 2014 - 3:34 pm

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.

andy-signature.png
YELLOW
SWORDFISH
Avatar
Younès
France
Member
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 4:37 pm

thank you I will contact them.

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

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Jul 8, 2014 - 8:41 pm

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...

Avatar
Younès
France
Member
Free Members
sp_UserOfflineSmall Offline
Jul 9, 2014 - 2:16 am

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?

 

Avatar
Younès
France
Member
Free Members
sp_UserOfflineSmall Offline
Jul 9, 2014 - 3:38 am

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);

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Jul 9, 2014 - 4:27 am

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.

andy-signature.png
YELLOW
SWORDFISH
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: 619
Members: 17363
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625