After transferring from the demo server (everything works ok) to the production server, the WP produces an error:

/ ** * Front to the WordPress application. Wp-blog-header.php * * @package WordPress * / / ** * Tells WordPress to load the WordPress theme and output it. * * @var bool * / define ('WP_USE_THEMES', true); / ** Loads the WordPress Environment and Template * / require (dirname ( FILE ). '/Wp-blog-header.php'); `

Tell me how to fix it?

  • Reload the files again - mihdan
  • Tried, the result was the same. The problem was solved, it was because there was no PHP on the new production server, it can be enabled in the WWW domains section on the server. An example can be found here - ultimatum

2 answers 2

you have PHP on the server is not processed. Either PHP support is not included, or something else.

    You opened the index file in the wrong format. You are informed that this file does not perform any functions other than loading the header from the template. There may be several solutions to your question. First, check the .htaccess file. It should indicate:

    RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] 

    If this does not help, try installing a standard theme from the wordpress repository and open your site with it. If the site works with it, you can try to partially replace the elements of your header, respectively. parts from the standard theme.

    • I checked all this, this is not the case, the site itself is working and it works correctly on a demo server, I have a suspicion of a working server itself. - ultimatum