Forums

[resolved] Fatal Error - cannot "redeclare" email? (6 posts)

  1. Cathy Tibbles
    Member
    Posted 4 years ago #

    I am getting this error:

    Fatal error: Cannot redeclare is_valid_email() (previously declared in /wp-content/plugins/email/email.php:425)

    I think this is the relevant code:

    //validate email adress
    					function is_valid_email($email)
    					{
      						return (eregi ("^([a-z0-9_]|\\-|\\.)+@(([a-z0-9_]|\\-)+\\.)+[a-z]{2,4}$", $email));
    					}

    I've no idea what all of that means - any help?

    Oh, and if I deactivate the plugin, is there another way of helping readers forward articles via email?

    Thanks a bunch,
    Cathy

  2. Cathy Tibbles
    Member
    Posted 4 years ago #

    Oh - and I deleted the folders before the "/wp-content" - isn't it a security risk to display everything from public_html onwards?

  3. Chris_K
    Member
    Posted 4 years ago #

    Fatal error: Cannot redeclare is_valid_email() (previously declared in /wp-content/plugins/email/email.php:425)

    What plugin is that -- and have you contacted the plugin's author?

  4. Cathy Tibbles
    Member
    Posted 4 years ago #

    The plug-in is WP-Email by Gamerz. No, i haven't bothered him with it, I thought it was my theme's error in the contact page handling. No?

  5. Chris_K
    Member
    Posted 4 years ago #

    Ah. Maybe I get it. This only happens with a certain theme? Does the theme have a functions.php where it has a function with the same name?

    As far as alternatives to allow readers to forward articles by email; you might look at "Share This" at Alex King's plugin page.

  6. Cathy Tibbles
    Member
    Posted 4 years ago #

    thank you very much!

Topic Closed

This topic has been closed to new replies.

About this Topic