Support » How-To and Troubleshooting » Creating a theme for myself, getting Parse Error

Creating a theme for myself, getting Parse Error

  • sidetracking


    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.

Viewing 4 replies - 1 through 4 (of 4 total)
  • sidetracking



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

    /* Short and sweet */
    define('WP_USE_THEMES', false);

    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

    Moderator Andrew Nevins


    Forum moderator


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

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

    Viewing 4 replies - 1 through 4 (of 4 total)
    • The topic ‘Creating a theme for myself, getting Parse Error’ is closed to new replies.