I
I
itgraine2018-09-24 21:09:52
WordPress
itgraine, 2018-09-24 21:09:52

After transferring from a hosting to a new hosting, the theme settings go astray?

Hello! Actually the question is in the title.
My actions:
1. I download and upload files to a new hosting
2. I export the database dump, open the database dump in the atom editor and replace the old url with a new one, then save it.
3. I import the database dump into the database created on the new hosting
4. I enter access from the new database into wp-config.
After the site is launched, but all the theme settings go astray, plus there are errors in everything.

Notice: Trying to get property of non-object in /home/pnppddzq/public_html/wp-includes/nav-menu.php on line 784

Notice: Trying to get property of non-object in /home/pnppddzq/public_html/wp-includes/nav-menu.php on line 780

Notice: Trying to get property of non-object in /home/pnppddzq/public_html/wp-includes/nav-menu.php on line 780

Notice: Trying to get property of non-object in /home/pnppddzq/public_html/wp-includes/nav-menu.php on line 784

I tried to use duplecator but after creating the package it gives an error, most likely everything is related to hosting.
Пакет содержит ошибку.
Here are the logs, but there seems to be nothing in them by mistake
********************************************************************************
DUPLICATOR-LITE PACKAGE-LOG: September 24, 2018 4:16 pm
NOTICE: Do NOT post to public sites or forums 
********************************************************************************
VERSION:	1.2.46
WORDPRESS:	4.9.8
PHP INFO:	5.5.38 | SAPI: apache2handler
SERVER:		Apache/2.4.7 
PHP TIME LIMIT: (0) no time limit imposed 
PHP MAX MEMORY: 2048M (512M default) 
MEMORY STACK: 62.5MB 

********************************************************************************
DATABASE:
********************************************************************************
BUILD MODE:   MYSQLDUMP
MYSQLTIMEOUT: 5000
MYSQLDUMP:    Is Supported 
FILTERED: [] 
RESPONSE: Ran from /usr/bin/mysqldump 
TABLES: total:27 | filtered:0 | create:27 
SQL CREATED: backup_wp_fc38f1d6304af0c19320_20180924161402_database.sql 
SQL FILE SIZE: 6.4MB (6706595) 
SQL FILE TIME: 2018-09-24 16:16:16 
SQL RUNTIME: 0.24 sec. 

******************************************************************************** 
ARCHIVE (ZIP): 
******************************************************************************** 
ARCHIVE DIR:  /home/u159385/saharooq/site 
ARCHIVE FILE: backup_wp_fc38f1d6304af0c19320_20180924161402_archive.zip 
FILTERS: *ON* 
DIRS:
  not set 
FILES:
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/1459189273_0.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-1170x780.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-1280x960.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-150x150.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-1570x869.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-1920x1080.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-225x300.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-330x330.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-370x230.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-370x540.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-450x263.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-450x471.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-480x540.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-512x512.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-560x350.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-570x318.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-570x666.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-640x480.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-640x696.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-640x853.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-768x1024-320x240.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-768x1024-640x480.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-768x1024.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer-930x570.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/07/FullSizeRendавer.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/DSC_1424.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/DSC_1447.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/DSC_1519.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/DSC_1690.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/IMG_2299.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/IMG_2300.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/IMG_2301.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/IMG_2304-1.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/IMG_2304.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/IMG_4461.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/IMG_5107.jpg
  /home/u159385/saharooq/site/wp-content/uploads/2018/08/IMG_8023.jpg 
EXTS:  not set 
---------------------------------------- 
COMPRESSING 
SIZE:	811.5MB 
STATS:	Dirs 1,024 | Files 10,003 
SQL ADDED: backup_wp_fc38f1d6304af0c19320_20180924161402_database.sql 
ZipArchive Object
(
    [status] => 0
    [statusSys] => 0
    [numFiles] => 11027
    [filename] => /home/u159385/saharooq/site/wp-snapshots/tmp/backup_wp_fc38f1d6304af0c19320_20180924161402_archive.zip
    [comment] => 
)

Tell me what could be the cause of the errors and why the theme settings get lost? Thank you!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2018-09-24
@itgraine

2. I export the database dump, open the database dump in the atom editor and massively replace the old url with a new one, then save it.

That's the problem...
Replace only 2 rows from the wp_options table (home_utl site_url).
All other replacements are done through the better search replace plugin (this way you save the serialized data and guid... and, accordingly, theme settings, etc.)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question