I made a wordpress site and downloaded all the files, put it in my portfolio, pointed out the path to it, uploaded it to the server, when I clicked on it on the site, it gives the following error:

Fatal error: Call to undefined function get_header () in /home/u481836830/public_html/ex_5/wp-content/themes/mh-newsdesk-lite/index.php on line 1

How to properly upload a site made in Wordpress to my portfolio site?

  • A site on a Vorpress is a dynamic site: in addition to “download all files”, you will need to make a copy of the database (and, possibly, change the settings for connecting to the database). In addition, it seems that you have not copied all the files - some service files of the WordPress kernel are missing. Perhaps you should consider an alternative: in the portfolio lay out a static copy of the site (a program such as teleport pro). Moving the site step by step was briefly described here: stackoverflow.com/questions/466125 - AK ♦
  • In addition, with a very high degree of probability, the site for WordPress was in the root of the site, and you want to put it in a separate subfolder ex_5 - so you need to decide how the engine directories will be located so that the connection is correct. - AK ♦
  • I would advise to transfer the site with the help of special plug-ins. For example, XCloner. Maybe there are more convenient alternatives and someone else will tell. - Ivan

1 answer 1

Install WordPress from scratch in the directory you need (in one of the folders in your portfolio), set it up, and then transfer only the theme created earlier and, if necessary, records from the database (if you don’t know how, then better with a plugin, for example, WP Migrate DB ).