M
M
Magnetx2018-06-18 12:53:09
WordPress
Magnetx, 2018-06-18 12:53:09

Uploading a site from cms wordpress to hosting, why did everything fly?

Good day. I designed the site according to the layout, put it on cms wordpress, everything is fine on the local server, uploaded the site to free hosting 000webhost by archiving the entire wordpress with my theme, but everything on the site flew off (pictures, posts, fonts). I also loaded the database through phpmyadmin, the database got up without problems. Apparently, the hosting refuses to understand php or does not open wordpress correctly, how can this be solved?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
A
Arman, 2018-06-18
@Arik

Can't say for sure without a link. but something tells you that you made full/absolute paths to fonts and pictures, but you needed relative

A
Alexander Sobolev, 2018-06-18
@san_jorich

I agree with Arik. Lots of options. From connecting the database (not import, but connection) to the paths and version of php. Try to put the latest stable version of php in your hosting console (7.1 like), update WP to the latest version, and carefully analyze your theme for relative paths, and self-written plugins (if any)

E
Egor Sokolov, 2018-06-18
@Harley347

Did you change the paths in the database dump? Let's say you had http://localhost on the locale, and the test domain was test.example.com. The peculiarity of WP is that it writes absolute paths to files in the database. Try using a text editor to replace all localhost with test.example.com

K
Katerrinka, 2018-06-18
@Katerrinka

It was like this for me when I just transferred it manually - I copied it via FTP. Transfer using the Duplicator plugin, it correctly changes the domain name and everything will work.

A
Aleksandr, 2018-06-18
@alabastr5

in the folder with the site there is a file wp-config.php where the user settings for the database (database username) and the name of the database server host, user password are stored. Change them to those provided by the hosting.

T
tyzberd, 2018-06-18
@tyzberd

there is a couple of sql to replace the url in the database https://www.reg.ru/support/hosting-i-servery/sajty...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question