Your Time:
Our Time:
← Back to discussions

Issue with NextGen Gallery

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 7 replies, 2 voices, and was last updated 9 years, 11 months ago by Anonymous.

  • 2016-09-15 at 8:06 pm
    Support Expired
    #16527
    xyzb
    Participant
    • Topics: 3
    • Replies: 21
    • Total posts: 24
    • Post count: 25

    There appears to be an issue (JS?) with NextGen Gallery. I’m running the free version. I ‘m running the latest rev of your plugin, WP and NextGen. The Manage functions for NextGen do not work and just constantly refresh with your plugin enabled. Once disabled, all works normally.

    2016-09-16 at 1:10 am
    Support Expired
    #16528
    xyzb
    Participant
    • Topics: 3
    • Replies: 21
    • Total posts: 24
    • Post count: 25

    I found that it is related to the file – iva-business-hours-pro.js If I rename the file the issue goes away.

    There apparently is a conflict call here.

    Thanks

    2016-09-16 at 11:36 am
    #16536
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are taking a closer look in to it and we’ll let you know as soon as possible.

    2016-09-16 at 12:26 pm
    #16537
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Open iva-business-hours-pro.php file and find for this line add_action( 'admin_enqueue_scripts', 'iva_bh_admin_scripts' );. Do comment this line on line no around 34. After that find for this function iva_bh_menu and do replace this function with the below code.

    /**
    * function iva_bh_menu()
    * adding business hours pro menu to wp admin dashboard
    */
    add_action( 'admin_menu', 'iva_bh_menu' );
    function iva_bh_menu() {
    	add_menu_page( 'Business Hours Pro', 'Biz Hours Pro', 'manage_options', 'iva-business-hours-pro', 'iva_bh_page', IVA_BH_URL . 'assets/images/aivah-icon.png',59 );
    	
    	add_submenu_page( 'iva-business-hours-pro', 'Add/Edit Business Hours', 'Add New', 'manage_options', 'bhrs-operations', 'iva_bh_operations' );
    	add_submenu_page( 'iva-business-hours-pro', 'Settings', 'Settings', 'manage_options', 'bhrs-settings', 'iva_bh_settings' );
    	add_submenu_page( 'iva-business-hours-pro', 'Holidays', 'Holidays', 'manage_options', 'bhrs-holidays', 'iva_bh_holidays' );	 
    	if ( (isset( $_REQUEST['page'] ) && 'iva-business-hours-pro' === $_REQUEST['page'] ) ||  (isset( $_REQUEST['page'] ) && 'bhrs-settings' === $_REQUEST['page']) ||  (isset( $_REQUEST['page'] ) && 'bhrs-operations' === $_REQUEST['page']) || (isset( $_REQUEST['page'] ) && 'bhrs-holidays' === $_REQUEST['page'] )) {
    		add_action( 'admin_enqueue_scripts', 'iva_bh_admin_scripts' );
    	}
    }
    2016-09-19 at 8:13 pm
    Support Expired
    #16597
    xyzb
    Participant
    • Topics: 3
    • Replies: 21
    • Total posts: 24
    • Post count: 25

    This did not help.

    This is on line 134 not 34
    add_action( ‘admin_enqueue_scripts’, ‘iva_bh_admin_scripts’ );
    I’m assuming that the function right below this line stays active?

    function iva_bh_admin_scripts() {
    wp_enqueue_script( ‘jquery’ );
    wp_enqueue_script( ‘iva-business’,IVA_BH_URL . ‘assets/js/iva-business-hours-pro.js’, array( ‘jquery’ ), ”, true );
    wp_register_script( ‘jquery-timepicker’ , IVA_BH_URL . ‘assets/js/jquery-ui-timepicker-addon.js’ , array( ‘jquery’, ‘jquery-ui-datepicker’, ‘jquery-ui-slider’ ) , ‘1.4.5’ );
    wp_enqueue_script( ‘jquery-timepicker’ );
    wp_localize_script( ‘jquery-timepicker’, ‘iva_bh_timepicker_options’, iva_bh_timepicker_options() );
    wp_enqueue_script( ‘jquery-ui-datepicker’ );
    wp_enqueue_style( ‘iva-bhrs-admin’ , IVA_BH_URL . ‘assets/css/iva-bh-admin.css’, false,false,’all’ );
    wp_enqueue_style( ‘iva-bhrs-fontello’ , IVA_BH_URL . ‘assets/fontello/css/fontello.css’, false,false,’all’ );
    wp_enqueue_style( ‘iva-bhrs-jquery-ui’ , IVA_BH_URL . ‘assets/css/jquery-ui.css’, false,false,’all’ );
    wp_enqueue_style( ‘iva-bhrs-datepicker’, IVA_BH_URL . ‘assets/css/datepicker.css’, false, false, ‘all’ );

    Thanks

    2016-09-20 at 10:26 am
    #16601
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    Yes, the function right below this line stays active. Just comment only this line add_action( 'admin_enqueue_scripts', 'iva_bh_admin_scripts' ); on line no 134. After that find for this function iva_bh_menu and do replace this function with the below code.

    /**
    * function iva_bh_menu()
    * adding business hours pro menu to wp admin dashboard
    */
    add_action( 'admin_menu', 'iva_bh_menu' );
    function iva_bh_menu() {
    	add_menu_page( 'Business Hours Pro', 'Biz Hours Pro', 'manage_options', 'iva-business-hours-pro', 'iva_bh_page', IVA_BH_URL . 'assets/images/aivah-icon.png',59 );
    	
    	add_submenu_page( 'iva-business-hours-pro', 'Add/Edit Business Hours', 'Add New', 'manage_options', 'bhrs-operations', 'iva_bh_operations' );
    	add_submenu_page( 'iva-business-hours-pro', 'Settings', 'Settings', 'manage_options', 'bhrs-settings', 'iva_bh_settings' );
    	add_submenu_page( 'iva-business-hours-pro', 'Holidays', 'Holidays', 'manage_options', 'bhrs-holidays', 'iva_bh_holidays' );	 
    	if ( (isset( $_REQUEST['page'] ) && 'iva-business-hours-pro' === $_REQUEST['page'] ) ||  (isset( $_REQUEST['page'] ) && 'bhrs-settings' === $_REQUEST['page']) ||  (isset( $_REQUEST['page'] ) && 'bhrs-operations' === $_REQUEST['page']) || (isset( $_REQUEST['page'] ) && 'bhrs-holidays' === $_REQUEST['page'] )) {
    		add_action( 'admin_enqueue_scripts', 'iva_bh_admin_scripts' );
    	}
    }

    If you don’t get after doing this, then if you can provide us WP Logins to your website with URL then we can take a closer look at it. Make sure you set the post as private reply so that only admin can see your wp-logins.

    2016-10-05 at 9:06 pm
    Support Expired
    #16881
    xyzb
    Participant
    • Topics: 3
    • Replies: 21
    • Total posts: 24
    • Post count: 25

    Hi,
    Thanks for response. When I added your changes it didn’t work. When I just commented out – add_action( ‘admin_enqueue_scripts’, ‘iva_bh_admin_scripts’ );
    then it did work.

    I’m leaving as is for now. I’m not sure how that will affect the backend once I have to edit something.

    Thanks

    2016-10-06 at 10:42 am
    #16896
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    If you don’t get after doing this then if you can provide us WP Logins to your website with URL then we can take a closer look at it and we’ll fix it. Make sure you set the post as private reply so that only admin can see your wp-logins.

You must be logged in to reply to this topic.