• I followed the instructions in this thread, and got these errors, could someone help by telling me where the errors are and what to do?

    Parse error: parse error, unexpected ‘?’ in /home/jinsan/public_html/wp/wp-content/themes/thoughtmechanics/comments.php on line 45

    Parse error: parse error, unexpected T_STRING in /home/jinsan/public_html/wp/wp-content/themes/thoughtmechanics/index.php on line 15

    Thanks in advance – it’s broken my site 🙁

Viewing 6 replies - 1 through 6 (of 6 total)
  • What thread do you mean? Could you perhaps post a link to a .phps version of your index.php? (If there are no passwords or any other important things in there 🙂 )

    Thread Starter jinsan

    (@jinsan)

    doh! my apologies.

    http://sekhu.net/index.php try that an it will give you the error

    and also if you click go to http://sekhu.net and click on any post, it will show the error on screen.

    Thanks in advance

    PS. How do I create a phps version?

    You can create .phps files by simply making a copy of a .php files and rename it to have the .phps file extensions instead of .php 🙂

    Hmm…. the site works for me 😕

    Thread Starter jinsan

    (@jinsan)

    ack! wrong site!

    sorry, it’s:

    http://sekhu.net/wp/

    and http://sekhu.net/wp/archives will get you past the index page…

    you can view the phps files here’

    http://sekhu.net/stuff/index.phps
    http://sekhu.net/stuff/comments.phps

    I think it has some error to do witht he comments file. It’s really buggered

    In line 15 of the index.php you have function:
    <?php comments_popup_link(__('no udders squeezed'), __('1 udder squeezed), __('% udders squeezed)); ?>

    Replace it with
    <?php comments_popup_link(__('no udders squeezed'), __('1 udder squeezed'), __('% udders squeezed')); ?>

    This should at least fix this error.

    Then go to line 30:
    <p><?php _e('Sorry! We couldn't find the cow you were looking for, perhaps you wanted sheep!'); ?></p>

    Replace it with this:
    <p><?php _e('Sorry! We couldn't find the cow you were looking for, perhaps you wanted sheep!'); ?></p>

    Thread Starter jinsan

    (@jinsan)

    hmm well I tried it, and it didn’t work. Anythign else I can try? I could quite notice the differente between the two sorry we couldn’t fine the cow….buts that you copied and pasted above. They look exactly the same, in any case neither worked it seems. well it partly worked. I now get an error about line 30.

    I check the site before making any changes to line 30 and after, and it still points to line 30.

    Thanks in advance

    EDIT: Through lots, and LOTS of trial and error, I Think I have it working now. Many thanks for your assistance.

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Unexpected Parse Errors’ is closed to new replies.