WordPress.org

Forums

Booking Calendar
Argument #2 is not an array in wpdev-booking-class.php on line 155 (2 posts)

  1. AndrewStevenTurner
    Member
    Posted 3 years ago #

    Cannot figure this out and don't know how I would modify the code to get this error to stop showing at the top of wp-admin.

    http://wordpress.org/extend/plugins/booking/

  2. wpdevelop
    Member
    Plugin Author

    Posted 3 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Booking Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags