• Resolved naomispirit

    (@naomispirit)


    I am looking at a clients site in development – not by me. I installed latest Custom Post Type UI via wordpress repository but get errors. I have disabled all plugins and reverted to twenty-seventeen theme but errors persist. Are there issues with this version of WP? Anyone able to point in the right direction?

    Warning: in_array() expects parameter 2 to be array, null given in *** SITE URL ***/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 332
    
    Warning: Invalid argument supplied for foreach() in *** SITE URL ***/wp-includes/class-wp-post-type.php on line 597
    
    Warning: in_array() expects parameter 2 to be array, null given in *** SITE URL ***/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 332
    
    Warning: Invalid argument supplied for foreach() in *** SITE URL ***/wp-includes/class-wp-post-type.php on line 597
    
    Warning: in_array() expects parameter 2 to be array, null given in *** SITE URL ***/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 332
    
    Warning: Invalid argument supplied for foreach() in *** SITE URL ***/wp-includes/class-wp-post-type.php on line 597
    
    Warning: in_array() expects parameter 2 to be array, null given in *** SITE URL ***/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 332
    
    Warning: Invalid argument supplied for foreach() in *** SITE URL ***/wp-includes/class-wp-post-type.php on line 597
    
    Warning: Cannot modify header information - headers already sent by (output started at *** SITE URL ***/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php:332) in *** SITE URL ***/wp-admin/includes/misc.php on line 1114

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter naomispirit

    (@naomispirit)

    OK, so this is resolved. Basically it was a problem because the taxonomies hadn’t been properly set up!

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Looks like somehow the “supports” section wasn’t receiving an array of any sort at the time. However, as you note, it’s since been sorted out.

    Line in question:

    if ( in_array( 'none', $post_type['supports'] ) ) {
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Compatibility with wordpress 4.9.1’ is closed to new replies.