Back on Track

Halle-freakin’-lujah.

Okay, I know the theme is still your default “Kubrick”, and my categories are gone (due to a REALLY stupid mistake on my part), but it’s back. Posts, comments - it’s all good.

But hey, it’s Saturday, and I have stuff to plant. So I’m taking a break for a bit.


Comments

Robert Jones says...
1

Hi Shelley

Liked your About Me a lot, and went to press the ‘contact’ button for a small bit of help to rescue me from disaster. But could not ffind it. Then realised your last post was April. Hope you are not sick.

If not perhaps you give me your email address. I am a very non-techical WordPress blogger (nearly two years) and have just loused up my site by editing the main index php. It tells me I have inserted an un-expected T-String on Line 17, but I have no idea what a T-String is!

So my blog is off the web for the first time since August 2006 and there is a lot I want to blog about.

Cheers

Robert Jones says...
2

If anyone else sees my cry for help. And is willing to look at my indexphp my email is bob@thedailynovel.com.

Shelly says...
3

Hi Robert :)

No, I’m not sick - just way busy. I’m also missing some of the “usual tuff” on my site, since I had to switch hosts a couple of weeks back - still trying to get it all back together.

An “unexpected T string” is PHP cod for “there’s an extra character here that shouldn’t be.” A “T string” can be a couple of things, but usually it means you have some letters where they shouldn’t be. For example, if you wrote an echo statement that said something like:

<?php echo ‘It’s me!’; ?>

You’d get an unexpected T string error. The reason is because you opened your echo statement with a single quote (rather than double), and the word “It’s” *also* has a single quote - so the echo sees THAT single quote as the end of what it should be echoing - and what it expects it a “;” to end the line - but instead, there’s an “s” there.

*Usually* that’s the cause of the problem. You’ll need to look at Line 17 (o a few lines before or after) and see if there’s an unescaped quote, or some character like that. Characters that will cause this behavior will be single quotes (if the statement begins and ends with single quotes), double quotes (if the statement begins and ends with double quotes) -but sometimes it can be periods, dollar signs - stuff like that.

You can escape the offending character by putting a backslash before the offending character (in the above example, it would look like so):

<?php echo ‘It\’s me!’; ?>

or swpaaing out the single quotes to double, like so:

<?php echo “It’s me!”; ?>

And that should fix the error.

Robert Jones says...
4

For someone so busy that’s a very long reply. And useful. Thanks.
I managed to get up and running again before seeing your reply just now. I did it by pasting a couple of lines from your Index PHP over mine. I must have got it right

But clearly I need to try and learn htm properly to avoid future calamities.

Shelly says...
5

LOL - well - all comments are emailed to me. I always make “I’m having an issue” questions a priority :)

Trackbacks & Pingbacks

You must be logged in to post a comment.