• Hi,

    I’m new to this, and seem to have messed up my functions.php. I was trying to add in custom taxonomies to the php — it didn’t work, so I removed what I added, but I am still getting this error message:

    Parse error: syntax error, unexpected T_STRING in /home/myname/ineedafuckinggift.com/wp-content/themes/chunk/functions.php on line 246

    The problem is there doesn’t seem to be a line 246…it ends at line 234. Then end of the php looks like this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Can anyone tell me what I’m missing? Thanks in advance for your help!

Viewing 7 replies - 1 through 7 (of 7 total)
  • The code above doesn’t seem to be the full code but I noticed a comma after ‘url’ should not be there as it is the last item in the array.

    Thread Starter nihaokathleen

    (@nihaokathleen)

    Here’s the whole thing if that’s helpful. Line 234 is the last line:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter nihaokathleen

    (@nihaokathleen)

    Thanks @colin,

    So I changed the last little bit to:

    * Theme colors array for WP.com.
     */
    $themecolors = array(
    	'bg' => 'ffffff',
    	'border' => 'eeeeee',
    	'text' => '555555',
    	'link' => '36bcab',
    	'url' => '36bcab'
    );

    [moderated: please ensure that your code is enclosed in backticks (`) or use the code button.]

    But still no dice…you think I’m missing something?

    I noticed the array $themecolors is not being used for anything. What is it’s purpose ?

    Thread Starter nihaokathleen

    (@nihaokathleen)

    I’m really not too sure — I thought this php was that that is built into the template for Chunk. I’m confused because the error message is still about line 246 — but I don’t have 246 lines! Perhaps I can ask someone to post the functions.php code for an unaltered version of chunk and then copy that back into mine? I’m wishing I didn’t try to customize… 🙂

    Perhaps I can ask someone to post the functions.php code for an unaltered version of chunk

    Have you had a chance to try replacing your functions.php file with a copy of the one from the original theme folder? That should make short work of it if that’s the file that is causing the issue. If you need a fresh copy of the Chunk theme, it’s available from here.

    And a link to the authors site

    For future convenience, if you need to post more than ~10 lines of code at a time, pastebin is the preferred method for sharing large snippets of code in the forum.

    Thread Starter nihaokathleen

    (@nihaokathleen)

    THanks! I downloaded the original Chunk theme, and will try that!

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

The topic ‘Newbie needs help fixing Unexpected T_STRING’ is closed to new replies.