<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Bug Report: gfcptaddon.php uses _FILE_ rather than __FILE__</title>
		<link>https://legacy.forums.gravityhelp.com/topic/bug-report-gfcptaddonphp-uses-_file_-rather-than-_file_</link>
		<description>Gravity Support Forums Topic: Bug Report: gfcptaddon.php uses _FILE_ rather than __FILE__</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 01:24:21 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/bug-report-gfcptaddonphp-uses-_file_-rather-than-_file_" rel="self" type="application/rss+xml" />

		<item>
			<title>sublimity on "Bug Report: gfcptaddon.php uses _FILE_ rather than __FILE__"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/bug-report-gfcptaddonphp-uses-_file_-rather-than-_file_#post-50050</link>
			<pubDate>Mon, 20 Feb 2012 20:47:39 +0000</pubDate>
			<dc:creator>sublimity</dc:creator>
			<guid isPermaLink="false">50050@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Description-&#60;br /&#62;
In GFCPTAddon::init(), &#60;code&#62;_FILE_&#60;/code&#62; is used instead of the magic constant &#60;code&#62;__FILE__&#60;/code&#62;. The fix is simple: replace &#60;code&#62;_FILE_&#60;/code&#62; with &#60;code&#62;__FILE__&#60;/code&#62;.&#60;/p&#62;
&#60;p&#62;  Symptoms-&#60;br /&#62;
With notices enabled in PHP, the incorrect constant results in the message:&#60;/p&#62;
&#60;blockquote&#62;&#60;p&#62;Notice: Use of undefined constant _FILE_ - assumed '_FILE_' in [...]/wp-content/plugins/gravity-forms-custom-post-types/gfcptaddon.php on line 62&#60;/p&#62;&#60;/blockquote&#62;
&#60;p&#62;  Environment-&#60;br /&#62;
Product: Gravity Forms + Custom Post Types&#60;br /&#62;
Version: 3&#60;/p&#62;
&#60;p&#62;Server: Apache 2.2.21&#60;br /&#62;
Wordpress 3.2.1 (should affect any version)&#60;br /&#62;
PHP 5.3.8 (should affect any version since at least 4)
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
