Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

Wordpress Themes - WP Forum at BFA » Running WordPress » Installing & running WordPress »

[SOLVED] Syntax error in index.php

Old Oct 20, 2011, 12:54 PM
3 posts · Oct 2011
[SOLVED] Syntax error in index.php

Hello -

I am new to php and was looking at the main index template (index.php). I must have done something wrong because now I am getting the following message when I try to go to my website:

Parse error: syntax error, unexpected '{' in /home2/rainmake/public_html/Theatre4/wp-content/themes/atahualpa332/index.php on line 148.

1. How do I count the lines to find line 148?
2. And can I then post the code for help to find the error?

Thank you!

Last edited by Rebecka; Oct 20, 2011 at 01:01 PM.
Old Oct 20, 2011, 01:24 PM
lmilesw's Avatar
10,176 posts · Jul 2009
Central New York State USA
There are editors that show line numbers. So if you download the index.php from the atahualpa332 directory and open in the editor it looks like you will see a left curly brace that shouldn't be there.

You could also upgrade using the manual method as outlined here since you are at such an old version I am not sure you can still get a new copy of the index.php file to upload which would also fix the issue. You MAY have some issues with an upgrade as well because of changes in the code so I would look through some posts about upgrading from older versons.

A backup is highly recommended especially because of version of Atahualp being that old.
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
Old Oct 20, 2011, 01:53 PM
3 posts · Oct 2011
Thank you for responding so quickly! I'm hoping you might be able to help further and correct the code. I put the file into an editor, and found line 148. It is:

if( !is_single() AND !is_page() { >?

Again, thank you. I have a lot to learn!

(just in case, below is complete section with line 148)

<!-- Post Headline -->
<div class="post-headline">
if( !is_single() AND !is_page() { >?
<a href="<?php the permalink() ?
>" rel="bookmark" title="Permanent Link to <?php
if (function_exists
('the_title_attribute')) {
elseif (function_exists('the_title')) {
} ?>"><?php
} the_title();
if( !is_single() AND !is_page() ) { ?>
} ?>
Old Oct 20, 2011, 02:03 PM
3 posts · Oct 2011
I figured it out! Thanks, again!

needed a ')' in the if statement

Last edited by juggledad; Oct 20, 2011 at 03:53 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Please help Parse error: syntax error, unexpected ';', expecting ')' in /home/content archiex Installing & running WordPress 2 Jul 6, 2011 08:58 PM
[SOLVED] ERROR MESSAGE: Parse error: syntax error, unexpected T_STRING in /hsphere/lo Candy Atahualpa 3 Wordpress theme 1 Oct 31, 2010 04:00 PM
Parse error: syntax error, unexpected '<' in /home6/jonesber/public_html/wp-content/ jonesberries Atahualpa 3 Wordpress theme 2 Nov 30, 2009 04:33 AM
[SOLVED] Home page won't load! Parse error, syntax error lhanft Atahualpa 3 Wordpress theme 4 Aug 30, 2009 02:44 PM
[SOLVED] Parse error: syntax error, unexpected ':', expecting ')' in /home/cwicsol/pu norwichkaren Page & Category Menu Bars 1 Jul 12, 2009 11:04 AM

All times are GMT -6. The time now is 01:32 AM.

Powered by vBulletin® Copyright ©2000 - 2023, Jelsoft Enterprises Ltd.