# Wordpress Plugin Installation

**URL:** https://meta.discourse.org/t/wordpress-plugin-installation/57662
**Category:** WordPress
**Created:** [February 20, 2017, 2:03pm UTC](https://meta.discourse.org/t/wordpress-plugin-installation/57662 "2017-02-20T14:03:28Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![MorphZan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/morphzan/32/67951_2.png) [@MorphZan](https://meta.discourse.org/u/MorphZan)
#### Post date: [February 20, 2017, 2:03pm UTC](https://meta.discourse.org/t/wordpress-plugin-installation/57662/1 "2017-02-20T14:03:28Z")

</div>

Good Day

I have just created a brand new wordpress site  
I have added the Discourse Plugin and have activated it and get the following message:

Parse error: syntax error, unexpected T\_STRING in /home/myisp/public\_html/forum/wp-content/plugins/wp-discourse/wp-discourse.php on line 41

I am quite new to this so was hoping someone could point me in the right direction

Thanks in Advance

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 20, 2017, 2:14pm UTC](https://meta.discourse.org/t/wordpress-plugin-installation/57662/2 "2017-02-20T14:14:27Z")

</div>

When I have seen similar errors in the past, it has been due to using an old version of PHP, though it’s not entirely clear that this is the problem here.

What version of PHP are you using?

---

<div class="post-metadata">

### Author: ![MorphZan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/morphzan/32/67951_2.png) [@MorphZan](https://meta.discourse.org/u/MorphZan)
#### Post date: [February 20, 2017, 2:18pm UTC](https://meta.discourse.org/t/wordpress-plugin-installation/57662/3 "2017-02-20T14:18:02Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/1/2/1292aa64075a517580c3746eccb7a5473137bb2e.png)

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [February 20, 2017, 2:24pm UTC](https://meta.discourse.org/t/wordpress-plugin-installation/57662/4 "2017-02-20T14:24:35Z")

</div>

PHP 5.2 end of life was six years ago. PHP 5.4 has been unsupported for almost a year and a half. You’ll need to come into the modern era to use this code. See [PHP Unsupported versions](http://php.net/eol.php).

You may be new to this, but the PHP version you have is old. 🙂

---

<div class="post-metadata">

### Author: ![MorphZan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/morphzan/32/67951_2.png) [@MorphZan](https://meta.discourse.org/u/MorphZan)
#### Post date: [February 20, 2017, 2:25pm UTC](https://meta.discourse.org/t/wordpress-plugin-installation/57662/5 "2017-02-20T14:25:08Z")

</div>

Ill be chatting to my Host immediately LOL

Thank you for the quick response!!!

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 20, 2017, 6:13pm UTC](https://meta.discourse.org/t/wordpress-plugin-installation/57662/6 "2017-02-20T18:13:27Z")

</div>

Thanks for reporting this. The plugin runs a test that is supposed to prevent it from being installed when the php version is less than 5.4. It looks like that is failing because the test is run too late in the load process.

---

<div class="post-metadata">

### Author: ![MorphZan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/morphzan/32/67951_2.png) [@MorphZan](https://meta.discourse.org/u/MorphZan)
#### Post date: [February 21, 2017, 6:40am UTC](https://meta.discourse.org/t/wordpress-plugin-installation/57662/7 "2017-02-21T06:40:37Z")

</div>

Got the plugin to install by changing how the .php file extension is processed  
So running PHP Version 5.4 but the files are processed by PHP Version 5.6

I don’t know why this works but it does:

 ![](https://global.discourse-cdn.com/meta/original/3X/f/2/f249221aaa637b3ec8c2baf393f7a3a436dea3ef.png)

---

<div class="post-metadata">

### Author: ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)
#### Post date: [February 21, 2017, 7:58am UTC](https://meta.discourse.org/t/wordpress-plugin-installation/57662/8 "2017-02-21T07:58:49Z")

</div>

It looks like they give you the option of either using the system default version php, or setting your own version. The way you have it setup should be fine.
