This forum is no longer open and is for reading/searching only.

Please use our new MachForm Community Forum instead.

MachForm Community Forums » MachForm 2

Cannot redeclare validate_email with WordPress Multisite


  1. rssolo23
    Member

    Hello,

    I referenced the functions code that was found in this thread:
    http://www.appnitro.com/forums/topic/wordpress-integration-using-advanced-code?replies=21#

    It worked great and we've used it for over a year... However our site recently activated to Multisite. We now have a new error:

    Fatal error: Cannot redeclare validate_email() (previously declared in /home/xxxxx/public_html/wp-includes/ms-deprecated.php:136) in /home/xxxxx/public_html/form/includes/common-validator.php on line 221

    Any idea how we can go about fixing this?

    Posted 13 years ago #
  2. mattdmin
    Member

    Bumping this, anyone figure it out?

    Posted 13 years ago #
  3. canton
    Member

    So far my only technique for integrating machform with wordpress has been pretty brutal. I use my favorite text editor to do a search-replace on all files throughout machform installation with the 5 following replacements:

    DB_NAME becomes MACHDB_NAME
    DB_USER becomes MACHDB_USER
    DB_PASSWORD becomes MACHDB_PASSWORD
    DB_HOST becomes MACHDB_HOST
    validate_ becomes MACHvalidate_

    Which of course have to be re-applied each time machform is updated.

    You can see the integration working on the latest wordpress here:

    http://www.nmschoolforthearts.org/attend/inquiry/

    As per some of the tips here:

    http://www.appnitro.com/forums/topic/wordpress-integration-using-advanced-code

    Posted 13 years ago #
  4. mattdmin
    Member

    Actually, I got Machforms integrated into WorPress, thanks!

    Posted 13 years ago #
  5. mactullyfla
    Member

    What did you do to fix it? I am having the same issue.

    Posted 13 years ago #

RSS feed for this topic

Reply