• Resolved pvdv

    (@pvdv)


    Hello,

    I use a testsite. When everything is fine I copy by using a script to the real website. The scripts copies the website and database, replaces the URL and homedir, and does a database serialization.

    This works fine except for Postie, I get this message: “Postie is almost ready. You must enter your email settings for it to work”. So it forgets its settings!

    What can I do to fix this problem??

    With regards,
    Paul van der Vlis

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Wayne Allen

    (@wayneallen-1)

    Not knowing exactly how the copy is made it is hard to help. Postie puts all its settings is the standard place. You can find yours like so:
    SELECT * FROM wp_options WHERE option_name LIKE 'postie-settings'

    Thread Starter pvdv

    (@pvdv)

    On the database, I do this:

    cp -a domaintest.sql domain.sql
    rpl ‘https://test.domain.nl’ ‘https://domain.nl’ domain.sql
    rpl ‘test.domain.nl’ ‘domain.nl’ domain.sql
    rpl ‘/home/domaintest’ ‘/home/domain’ domain.sql
    php fix-serialization.php domain.sql
    mysql domain < domain.sql

    Plugin Author Wayne Allen

    (@wayneallen-1)

    Thanks for the info. A couple of questions:

    Where does domaintest.sql come from? Does it even have the Postie settings in it?
    What does fix-serialization.php do?

    Thread Starter pvdv

    (@pvdv)

    domaintest.sql is a database dump of the test-site. It has a working Postie.
    I use: mysqldump -QR $database > $database.sql

    The fix-serialization script is a simple script what fixes the length attributes for serialized strings, I’ve copied it here: https://vandervlis.nl/files/fix-serialization.php.txt

    With regards,
    Paul van der Vlis

    Plugin Author Wayne Allen

    (@wayneallen-1)

    I would diff domaintest.sql and domain.sql to see if any other changes are being made by fix-serialization.php. That script is so old it won’t run on my PHP version.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problems while copying site’ is closed to new replies.