Title: (Theme Border)  syntax error in functions.php
Last modified: August 30, 2016

---

# (Theme Border) syntax error in functions.php

 *  Resolved [simon3dartvision](https://wordpress.org/support/users/simon3dartvision/)
 * (@simon3dartvision)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/theme-border-syntax-error-in-functionsphp/)
 * syntax error, unexpected ‘for’ (T_FOR) in /user/htdocs/wp-content/themes/border/
   functions.php on line 10
 * I’m getting this error message for my functions.php file.
    I have pasted in the
   functions.php file here below the line ( line 10, refered to in the error message
   is the one reading: include-paths for additional theme specific )
 * Can anyone help as I am unable to use the theme with this current error
    ________________________________________
 * <?php
 * // ensure EXT is defined
    if ( ! defined(‘EXT’)) { define(‘EXT’, ‘.php’); }
 * #
    # See: wpgrade-config.php -> include-paths for additional theme specific #
   function and class includes #
 * // ensure REQUEST_PROTOCOL is defined
    if ( ! defined(‘REQUEST_PROTOCOL’)) { 
   if (is_ssl()) { define( ‘REQUEST_PROTOCOL’, ‘https:’ ); } else { define( ‘REQUEST_PROTOCOL’,‘
   http:’ ); } }
 * // Loads the theme’s translated strings
    load_theme_textdomain( ‘border_txtd’,
   get_template_directory() . ‘/languages/’ );
 * // Theme specific settings
    // ———————–
 * // add theme support for post formats
    // child themes note: use the after_setup_theme
   hook with a callback //$formats = array(‘video’, ‘audio’, ‘gallery’, ‘image’,‘
   link’); //add_theme_support(‘post-formats’, $formats);
 * // Initialize system core
    // ———————-
 * require_once ‘wpgrade-core/bootstrap’.EXT;
 * #
    # Please perform any initialization via options in wpgrade-config and # calls
   in wpgrade-core/bootstrap. Required for testing. #
 * /**
    * [http://codex.wordpress.org/Content_Width](http://codex.wordpress.org/Content_Width)*/
   if ( ! isset($content_width)) { $content_width = 960; }

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

 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/theme-border-syntax-error-in-functionsphp/#post-6642185)
 * You’ve got a line break at the end of line 9:
 * `# See: wpgrade-config.php ->`
 * which means that line 10 isn’t commented out, so the PHP parser tries to interpret
   it and fails. If you removed the line break and combined lines 9 and 10 into 
   one line, you’d be good to go.
 *  Thread Starter [simon3dartvision](https://wordpress.org/support/users/simon3dartvision/)
 * (@simon3dartvision)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/theme-border-syntax-error-in-functionsphp/#post-6642195)
 * thanks for answering for me .. that sounds like an easy fix .. I’m a total dumbo
   with the scripting though I’m afraid.
 * I’d be really really grateful if you could actually type for me the before and
   after scripting .. so I could just cut and paste it back into the file ?? :o)
 *  [stephencottontail](https://wordpress.org/support/users/stephencottontail/)
 * (@stephencottontail)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/theme-border-syntax-error-in-functionsphp/#post-6642206)
 *     ```
       #
       # See: wpgrade-config.php -> include-paths for additional theme specific
       # function and class includes
       #
       ```
   
 * Did your theme originally come with this code included?
 *  Thread Starter [simon3dartvision](https://wordpress.org/support/users/simon3dartvision/)
 * (@simon3dartvision)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/theme-border-syntax-error-in-functionsphp/#post-6642216)
 * yes I haven’t changed anything myself .. it just stopped working suddenly and
   I got the error that I mentioned ..
 *  Thread Starter [simon3dartvision](https://wordpress.org/support/users/simon3dartvision/)
 * (@simon3dartvision)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/theme-border-syntax-error-in-functionsphp/#post-6642220)
 * I’m going to try pasting back in the revised php file later on today with fingers
   crossed ..
    thanks very much for your help and i’ll let you know if it works ..
 *  Thread Starter [simon3dartvision](https://wordpress.org/support/users/simon3dartvision/)
 * (@simon3dartvision)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/theme-border-syntax-error-in-functionsphp/#post-6642230)
 * just wondered … is it possible that the file somehow added that line break ??
 * can wordpress sometimes corrupt files and add symbols like this ??
 *  Thread Starter [simon3dartvision](https://wordpress.org/support/users/simon3dartvision/)
 * (@simon3dartvision)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/theme-border-syntax-error-in-functionsphp/#post-6642282)
 * works !
 * as I’m sure you new it would … thanks very much … I really appreciate your help…

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

The topic ‘(Theme Border) syntax error in functions.php’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 2 participants
 * Last reply from: [simon3dartvision](https://wordpress.org/support/users/simon3dartvision/)
 * Last activity: [10 years, 9 months ago](https://wordpress.org/support/topic/theme-border-syntax-error-in-functionsphp/#post-6642282)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
