WordPress.org

Ready to get started?Download WordPress

Forums

Creating a theme for myself, getting Parse Error (5 posts)

  1. sidetracking
    Member
    Posted 1 year ago #

    Ok so I'm creating a theme for myself, and even when I use the most basic of loops, I still get a php error:

    ( ! ) SCREAM: Error suppression ignored for
    ( ! ) Parse error: syntax error, unexpected end of file in C:\wamp\www\newsite\blog\wp-content\themes\cakes\index.php on line 121
    Call Stack
    #	Time	Memory	Function	Location
    1	0.0015	142656	{main}( )	..\index.php:0
    2	0.0023	144760	require( 'C:\wamp\www\newsite\blog\wp-blog-header.php' )	..\index.php:19
    3	0.3452	9323760	require_once( 'C:\wamp\www\newsite\blog\wp-includes\template-loader.php' )	..\wp-blog-header.php:16

    This doesn't happen with the twentyeleven theme, or any other theme I use, so I know it's not a problem with the wordpress setup. I just have no idea what it is, do I need to reference anything in my theme's index.php file?

    Here's a pastebin of my index.php: http://pastebin.com/ahaFhy43 ,That's the only file besides style.css in my theme's folder.

  2. sidetracking
    Member
    Posted 1 year ago #

    Solved:

    Simple had to add this to the top of my template.

    <?php
    /* Short and sweet */
    define('WP_USE_THEMES', false);
    require('./wp-blog-header.php');
    ?>
  3. True-blew
    Member
    Posted 1 year ago #

    Hi guys, my first time using everything. Need some help creating a blog. Getting this error when trying to run word press through wamp.

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

  4. Andrew
    Forum Moderator
    Posted 1 year ago #

    True-blew,

    As you're not contributing to the original poster, consider creating your own thread.

  5. True-blew
    Member
    Posted 1 year ago #

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

    Topic Closed

    This topic has been closed to new replies.

    About this Topic