fl4p / WP-Filebase

WP-Filebase
http://wpfilebase.com/
34 stars 36 forks source link

WP 4.5 : File browser issue #38

Open pitichampi opened 8 years ago

pitichampi commented 8 years ago

Hello !

I've just updated to WordPress 4.5 on my testing environment.

I can't use the file browser anymore : the folders can't be expanded to display what is inside.

Sorry for my bad english... I hope you'll understand.

Tests on Safari 9.1 and Chrome 49 (mac) with version 3.4.3 of the plugin

teacherseck commented 8 years ago

Hello I have the same problem. I updated to wordpress 4.5 yesterday and I have some issue with the shorcord generator. folders are not accessible and in some parts the validation or insert button are not showing. apart form that everything is fine. browser firexox uptodate

pitichampi commented 8 years ago

Note that this problem exists in front and admin

ePascalC commented 8 years ago

Isn't this related to the jQuery issue ? I will try this weekend for sure.

First info: Updated libraries: We updated jquery, backbone, and a couple other libraries. This may cause your browsers to render oddly. Please remember to flush your cache (browser and website/server). If you're using Cloudflare, you may need to kick it.

As an example: Change this (for plugin authors): $( 'a[href*=#]:not([href=#])' ).click( function() { To this: $( 'a[href*="#"]:not([href="#"])' ).click( function() {

Adding this in functions.php should work according to my sources (BUT REMOVE THIS WHEN THE PROBLEM IS FIXED !):

if (!is_admin()) {
  wp_deregister_script('jquery');
  wp_register_script('jquery', ("http://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"), false, '1.11.3');
  wp_enqueue_script('jquery');
}

Pascal.

fl4p commented 8 years ago

Hi, this is indeed related to a jQuery incompatibility (removal of the 3rd argument for $.each())

Ive just pushed the fix https://github.com/f4bsch/WP-Filebase/commit/0aa7dc574855aafaaade31e7818f5028d96f8610

teacherseck commented 8 years ago

Thanks for the awsome job Fabian.

64h01101001h commented 8 years ago

Thanks Fabian!

teacherseck commented 8 years ago

Hi , There is one issue left. On category select display files do not show. The datatable view for instance reports there are no files when user is logged out. If all categories are selected files display works fine.

fl4p commented 8 years ago

@teacherseck is that issue on the front-end only? Whats your shortcode? Can you post a link?

teacherseck commented 8 years ago

Here is an example yes, it's frontend only http://transace.net/eflshare/tests/ [wpfilebase tag=list id='11,14,8,12,10,13,9' tpl=data-table showcats=1 pagenav=1 sortcats='<cat_name' /]

fl4p commented 8 years ago

showcats=1 is not compatible with data Tables. Change it to showcats=0

teacherseck commented 8 years ago

Fabian I have changed the showcats=0 but still the same. I tried this [wpfilebase tag=list id='2,6,3,5,1,7,4' tpl=data-table pagenav=1 /]

I see the data when logged in but not when I am logged out.

infopriyank commented 7 years ago

Hello !

My files has automatically deleted from backend inside wpfilebase plugin .any one have idea about that.