WordPress.org

Support

Support » Plugins and Hacks » Argument #2 is not an array in wpdev-booking-class.php on line 155

Argument #2 is not an array in wpdev-booking-class.php on line 155

Viewing 1 replies (of 1 total)
  • Plugin Author wpdevelop

    @wpdevelop

    Hello,
    ok try todo this:

    open this file ..booking/lib/wpdev-booking-class.php
    at line: 155
    find this code:

    // Merge the two arrays together so our widget is at the beginning
                        $sorted_dashboard = array_merge($example_widget_backup, $normal_dashboard);
    
                        // Save the sorted array back into the original metaboxes
                        $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;

    and modify it to this:

    // Merge the two arrays together so our widget is at the beginning
                     //   $sorted_dashboard = array_merge($example_widget_backup, $normal_dashboard);
    
                        // Save the sorted array back into the original metaboxes
                    //    $wp_meta_boxes['dashboard']['normal']['core'] = $sorted_dashboard;

    then try to test again.

Viewing 1 replies (of 1 total)
  • The topic ‘Argument #2 is not an array in wpdev-booking-class.php on line 155’ is closed to new replies.