• Resolved loadofbikes

    (@loadofbikes)


    Hi there!

    Thanks very much for this plugin!

    I installed the CPT UI on my staging site, configured it all to my liking (1 taxonomy). All was well.

    Then I installed the plugin on my prod site, and tried to import the taxonomy. However, it threw a fatal error at me. Please see below.

    An error of type E_ERROR was caused in line 941 of the file [redacted]/wp-content/plugins/custom-post-type-ui/inc/utility.php.
    
    Error message: Uncaught TypeError: in_array(): Argument #2 ($haystack) must be of type array, null given in [redacted]/wp-content/plugins/custom-post-type-ui/inc/utility.php:941
    
    Stack trace: #0 [redacted]/wp-content/plugins/custom-post-type-ui/inc/utility.php(941): in_array()
    #1 [redacted]/wp-includes/class-wp-hook.php(303): cptui_published_post_format_fix()
    #2 [redacted]/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #3 [redacted]/wp-includes/plugin.php(470): WP_Hook->do_action()
    #4 [redacted]/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php(325): do_action()
    #5 [redacted]/wp-includes/class-wp-hook.php(303): cptui_create_custom_post_types()
    #6 [redacted]/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters()
    #7 [redacted]/wp-includes/plugin.php(470): WP_Hook->do_action()
    #8 [redacted]/wp-settings.php(578): do_action()
    #9 [redacted]/wp-config.php(82): require_once('/home/6154aa92c...')
    #10 [redacted]/wp-load.php(50): require_once('/home/6154aa92c...')
    #11 [redacted]/wp-login.php(12): require('/home/6154aa92c...')
    #12 {main} thrown

    Also: I cannot activate the plugin now without it throwing an error. Where can I find the data that I need to delete so I can use the plugin again?

    Regards,

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Error during import (Uncaught TypeError: in_array(): )’ is closed to new replies.