Andrew Nevins
(@anevins)
WCLDN 2018 Contributor | Volunteer support
What is line 13 of that file?
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
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' );
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.
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?
This is the new message:
Fatal error: Call to undefined function wp() in C:\wamp\www\wordpress\wp-blog-header.php on line 13
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?
. ‘/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
Why would the original code come with a glitch. Didn’t think I would be having such problems so early in the process.