Support » Plugins and Hacks » Toolset Types » [Resolved] [Plugin: Types – Custom Fields and Custom Post Types Management] Getting a "Invalid argument su

[Resolved] [Plugin: Types – Custom Fields and Custom Post Types Management] Getting a "Invalid argument su

  • I tryed to apply a relationship between a custon post-type to a parent post, and the plugin showed me an error saying:

    Warning: Invalid argument supplied for foreach() in XXX/wp-content/plugins/types/includes/post-relationship.php on line 200

    Warning: Cannot modify header information – headers already sent by (output started at XXX/wp-content/plugins/types/includes/post-relationship.php:200) in XXX/wp-includes/pluggable.php on line 866

    And all of a sudden I am getting 404 errors in every post, I can see my homepage since is not related to Types, but when trying to load the custom-post-type archive, a 404 shows up.
    site: http://www.cuadernoslobo.com/ediciones/


Viewing 12 replies - 1 through 12 (of 12 total)
  • Hey, see my bug report for a workaround.

    Just received the above error as well when saving a New Custom Post. Going BACK to edit page with a Crtl F5 displays a “Custom post type saved”.

    Plugin Author Amir Helzer


    Can I have your database dump, so see how this is happening?

    The workaround reported is fine, but you’re reaching a condition which shouldn’t happen and it would help if we could see what’s actually triggering it.

    Let me know how I can email you and we’d like to get that DB for testing and fix the problem from its root.

    I am kind of lost with this issue, and not sure of what am I supposed to send you (Database Dump), please contact me through jmamorteg@dostruchas.net. Thank you a lot.

    Having the same issue as listed above. Also seeing that “Featured Image”is no longer available as an option to display with the custom post type.

    Plugin Author Amir Helzer


    Kristof, you’re right. We ‘over optimized’ the content of the V popups, so the entire ‘basic’ group no longer appears. We’ll add it back to the GUI in the upcoming bug-fix version.

    In the meanwhile, you can insert it manually to the text, using:


    We’re also looking at the other problem reported here and we’ll get that sorted as well.

    Plugin Author Amir Helzer


    Here’s a patched version, which contains the fix for the warning you’ve been getting:

    The 404 error is not due to this. It’s something that might happen when the WordPress rewrite rules get changed. To fix it, go to Settings->Permalinks and just save.

    Let me know if there are still 404 pages after that.

    Hi Amir, thanks for the fix, I had just posted a question regarding the same thing, and just as I posted the solution, the post was deleted…

    Lesson learnt about reading other threads before posting!

    I did mention that I thought the error was a result of turning off the ‘has_archive’ option

    Hi Amir – The problem is that the Featured Image Meta box doesn’t display so there’s no way to add/upload a featured image. If I can’t upload an image using the meta box, there’s no way for me to call/display it in my Archive template.

    Amir – Feature suggestion for the image upload custom field.

    When selecting an image from either the Gallery or Media Library, it would be great if the WordPress Alignment and Size options could be used. Currently, the “Use as field value” only selects/uses the original, uploaded image. Thanks.

    The issue seems to be fixed with Amir’s patched version. To avoid the 404 I had to set default permalinks and is working OK, I will try to set the Pretty Permalinks later to see what happens.
    Thank you very much, Amir

    Plugin Author Amir Helzer


    If anyone else is going over this thread, please note that the new release fixes this problem. Instead of applying a patch, just download the current version.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘[Resolved] [Plugin: Types – Custom Fields and Custom Post Types Management] Getting a "Invalid argument su’ is closed to new replies.
Skip to toolbar