• Hi everyone. Need some help creating a blog…it’s my first time creating one. I’m using Wamp to run WordPress. This is the error I received:

    Parse error in C:\wamp\www\wordpress\wp-blog-header.php on line 13

Viewing 13 replies - 1 through 13 (of 13 total)
  • Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    What is line 13 of that file?

    Thread Starter True-blew

    (@true-blew)

    I’m using notepad editor..so this is what i see

    <?php
    /**
    * Loads the WordPress environment and template.
    *
    * @package WordPress
    */

    if ( !isset($wp_did_header) ) {

    $wp_did_header = true;

    require_once( dirname(__FILE__) . ‘/wp-load.php’
    wp();

    require_once( ABSPATH . WPINC . ‘/template-loader.php’ );

    }
    .

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which line is line 13?

    Thread Starter True-blew

    (@true-blew)

    I don’t know what line 13 is. The code is all jumbled when using notepad. It looks very clear when i paste it here so I suppose it is where the fullstop is at the end of the code

    <?php
    /**
    * Loads the WordPress environment and template.
    *
    * @package WordPress
    */

    if ( !isset($wp_did_header) ) {

    $wp_did_header = true;

    require_once( dirname(__FILE__) . ‘/wp-load.php’
    wp();

    require_once( ABSPATH . WPINC . ‘/template-loader.php’ );

    }
    .

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try changing this;

    require_once( dirname(__FILE__) . '/wp-load.php'

    to this;

    require_once( dirname(__FILE__) . '/wp-load.php' );

    Thread Starter True-blew

    (@true-blew)

    There were no numbers or symbols in the original code but I have inserted what you suggested to read like this:

    <?php
    /**
    * Loads the WordPress environment and template.
    *
    * @package WordPress
    */

    if ( !isset($wp_did_header) ) {

    $wp_did_header = true;

    require_once( dirname(__FILE__) . '/wp-load.php' );
    wp();

    require_once( ABSPATH . WPINC . ‘/template-loader.php’ );

    }

    Hope that’s correct.

    Thread Starter True-blew

    (@true-blew)

    Oooh…the inserted bit of code didnt show.

    Anyways I tried running the code with your suggestion, got the same error

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Which theme are you using?

    Thread Starter True-blew

    (@true-blew)

    This is the new message:

    Fatal error: Call to undefined function wp() in C:\wamp\www\wordpress\wp-blog-header.php on line 13

    Thread Starter True-blew

    (@true-blew)

    using theme:

    pmahomme

    Don’t know it that’s what you’re asking.

    Btw i put back a semicolon and got the original error message:

    Parse error: parse error in C:\wamp\www\wordpress\wp-blog-header.php on line 12

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Where did you put a semicolon?

    Thread Starter True-blew

    (@true-blew)

    . ‘/wp-load.php’; );

    I took it back out. still getting:

    Fatal error: Call to undefined function wp() in C:\wamp\www\wordpress\wp-blog-header.php on line 13

    Thread Starter True-blew

    (@true-blew)

    Why would the original code come with a glitch. Didn’t think I would be having such problems so early in the process.

Viewing 13 replies - 1 through 13 (of 13 total)

The topic ‘Parce error creating a blog – using wamp’ is closed to new replies.