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.

Bug Report: gfcptaddon.php uses _FILE_ rather than __FILE__

  1. Description-
    In GFCPTAddon::init(), _FILE_ is used instead of the magic constant __FILE__. The fix is simple: replace _FILE_ with __FILE__.

    With notices enabled in PHP, the incorrect constant results in the message:

    Notice: Use of undefined constant _FILE_ - assumed '_FILE_' in [...]/wp-content/plugins/gravity-forms-custom-post-types/gfcptaddon.php on line 62

    Product: Gravity Forms + Custom Post Types
    Version: 3

    Server: Apache 2.2.21
    Wordpress 3.2.1 (should affect any version)
    PHP 5.3.8 (should affect any version since at least 4)

    Posted 9 years ago on Tuesday February 21, 2012 | Permalink