Support » Fixing WordPress » Fatal error: Cannot redeclare is_email

  • I am trying to integrate my wordpress blog into a regular PHP page on my site and I am getting the following error:

    Fatal error: Cannot redeclare is_email() (previously declared in /home/shocke6/public_html/includes/functions.inc.php:313) in /home/shocke6/public_html/wordpress/wp-includes/formatting.php on line 1602

    If anyone could please let me know how I would go about fixing this. The page that I am getting this error is at http://www.shockertees.com/new_test.php

Viewing 1 replies (of 1 total)
  • You’re being told that you have two functions that are both named ‘is_email’ and that is a fatal error. You will need to check if that function has already been defined in your code, and I’d say to do that in your own code, not in the WordPress files.

    Wrap your function like this:

    if (! function_exists( 'is_email' )) {
        function is_email () {
            // Your function in here.
        }
    }
Viewing 1 replies (of 1 total)
  • The topic ‘Fatal error: Cannot redeclare is_email’ is closed to new replies.