Title: [Plugin: Reference 2 Wiki] Parse error happened
Last modified: August 20, 2016

---

# [Plugin: Reference 2 Wiki] Parse error happened

 *  [funkybass](https://wordpress.org/support/users/funkybass/)
 * (@funkybass)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/)
 * When I updated using auto update to version 0.21, then happened parse error when
   activated.
    Then ftp the extract files to plug-in directory, but the result is
   the same. It says
 * Plugin could not be activated because it triggered a fatal error.
    Parse error:
   syntax error, unexpected T_STRING in {my-server}/wp-content/plugins/reference-
   2-wiki/reference2wiki.php on line 31
 * [http://wordpress.org/extend/plugins/reference-2-wiki/](http://wordpress.org/extend/plugins/reference-2-wiki/)

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

 *  [Steve D](https://wordpress.org/support/users/steadwell/)
 * (@steadwell)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836811)
 * Same problem here.
 *  [myownalias](https://wordpress.org/support/users/myownalias/)
 * (@myownalias)
 * [13 years, 10 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836960)
 * I also have the same issue; had to revert to a backup of my site as I use this
   plugin extensively, any chance of a fix of the latest version?
 *  Plugin Author [flashpixx](https://wordpress.org/support/users/flashpixx/)
 * (@flashpixx)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836970)
 * Check your PHP version. The 0.21er version uses PHP namespaces which are supported
   on PHP 5.3.0 first and later version. You need an update of PHP
 * Sorry for the late answer, but I’m very busy at the moment
 *  [myownalias](https://wordpress.org/support/users/myownalias/)
 * (@myownalias)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836971)
 * That would explain a lot; my host is running php 5.2.17, I will ask if they can
   upgrade the php software, if they can’t I’ll just have to keep using the previous
   version of the plugin, it’s too much work to go back and strip out the code from
   all my previous posts.
 *  Plugin Author [flashpixx](https://wordpress.org/support/users/flashpixx/)
 * (@flashpixx)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836972)
 * I can create, if there enough people, a fork of the newest version that works
   without namespaces, so you can run it under PHP 5.2. But I’m thinking that is
   only a “time solution”, because there are also a lot of security patches in PHP
   and 5.2 is out-of-date.
    See [http://en.wikipedia.org/wiki/PHP](http://en.wikipedia.org/wiki/PHP)
   the namespaces are added 2009-06-30, so I think 3 years are a lot of time to 
   update.
 * HTH
 *  [myownalias](https://wordpress.org/support/users/myownalias/)
 * (@myownalias)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836973)
 * I resolved the PARSE ERROR issue on my host (Bluehost), there’s an option in 
   cPanel to change php version.
 * Log into cPanel from the BlueHost website, goto Software/Services -> PHP Config-
   > there you’ll have a choice of php 5.2, 5.3 or 5.4.
 * I suspect other hosts will have a similar system, log into your control panel
   and have a look around, or call/email your host.
 *  [Steve D](https://wordpress.org/support/users/steadwell/)
 * (@steadwell)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836974)
 * Problem resolved in my case, probably due to host PHP updates.
 *  Plugin Author [flashpixx](https://wordpress.org/support/users/flashpixx/)
 * (@flashpixx)
 * [13 years, 9 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836975)
 * Greate thanks to all 😛
    I have made a mistake, because I don’t write any information
   to PHP 5.3. IMHO the update information “uses namespaces” should be enough, so
   on this changes I will write the information explicite in the future.
 *  [ravisarma](https://wordpress.org/support/users/ravisarma/)
 * (@ravisarma)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836980)
 * Interestingly enough, I am on BlueHost too, but the switch to PHP 5.3 in the 
   BlueHost config did not solve the problem for me. I verified using phpinfo() 
   that the server is indeed picking up the 5.3 version of PHP. Any thoughts?
 * BTW, this is a great idea and I am glad you (flashpixx) took the trouble to implement
   it.
 *  Plugin Author [flashpixx](https://wordpress.org/support/users/flashpixx/)
 * (@flashpixx)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836981)
 * [@ravisarma](https://wordpress.org/support/users/ravisarma/): Can you post a 
   log entry or anything else (php.log) ? I need a detailed error message, but I
   run on all my system PHP 5.3 so I can’t reproduce the error.
 * Thx
 *  [ravisarma](https://wordpress.org/support/users/ravisarma/)
 * (@ravisarma)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836982)
 * [@flashpixx](https://wordpress.org/support/users/flashpixx/), unfortunately I
   have nothing more in the logs beyond the line:
 * `PHP Parse error: syntax error, unexpected T_STRING in /.../wp-content/plugins/
   reference-2-wiki/reference2wiki.php on line 31`
 * I can turn on more logging/debugging if you let me know what I should do.
 *  [ravisarma](https://wordpress.org/support/users/ravisarma/)
 * (@ravisarma)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836983)
 * [@flashpixx](https://wordpress.org/support/users/flashpixx/), please ignore. 
   I created a test script with a namespace specified and moved it around to see
   where the issue cropped and it turns out to have to do with the way PHP is configured(
   AddHandler) for multi-site setups at my hosting provider (BlueHost). I changed
   the config and that fixed the problem. Thank you.
 *  Plugin Author [flashpixx](https://wordpress.org/support/users/flashpixx/)
 * (@flashpixx)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836984)
 * Thanks for this information 🙂

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

The topic ‘[Plugin: Reference 2 Wiki] Parse error happened’ is closed to new replies.

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

 * 13 replies
 * 5 participants
 * Last reply from: [flashpixx](https://wordpress.org/support/users/flashpixx/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/plugin-reference-2-wiki-parse-error-happened/#post-2836984)
 * Status: not resolved