Das ist der Code der Datei index.php mit einem fehlerhaften PHP-Tag am Anfang und auch fehlerhaften Kommentarzeichen und fehlerhaftem PHP-Code...
Falsch: <? php
Richtig: <?php
Falsch: / **
Falsch: * /
Richtig: /**
Richtig: */
Falsch: required( ... )
Richtig: require( ... )
Eine korrekte Datei index.php im WordPress Hauptordner sieht so aus:
PHP
<?php
/**
* Front to the WordPress application. This file doesn't do anything, but loads
* wp-blog-header.php which does and tells WordPress to load the theme.
*
* @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' );
Alles anzeigen