Title: Error With Functions.php file
Last modified: August 20, 2016

---

# Error With Functions.php file

 *  [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/error-with-functionsphp-file/)
 * I keep trying to update my functions.php file for [my site](http://www.get2theleague.com)
   so that I can post Adsense ads wherever I want them, following [these directions](http://webdesignzo.com/insert-google-adsense-anywhere-blog-post/).
 * I’m adding the code for my Adsense ad to the end of the functions.php file, and
   it looks exactly like the screenshot on the page referenced above (other than
   the fact that I copy/pasted in my Adsense code where it says to), but when I 
   click “update file”, I get this error,
 * **“Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/
   agtheman/public_html/get2theleague.com/wp-content/themes/silveray/functions.php
   on line 67”**
 * Is this because my theme is rejecting this functionality? Any help you can provide
   is appreciated.

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

 *  [tomaltman](https://wordpress.org/support/users/tomaltman/)
 * (@tomaltman)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/error-with-functionsphp-file/#post-2311793)
 * This is an error with the PHP. You have a problem with a quote that is out of
   place.
 * Let me know if you cannot find it – I will try to help.
    tom
 *  Thread Starter [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/error-with-functionsphp-file/#post-2311841)
 * I’m having trouble figuring out where the quote problem is in the php. If you
   could please help me identify it, it would be appreciated. Thanks for your time.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/error-with-functionsphp-file/#post-2311843)
 * Drop a copy of the file into the [WordPress pastebin](http://wordpress.pastebin.com/)
   and post the pastebin url here. Perhaps someone will be able to spot the problem
   and suggest a solution.
 *  Thread Starter [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/error-with-functionsphp-file/#post-2311845)
 * I get the error when I try to log into the WordPress Admin portal. And I don’t
   have access to FTP right now where I can access the Function.php file directly.
 * If you can’t help without that, I’ll have to wait until I’m at a machine that
   I can FTP from so I can display the code in this thread. Thanks.
 *  Thread Starter [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/error-with-functionsphp-file/#post-2311940)
 * [http://pastebin.com/5bPZBQLh#](http://pastebin.com/5bPZBQLh#)
 *  [cm258](https://wordpress.org/support/users/cm258/)
 * (@cm258)
 * [14 years, 8 months ago](https://wordpress.org/support/topic/error-with-functionsphp-file/#post-2311943)
 * Your error is on the last line:
 * `add_shortcode(showmyads', 'adsenseads');`
 * should be:
 * `add_shortcode('showmyads', 'adsenseads');`
 * (You’re missing a single quote mark just before “showmyads”).
 * cm
 *  Thread Starter [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * (@agfreesafety)
 * [14 years, 6 months ago](https://wordpress.org/support/topic/error-with-functionsphp-file/#post-2312111)
 * Hello again. This was working up until recently. For some reason, my ads have
   disappeared, leaving just a blank spot where the ads were showing up.
 * If you’d like to view an example of what I’m talking about, [on this page](http://www.get2theleague.com/training/how-to-train-for-the-standing-broad-jump-test),
   the ad is supposed to show up under the first video in the post, right beneath
   where it says “there’s a lot of different…”
 * As you can see, there’s only open space showing up where the ad once was. I looked
   in my function.php file, and the code is correct. I went into Adsense, and the
   code for the ad unit I had selected to be placed here is still the same. This
   ad unit still shows up as “Active” from within Adsense.
 * Any idea what could be going on, here? Thanks in advance!

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

The topic ‘Error With Functions.php file’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 7 replies
 * 4 participants
 * Last reply from: [agfreesafety](https://wordpress.org/support/users/agfreesafety/)
 * Last activity: [14 years, 6 months ago](https://wordpress.org/support/topic/error-with-functionsphp-file/#post-2312111)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
