• Resolved Azurite

    (@azurite)


    Hi there,
    I’ve been following a Lynda.com tutorial on “Making an Online Portfolio with WordPress.” In it, you create custom post types and custom taxonomies to go with them.

    I’ve gotten as far as making my custom post types and a few of my custom taxonomies, but after my recent attempt at adding a few more taxonomies, I got this error when I load my Dashboard (only for this site, not the other sites in my Multisite install):

    Warning: strpos() expects parameter 1 to be string, array given in /home/*****/public_html/wp-includes/media.php on line 1203

    Line 1203 of media.php seems to refer to taxonomies, so I’m thinking it’s something I did in my file, post types.php, which declares the post types and custom taxonomies.

    I read elsewhere that whitespace could be a culprit, but for the life of me, I can’t find any unnecessary whitespace. Is there anything else that could possibly be causing this issue? If not, how can I find my whitespace?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you post here the code where you declare the post_types and taxonomies?

    Thread Starter Azurite

    (@azurite)

    I ended up redoing the entire posttypes.php file using the template given in the tutorial, and just did a find-replace to change the terms in the tutorial to the ones I wanted to use. Now everything’s working!

    Sorry for the trouble!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Error after adding custom taxonomies’ is closed to new replies.