<?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: Fatal error: Class &#039;RGForms&#039; not found on preview</title>
		<link>https://legacy.forums.gravityhelp.com/topic/fatal-error-class-rgforms-not-found-on-preview</link>
		<description>Gravity Support Forums Topic: Fatal error: Class &#039;RGForms&#039; not found on preview</description>
		<language>en-US</language>
		<pubDate>Mon, 20 Apr 2026 03:24:54 +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/fatal-error-class-rgforms-not-found-on-preview" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Fatal error: Class &#039;RGForms&#039; not found on preview"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fatal-error-class-rgforms-not-found-on-preview#post-41738</link>
			<pubDate>Mon, 21 Nov 2011 15:40:22 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">41738@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The issue going to be wp-content being loaded from a custom location.  There are a handful of features in Gravity Forms, the Preview being the primary one, that calls PHP directly and outside of the WordPress admin.  Because wp-content is located in a custom location it is then unable to find the wp-load.php.  Unfortunately when wp-content has been moved, you then can't execute code the same way when utilizing wp-load this way.&#60;/p&#62;
&#60;p&#62;The only fix for the preview when you encounter this right now is to edit the preview.php and hardcode the location of the wp-load function.   It has to get to the wp-load.php in order to execute and it needs to know where it is.&#60;/p&#62;
&#60;p&#62;We will be fixing this in an upcoming release.  Maybe not in the 1.6.2 release but before 1.7 is released this is something we will be updating.  We have to change a variety of functionality to take into account this scenario, including how Preview works.&#60;/p&#62;
&#60;p&#62;Surprisingly in over 2 years this has only come up as an issue in the last 2 weeks or so.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>anmari on "Fatal error: Class &#039;RGForms&#039; not found on preview"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fatal-error-class-rgforms-not-found-on-preview#post-41703</link>
			<pubDate>Mon, 21 Nov 2011 02:37:48 +0000</pubDate>
			<dc:creator>anmari</dc:creator>
			<guid isPermaLink="false">41703@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Me again - another idea would be to have a draft 'preview' page instead, so that the form could be previewed in the context of the site's theme (and of course WordPress would be fully loaded.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>anmari on "Fatal error: Class &#039;RGForms&#039; not found on preview"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fatal-error-class-rgforms-not-found-on-preview#post-41702</link>
			<pubDate>Mon, 21 Nov 2011 02:19:55 +0000</pubDate>
			<dc:creator>anmari</dc:creator>
			<guid isPermaLink="false">41702@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Fatal error: Class 'RGForms' not found in C:\web\wpbeta\wp\wp-content\plugins\gravityforms\preview.php on line 8&#60;/p&#62;
&#60;p&#62;I suspect that this maybe because I have wp-content relocated (sideways! :) ). Disappointed that a plugin of gravity forms reputation would cope with that?   (Many of my sites have such a structure and most plugins cope.&#60;/p&#62;
&#60;p&#62;Looking at preview.php it seems it is trying to include wp-load.php.&#60;/p&#62;
&#60;p&#62;Please see&#60;br /&#62;
&#60;a href=&#34;http://ottodestruct.com/blog/2010/dont-include-wp-load-please/&#34; rel=&#34;nofollow&#34;&#62;http://ottodestruct.com/blog/2010/dont-include-wp-load-please/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;and further down in the comments there is discussion about better ways of doing what one wants to do where one needs wp_loaded,  such as checking for a $_GET parameter on an early action.&#60;br /&#62;
Maybe like suggested here: &#60;a href=&#34;http://ottodestruct.com/blog/2010/dont-include-wp-load-please/comment-page-1/#comment-1936&#34; rel=&#34;nofollow&#34;&#62;http://ottodestruct.com/blog/2010/dont-include-wp-load-please/comment-page-1/#comment-1936&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;This would get around the difficulty in loading the code and still allow you to achieve the preview? &#60;/p&#62;
&#60;p&#62;In the meantime is there a fix around this ? or else I imagine I have to hardcode the wp-load  for now (urg).  I have resetup a plain dev wp site for now for testing.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
