<?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: Cannot redeclare class PHPMailer</title>
		<link>https://legacy.forums.gravityhelp.com/topic/fatal-error-fatal-error-cannot-redeclare-class-phpmailer</link>
		<description>Gravity Support Forums Topic: Fatal error: Cannot redeclare class PHPMailer</description>
		<language>en-US</language>
		<pubDate>Mon, 06 Apr 2026 09:56:22 +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-fatal-error-cannot-redeclare-class-phpmailer" rel="self" type="application/rss+xml" />

		<item>
			<title>Carl Hancock on "Fatal error: Cannot redeclare class PHPMailer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fatal-error-fatal-error-cannot-redeclare-class-phpmailer#post-28351</link>
			<pubDate>Wed, 22 Jun 2011 20:06:48 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28351@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;The problem is your theme, it was developed by a theme developer that doesn't understand what they are doing and doesn't follow best practices.  It is including a PHP file that it should not be including, phpmailer.  This is what is breaking things.  &#60;/p&#62;
&#60;p&#62;PHPMailer is built into WordPress and is relied on by plugins that send email using the wp_mail() function.  Themes and plugins shouldn't be including their own version, because it causes this error to occur if you do.&#60;/p&#62;
&#60;p&#62;See this screenshot of your themes functions.php file, notice the first require_once line in the code: &#60;a href=&#34;http://grab.by/apU2&#34; rel=&#34;nofollow&#34;&#62;http://grab.by/apU2&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;I went ahead and removed this line and the form is now submitting without any problems.&#60;/p&#62;
&#60;p&#62;These issues are common with themes purchased from ThemeForest because they are usually developed by theme developers that don't really understand WordPress development.  They look pretty, but they are terrible under the hood.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Carl Hancock on "Fatal error: Cannot redeclare class PHPMailer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fatal-error-fatal-error-cannot-redeclare-class-phpmailer#post-28302</link>
			<pubDate>Wed, 22 Jun 2011 00:39:05 +0000</pubDate>
			<dc:creator>Carl Hancock</dc:creator>
			<guid isPermaLink="false">28302@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Send us a WordPress admin login for your site as well as an FTP login and I can take a look and see what is going on so we can get it resolved.  &#60;/p&#62;
&#60;p&#62;It's something specific to your site, but we can help you determine what it is and how to fix it. You can send me the necessary login information via our Contact Us form here: &#60;a href=&#34;http://www.gravityforms.com/contact-us/&#34; rel=&#34;nofollow&#34;&#62;http://www.gravityforms.com/contact-us/&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Please reference this forum post when doing so that way we know what it is in reference to.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>thecityvault on "Fatal error: Cannot redeclare class PHPMailer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fatal-error-fatal-error-cannot-redeclare-class-phpmailer#post-28301</link>
			<pubDate>Tue, 21 Jun 2011 23:16:08 +0000</pubDate>
			<dc:creator>thecityvault</dc:creator>
			<guid isPermaLink="false">28301@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Also FYI, I just realized after testing some times, I get all the submissions under the &#34;Entries&#34; section. It's just when the page is redirected I get a blank page with that error.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>thecityvault on "Fatal error: Cannot redeclare class PHPMailer"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/fatal-error-fatal-error-cannot-redeclare-class-phpmailer#post-28300</link>
			<pubDate>Tue, 21 Jun 2011 23:09:38 +0000</pubDate>
			<dc:creator>thecityvault</dc:creator>
			<guid isPermaLink="false">28300@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Hello,&#60;/p&#62;
&#60;p&#62;I just purchased this theme. When I go to test the form and I submit all the entries I get the following message:&#60;br /&#62;
&#34;Fatal error: Cannot redeclare class PHPMailer in /----/html/wp-includes/class-phpmailer.php on line 34&#34;&#60;/p&#62;
&#60;p&#62;I can't seem to figure out this problem. I love this plugin and would love to keep it as long as it works. Please help me resolve this issue soon.
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
