Title: Parse Error &#8211; Unexpected String
Last modified: August 24, 2016

---

# Parse Error – Unexpected String

 *  Resolved [mwarbinek](https://wordpress.org/support/users/mwarbinek/)
 * (@mwarbinek)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/parse-error-unexpected-string/)
 * I just installed this plugin and it won’t activate because there is a parse error
   on line 29 in the autostock.php file.
 * Lines 29 & 30 are as follows:
 * namespace Autostock;
    use Autostock;
 * When I comment out these two lines, the plugin activates but fails to show in
   the main sidebar menu in WordPress.
 * I know some about PHP, but I don’t know enough about using “namespace”. As I 
   read though, there is a lot reference to “Class” usage with namespace and there
   is no such reference in your php file for the plugin.
 * Is there something missing here?
 * [https://wordpress.org/plugins/autostock/](https://wordpress.org/plugins/autostock/)

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

 *  Plugin Author [Kevin Phillips](https://wordpress.org/support/users/dollar_dad/)
 * (@dollar_dad)
 * [11 years ago](https://wordpress.org/support/topic/parse-error-unexpected-string/#post-6023955)
 * Are you using PHP 5.4+
 *  Thread Starter [mwarbinek](https://wordpress.org/support/users/mwarbinek/)
 * (@mwarbinek)
 * [11 years ago](https://wordpress.org/support/topic/parse-error-unexpected-string/#post-6023956)
 * Well, burn my britches, I thought the web host automatically changed everything
   to version 5.4 and they did not, the website was still set at 5.2 because they
   still allowed the legacy 5.2 to run.
 * Now all seems to work, thanks. 🙂
 *  Plugin Author [Kevin Phillips](https://wordpress.org/support/users/dollar_dad/)
 * (@dollar_dad)
 * [11 years ago](https://wordpress.org/support/topic/parse-error-unexpected-string/#post-6023957)
 * Not a problem

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

The topic ‘Parse Error – Unexpected String’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/autostock_bfa2a3.svg)
 * [Autostock](https://wordpress.org/plugins/autostock/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autostock/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autostock/)
 * [Active Topics](https://wordpress.org/support/plugin/autostock/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autostock/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autostock/reviews/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Kevin Phillips](https://wordpress.org/support/users/dollar_dad/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/parse-error-unexpected-string/#post-6023957)
 * Status: resolved