PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Invalid argument supplied for foreach() in gfcptaddonbase.php

  1. I have a site up and running on a development server, but when I transferred it to the live server I'm getting the following error:

    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/gravity-forms-custom-post-types/gfcptaddonbase.php on line 50
    
    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/gravityforms/form_display.php on line 1467
    
    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/gravity-forms-custom-post-types/gfcptaddonbase.php on line 117
    
    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/gravityforms/form_display.php on line 1467
    
    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/gravityforms/form_display.php on line 705
    
    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/gravityforms/form_display.php on line 128
    
    Warning: Invalid argument supplied for foreach() in /wp-content/plugins/gravityforms/form_display.php on line 1467
    Posted 12 years ago on Monday February 13, 2012 | Permalink
  2. Hi, clicknathan,

    Some of the warnings you have listed are coming from a third-party plugin, not Gravity Forms; the ones from the file "/wp-content/plugins/gravity-forms-custom-post-types/gfcptaddonbase.php". Can you disable that plugin and see if you are still having problems?

    Also, which version of Gravity Forms are you using? Do you have the same version of Gravity Forms running in development and production? Some of the errors appear to be in the code that uses conditional logic, which we have made changes to and have a beta release available for download for it. If your versions are not in sync you could have conditional logic setup that doesn't work with an older version of Gravity Forms.

    Take a look and let me know if you still have problems.

    Posted 12 years ago on Thursday February 16, 2012 | Permalink
  3. I ended up fixing the problem by updating GF altogether on the live server, so I'm all set. Thank you!

    Posted 12 years ago on Thursday February 16, 2012 | Permalink
  4. Great!

    Posted 12 years ago on Thursday February 16, 2012 | Permalink

This topic has been resolved and has been closed to new replies.