Fatal Error Cannot Redeclare WordPress Plugin

How to Fix – Fatal error: Cannot redeclare _wp_post_revision_fields()

I just encountered the following WordPress upgrade error when moving to 3.6 (though you may be experiencing it with WordPress 3.7 or newer):
Fatal error: Cannot redeclare _wp_post_revision_fields() in /home/xxxx/public_html/xxxx/wp-includes/revision.php on line 25

Pesky, huh? Easily fixed though. Download the latest copy of WordPress, then connect to your site via FTP. Rename wp-includes (or delete it) and upload a new copy from your newly downloaded version.

All should now be well!

It may have been related to my server load at the time causing a timeout.

Incoming search terms:

  • Fatal error: Cannot redeclare _wp_post_revision_fields()
  • cannot redeclare _wp_post_revision_fields()

Related Posts

I am having the same problem, I am now uploading the new version of WP. Question does it matter what I rename the wp-includes folder? Will that effect the function of my site?
Thanks,
Ronda

on October 23, 2013 Reply

No — it does not matter. You are renaming it so that it becomes inactive (basically, a backup). You then upload a new copy of it (which still has the name “wp-includes”).

Hope that makes sense!

WordPress.org

Rainmaker Form – Best Forms Plugin on WP

Beskrivelse

Rainmaker is free and the easiest solution to collect leads on your WordPress website.
It provides you readymade form templates, styles that can be inserted anywhere on your WordPress website.

Feature Overview

  • Readymade subscription forms
  • Ability to add any form with custom HTML
  • Elegant designs
  • No coding required (No HTML, CSS, JavaScript required)
  • Extremely simple and user-friendly
  • Easy Embedding anywhere on WordPress site(blog post, page, sidebar,etc.)
  • Go live instantly
  • Automatically saves data; no extra plugins/configurations needed
  • Complete data security
  • Easy MailChimp Integration; other services coming soon
  • Integration with other 400+ apps via IFTTT or Zapier
  • Enhanced flexibility using Icegram

Benefits of Rainmaker:

Simplest Way to Create Forms on WordPress

Rainmaker makes the process of creating forms and collecting customer data extremely simple. It’s a free WordPress plugin that gives you readymade high converting forms that can be displayed anywhere on your WordPress website using a simple shortcode.

Your Customer Data is Completely Secure

Once the user enters information in the form, the data gets stored automatically in the your websites WordPress database keeping it safe and secure. You can also choose to save this data elsewhere like your MailChimp database or in a 3rd Party Webhook.

No Coding Required

Unlike other plugins, you don’t need to have any coding background in HTML, CSS, Javascript. The forms are all readymade. You only have to select the form fields, form design and place you want the data saved and deploy it.

Rainmaker is made for Everyone!

Be a blogger, marketer or a store owner, Rainmaker is your must have tool/best bet to keep in touch with your customers.

Top Reasons that make Rainmaker a full-proof form plugin for your WordPress website.

Instant Forms for Use

Rainmaker comes with readymade 3 elegant subscription form designs. Just select one that best suits your need and deploy it. No need of even a mailing list. No waiting for conversion improvements and results. Rainmaker gets you leads right away.

Absolutely No Coding Required

Rainmaker forms are completely code free. No need to hustle with messy HTML, CSS, JavaScript. No need of having any technical knowledge to use Rainmaker. It is that simple.

Go Live instantly

Choose the form design and simply add the shortcode anywhere on your website. You are live in under 5 minutes to capture leads.

Embed Anywhere in WordPress

Easy Embed the form anywhere on WordPress site; a blog post, page, sidebar, etc. You can even add a Rainmaker form to your own lead capture / landing page design for complete control.

Automatic Data Save and Security

Rainmaker automatically saves all form submissions to WordPress database and keeps it safe. No extra configuration or plugins needed. This way you can store and view lead information on your site even if you are subscribing them to a mailing list.

Easy Email Services Integration

Connect your mailing list service and automatically subscribe leads to a list easily. Rainmaker integrates MailChimp signup forms with WordPress currently and other popular services are coming soon.

3rd Party Webhooks

With its unique webhooks support, you can relay submitted form data to your own CRM, internal systems or any other 3rd party service. You can even send it to IFTTT or Zapier for instant integration with 400+ apps.

Best Marketing Solution

Full Compatibility with Icegram
Combine Rainmaker with Icegram and make it the best marketing tool. You can use Icegram to show popups, sidebars, action bars, exit intent overlays or any other type of attention grabbing message. Icegram is the best all-in-one WordPress plugin for onsite visitor engagement using popups, header / footer bars, notifications, messengers (and much more).

Fatal Error: Cannot redeclare lellaiv()

This topic contains 1 reply, has 2 voices, and was last updated by udadmin 3 weeks, 5 days ago.

I have recently had my site taken down by the Updraft plugin. When disabled the site is up and fine. The error message I get when trying to activate the plugin is this:

Fatal error: Cannot redeclare lellaiv() (previously declared in /home2/ourloca8/public_html/visualchaos.co.uk/wp-content/plugins/updraftplus/addons/lwkgedff.php:2) in /home2/ourloca8/public_html/visualchaos.co.uk/wp-content/plugins/updraftplus/addons/lwkgedff.php on line 2

Those files are not part of the UpdraftPlus plugin. Unfortunately, their presence inside an UpdraftPlus folder indicates that your site has been hacked. (Once hacked, a hacker can store his stuff anywhere he likes – it doesn’t indicate how the hack was performed; that needs investigating by using the webserver log files). You will want to take the site offline and get it cleaned up by someone with suitable expertise.

Fatal error: Cannot redeclare admin_created_user_email

Getting a fatal error when I tried to edit the profile in a subsite:

Fatal error: Cannot redeclare admin_created_user_email

Comments 5

Hello Dutchman
We have forwarded this to our developers to investigate further and will update you here as soon as we have some additional info.

Best regards,
Majid

I have done a small change in a file and now it seems to be working. I have reported this to main developer so it can be fixed in next release.

Could you please test and let us know if it works on your side too?

Could you please share which plugin is used for the front end registration? We need to check if that plugin checks if function exists before including the user.php file.

The issue was with a Theme and not a plugin, if its related the issue that has been reported.
It’s Vantage from Appthemes and I used a Child theme names Business Directory.

And the error occurred when users are trying to update their profile (front end, theme’s profile page). Like info, cover pic or avatar.

Hope this info helps.
Cheers!

Thanks for info Dutchman !

It’s a 3rd party theme so I can’t install it. I had a look though on your server and I notice that in file
wp-content/themes/appthemes-vantage/theme-framework/kernel/view-edit-profile.php

29 it includes the WP core user.php file without checking if it has already been included:
require ABSPATH . ‘/wp-admin/includes/user.php’;
It would be safer if the theme developers would change it to:

This would avoid issues like the one you are having :slight_smile:

Previously I have altered a file in the defender plugin, in file
wp-defender/main-activator.php
I changed line 10, from:
add_action( ‘init’, array( &$this, ‘init’ ), 9 );
to
add_action( ‘init’, array( &$this, ‘init’ ), 20 );

so Defender include loads after theme has included the user.php.

In case you want to check what I recommended regarding the theme, you need to restore the Defender line back to:
add_action( ‘init’, array( &$this, ‘init’ ), 9 );
so the issue re-appears, and then try modifying the theme file as I explained.

If you prefer I can do it for you :slight_smile:

Silkenhut’s World

My playground – Anything under the sun!

WordPress Error Fatal error: Cannot redeclare pclziputilpathreduction()

WordPress Error | Fatal error: Cannot redeclare pclziputilpathreduction() | Solution

I guess you stumbled this page after getting this error on “Fatal error: Cannot redeclare pclziputilpathreduction()”? It looks just like this.

Fatal error: Cannot redeclare pclziputilpathreduction()

How I managed to get the problem “Fatal error: Cannot redeclare pclziputilpathreduction()”

After reading on Macuha’s post on the Global Translator effect, I tried to do it too (copycat!). Aside from that, I also want to know about wordpress’ auto plug-in install (my next post) so I did some checking and when I was about to install it, I got this error.

Fatal error: Cannot redeclare pclziputilpathreduction() (previously declared in /home/silken/public_html/blog/wp-content/plugins/wordpress-automatic-upgrade/lib/pclzip.lib.php:5421) in /home/xxxxxx/wp-admin/includes/class-pclzip.php on line 5498

Solution to this error.

After doing a bit of Googling, the solution to this error is to Deactivate the wordpress automatic upgrade plug-in and that’s it. No more problems!

Leave a Reply

Your email address will not be published. Required fields are marked *