Title: Getting Parse error: syntax error, unexpected T_STRING
Last modified: September 18, 2016

---

# Getting Parse error: syntax error, unexpected T_STRING

 *  [realestatebave](https://wordpress.org/support/users/realestatebave/)
 * (@realestatebave)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/)
 * I am no longer able to access my dashboard or website because I am getting the
   following error:
 * Parse error: syntax error, unexpected T_STRING in /home/content/43/8506943/html/
   wp-content/plugins/simple-real-estate-pack-4/includes/srp-yelp.php on line 99
 * So I am unable to uninstall or disable the plugin, update it, download it, or
   edit it.
 * My site is liveatlantaga.com
 * Please help!
    Thanks,

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

 *  [zebrawebdesigns](https://wordpress.org/support/users/sbhuvan/)
 * (@sbhuvan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8195500)
 * Hello Ariel,
 * here is the fix. in the below file.
    replace the line number 99 with $yelpApi
   = new YelpApi();
 * My email ID is [redacted]
 * **[Moderator note: please do not offer or ask for off-forum contact.]**
    -  This reply was modified 9 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This reply was modified 9 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
    -  This reply was modified 9 years, 8 months ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 *  [zebrawebdesigns](https://wordpress.org/support/users/sbhuvan/)
 * (@sbhuvan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8195509)
 * forgot to mention the file path.
    /home/content/43/8506943/html/wp-content/plugins/
   simple-real-estate-pack-4/includes/srp-yelp.php
 * line number 99
    previous code is $yelpApi = new \srp\yelp\YelpApi();
 * new code will be
    $yelpApi = new YelpApi();
 *  [jasminehughes4](https://wordpress.org/support/users/jasminehughes4/)
 * (@jasminehughes4)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8198107)
 * Hi I’m having the same problem, only with a different line…
 * Parse error: syntax error, unexpected T_FUNCTION in /home/seedicbw/www.seedingthefuture.
   co.uk/wp-content/themes/the-monday/inc/the-monday-functions.php on line 414
 *  [jasminehughes4](https://wordpress.org/support/users/jasminehughes4/)
 * (@jasminehughes4)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8198119)
 * The problem for me happened after I tried to upload a new theme, if that helps?
 *  [zebrawebdesigns](https://wordpress.org/support/users/sbhuvan/)
 * (@sbhuvan)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8198146)
 * Hi jasmine,
 * Can you paste that line over here.
 *  Thread Starter [realestatebave](https://wordpress.org/support/users/realestatebave/)
 * (@realestatebave)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8198384)
 * I can’t access the dashboard to make any changes.
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [9 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8198502)
 * Side note and very much off topic: [@sbhuvan](https://wordpress.org/support/users/sbhuvan/)
   A quick way to get permanently banned from these forums is to seek contact off
   of these forums.
 * As it was [edited above, please do not offer or ask for off-forum contact](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/?view=all#post-8195500).
    -  This reply was modified 9 years, 8 months ago by [Jan Dembowski](https://wordpress.org/support/users/jdembowski/).
 *  Plugin Contributor [Max Chirkov](https://wordpress.org/support/users/maxchirkov/)
 * (@maxchirkov)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8199855)
 * [@realestatebave](https://wordpress.org/support/users/realestatebave/) I can 
   not reproduce that error. What version of the plugin are you on? As well as what’s
   your PHP version?
 * I have a feeling that you may be on a very old version of PHP – versions prior
   to 5.3 do not support namespaces. That’s what I think is happening. You may need
   to update to at least version 5.6, since it’s the oldest supported version by
   PHP ([http://php.net/supported-versions.php](http://php.net/supported-versions.php))
 *  [mjg@overthetop.com](https://wordpress.org/support/users/mjgoverthetopcom/)
 * (@mjgoverthetopcom)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8516252)
 * Any plans to push out a release that fixes the breaking change on line 99 of 
   srp-yelp.php?
 * I’ve made the manual change for a client but obviously this will be resolved 
   on your end and pushed out eventually…

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

The topic ‘Getting Parse error: syntax error, unexpected T_STRING’ is closed to 
new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/simple-real-estate-pack-4_e2d9f9.
   svg)
 * [Simple Real Estate Pack](https://wordpress.org/plugins/simple-real-estate-pack-4/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/simple-real-estate-pack-4/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/simple-real-estate-pack-4/)
 * [Active Topics](https://wordpress.org/support/plugin/simple-real-estate-pack-4/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/simple-real-estate-pack-4/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/simple-real-estate-pack-4/reviews/)

## Tags

 * [parse-error](https://wordpress.org/support/topic-tag/parse-error/)

 * 9 replies
 * 6 participants
 * Last reply from: [mjg@overthetop.com](https://wordpress.org/support/users/mjgoverthetopcom/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/getting-parse-error-syntax-error-unexpected-t_string/#post-8516252)
 * Status: not resolved