• upon attempting to visit the home page of my website it will not display anything accept the following:

    Parse error: syntax error, unexpected ‘;’, expecting T_STRING or T_VARIABLE or ‘$’ in /home/paceleg1/public_html/wp-content/themes/pacelegal/index.php on line 6

Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you access your site via FTP and run the index.php file through an online validator?

    Thread Starter adele-pace

    (@adele-pace)

    Hi,

    thanks for your response.

    I am not sure what you mean by running the index.php through an online validator?

    Go to this website – it’s worked well for me in the past. It may be that there’s a bracket missing or something silly…

    https://www.meandeviation.com/tutorials/learnphp/php-syntax-check/v4/syntax-check.php

    Thread Starter adele-pace

    (@adele-pace)

    Thanks. I went into the index.php file and it is as follows. I copied it into notepad and ran it through the validator and it passed the test for php4. Is this something perhaps I should be checking in wordpress and perhaps should be posting in the wordpress forum?

    <?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’);
    ?>

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘WordPress error’ is closed to new replies.