• Hi there.

    I’ve recently moved a site for a client to our hosting and the domain has changed while I work on it to a temp domain. Since moving it, the mail tab on every contact form is empty, whereas on the live site it has the relevant data.

    The site is an exact copy of the currently live one so I have no idea what is doing it, unless the tables or something are associated with the domain in the database?

    Cheers,
    Ash

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author Takayuki Miyoshi

    (@takayukister)

    Maybe you made some mistakes in migrating the database. For such cases, using XML data export/import is recommended.

    FAQ > How can I export/import contact form data?

    Thread Starter AshboDev

    (@ashbodev)

    Morning!

    I took a dump of the database from the live server, and SCP’d the files over and just updated wp-config to connect to the DB on the new server.

    I’ve already tried using the WP export tool on the old site and importing it on the new, but with no results sadly.

    I’ll compare the 2 databases. I’m not sure if the find and replace script I ran would affect it, as I was just searching for the old domain and replacing with the staging domain.

    Weird..

    I’ll look into it and let you know if I strike gold!

    Thread Starter AshboDev

    (@ashbodev)

    Okay so the client decided to re-fill the fields in manually. No problem, all working again.

    Until I changed the domain and put the site live. Gone, again.

    Any ideas?

    How is the info stored in the database, by domain or theme name or something? The only thing which has changed is the domain so I can only assume something is saved against that.

    Just looking into it now as the site is live now.

    Thread Starter AshboDev

    (@ashbodev)

    Okay…

    So I saved [email protected] in one of the forms (In the “To” field in the mail tab) to see where it saved. I found it saved in the post_content for the CPT. I looked at one of the other contact forms and noticed it was doing the same, but with the info which was previously saved in there:

    
    [your-name] <[your-email]>
    [email protected]
    From: [your-name] [your-email]
    Subject: Contact us
    
    Submitted from: [webpage]
    
    Name: [your-name]
    
    Job Title: [job-title]
    Company: [company]
    
    Address:
    [address]
    
    Phone: [phone]
    
    Email: [your-email]
    
    Message Body:
    [your-message]
    

    So it appears all the fields are there but not actually being used. The fields in the mail tab appear to be empty (I assume just not setting the value="", and the emails aren’t sending either.

    At a bit of a loss now.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Mail tab empty after site move’ is closed to new replies.