Parse error: syntax error, unexpected T_STRING
-
Hi folks,
Wondering if anyone has seen this issues or would be kind enough to help me out here.I’m developing a new theme locally, my first theme from scratch so I’m a kinda wordpress newbie but in terms of web development I know what I’m doing.
Here is the full error:
Parse error: syntax error, unexpected T_STRING in D:\web\public_html\derekpaterson\wordpress_default\wp-content\themes\pixeljunkdesign\index.php on line 14 Call Stack # Time Memory Function Location 1 0.0012 363312 {main}( ) ..\index.php:0 2 0.0024 367224 require( 'D:\web\public_html\derekpaterson\wordpress_default\wp-blog-header.php' ) ..\index.php:17 3 0.2916 17926592 require_once( 'D:\web\public_html\derekpaterson\wordpress_default\wp-includes\template-loader.php' ) ..\wp-blog-header.php:16I have searched around but cant find a solution to this. I have tried changing the lines from the header, deleting some and then retrying the page, which is as follows:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
however the error still reports line 14 which I find a little suspect given that I removed many unecessary lines. I’ve also removed all the calls to php same issues persists.
Any ideas? Any help would be greatly appreciated. I really need to style my blog to look like the company website and its been on the list of todo’s for a while. Wasn’t expecting to get caught out so early in the development process with this!! 🙁
Also which is strange but interesting is the output from the Apache error log which each time the page is requested procues this:
[Mon Mar 12 10:31:31 2012] [error] [client 127.0.0.1] PHP Parse error: syntax error, unexpected T_STRING in D:\\web\\public_html\\derekpaterson\\wordpress_default\\wp-content\\themes\\pixeljunkdesign\\index.php on line 14 [Mon Mar 12 10:31:31 2012] [error] [client 127.0.0.1] PHP Stack trace: [Mon Mar 12 10:31:31 2012] [error] [client 127.0.0.1] PHP 1. {main}() D:\\web\\public_html\\derekpaterson\\wordpress_default\\index.php:0 [Mon Mar 12 10:31:31 2012] [error] [client 127.0.0.1] PHP 2. require() D:\\web\\public_html\\derekpaterson\\wordpress_default\\index.php:17 [Mon Mar 12 10:31:31 2012] [error] [client 127.0.0.1] PHP 3. require_once() D:\\web\\public_html\\derekpaterson\\wordpress_default\\wp-blog-header.php:16Whats these double slashes all about???
Other themes work within this install.
Thanks
Derek
The topic ‘Parse error: syntax error, unexpected T_STRING’ is closed to new replies.