• Resolved Josh Fialkoff

    (@nooozeguy)


    Hi,
    Our logs show errors related to the plugin.
    What do you recommend we do to fix this?
    Thanks,
    Josh

    [01-Jul-2016 20:26:18 UTC] PHP Warning: in_array() expects parameter 2 to be array, null given in /home/[site]/public_html/red2/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 282
    [01-Jul-2016 20:26:18 UTC] PHP Warning: Invalid argument supplied for foreach() in /home/[site]/public_html/red2/wp-content/plugins/custom-post-type-ui/custom-post-type-ui.php on line 292

    https://wordpress.org/plugins/custom-post-type-ui/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Regarding the first error, you’re somehow getting a value of null saved in the supports parameter for one or more of your posts types. The question is how because for the most part, I’ve avoided using “null” at all.

    For the second error, best guess I have is that you have something that isn’t an array, empty or filled, for the labels spot for one or more of your post types.

    Would you be willing to send your post type settings to me, so I can check on that?

    You can use the values stored in the import/export area and the post type tab, or you can use the “Debug info” tab to send that and more to me via email. Fill in the text input below the large textarea with michael @ webdevstudios . com and it’ll go to me.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Hey Josh, I wanted to write and say that I did receive your email, but that’s not looking like the CPTUI data that I’d need to debug the null values issues. That looks like it comes from Custom Content Type Manager instead of our plugin.

    All of our stuff would be available in the http://MYSITE.com/wp-admin/admin.php?page=cptui_importexport area.

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Any changes here Josh?

    Thread Starter Josh Fialkoff

    (@nooozeguy)

    Hi Michael,
    We had imported CCTM CPTs into CPT UI. We ended up remaking these in CPT UI.
    I don’t see these errors any more.
    Thanks for checking and for your help!
    Josh

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Welcome. Glad things got sorted out 🙂

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘PHP errors’ is closed to new replies.