Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi marcie73,
    Typical issue when there is some other plugin messing around your system. Please check this topic: https://wpaam.com/forum/viewtopic.php?f=2&t=3

    Regards,
    Vasyl

    Thread Starter marcie73

    (@marcie73)

    Thank you WP AMM, I think the thing is more complex. Widget area is not working properly either because of a JQuery-ui conflict, i guess. I read of many others having a similar issue with no solution, at least in my case. it’s very frustrating. Thank you anyway.

    I’m sure that you have some plugin that prints redundant javascript or css library to the header. Try to deactivate all and activate one-by-one.

    Thread Starter marcie73

    (@marcie73)

    I solved it. It wa not a plugin problem. For some reasons admin jquerui-ui is not present ad OI had to register it and enqued it in my functions.php. Now widgets are working and your UI is showing perferctly now!

    <?php
    function add_admin_jqueryui() {
    	if (is_admin()) {
    	wp_register_script('jqueryUi', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js');
    	wp_enqueue_script('jqueryUi');
      }
    }
    add_action('init', 'add_admin_jqueryui');
    ?>
    Thread Starter marcie73

    (@marcie73)

    I Spoke too fast! The Ui central section seems alright, i can se all accordion tabs, but in the right column, users and roles don’t appear…sigh ??

    Hi marcie73,
    Please notice that you are not the only one with the same issue. All previous cases were related to issues with ohter plugins.
    You have an javascript error caused by other plugin (read more here https://wpaam.com/forum/viewtopic.php?f=6&t=3).

    Regards,
    Vasyl

    Thread Starter marcie73

    (@marcie73)

    I solved this way, I don’t know if it is a good thing or not. I removed script concatenation managed by load-script.php, I deregistered local version of jquery e registered a CDN one.
    Everything works!

    function add_admin_jquery() {
    	if (is_admin()) {
    	wp_deregister_script('jquery');
    
    	wp_register_script('jquery', 'https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js', FALSE, '1.10.2', FALSE);
    
      }
    }
    
    add_action('admin_enqueue_scripts', 'add_admin_jquery');

    Thread Starter marcie73

    (@marcie73)

    SORRY THE CODE IS THIS ONE ??

    <?php
    add_action( 'admin_init', 'jquery_admin' );
    
    function jquery_admin() {
    
        global $concatenate_scripts;
    
        $concatenate_scripts = false;
        wp_deregister_script( 'jquery' );
        wp_register_script( 'jquery', ( 'https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js' ), false, '1.10.2', true );
    }
    ?>

    Thread Starter marcie73

    (@marcie73)

    Vasyl, now that I can access to your plugin, I would like a specific user to access only an item in admin menu (slimstat plugin). The problem is the even if I deny permission to dashbard, dasboard in visible and boxes in there are clickable and allow to see other contents, like posts pages and so on. Is there a way to avoid to display dashboard?
    Many thanks
    (do you want me to open a new topic?)

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Js problem after updating (maybe)’ is closed to new replies.