Title: [Plugin: Twitchers] PHP version
Last modified: August 20, 2016

---

# [Plugin: Twitchers] PHP version

 *  Resolved [xs650](https://wordpress.org/support/users/xs650/)
 * (@xs650)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/)
 * Ouch…
 * Doesn’t work with PHP version 5.2.17?
 * any alternatives?
 * [http://wordpress.org/extend/plugins/twitchers/](http://wordpress.org/extend/plugins/twitchers/)

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

 *  Plugin Author [kevin heath](https://wordpress.org/support/users/ypraise/)
 * (@ypraise)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010089)
 * Hi
 * thanks for the message.
 * The php version is a carry over from the Sightings plugin but I have either removed
   or changed about 80% of the code so it may work in earlier versions of php. My
   web host runs php 5.3 so I am unable to test the plugin with earlier version 
   of php.
 * I am going to be releasing an update in the next couple of days but before I 
   do I will check through the code and see if I can find any code which is dependant
   on php 5.3 and try and re-write it.
 * Have you tried running the plugin in? If you do and get an error message please
   post it here to give me an indication of any possible code changes I need to 
   make.
 * Thanks
    Kevin
 *  Thread Starter [xs650](https://wordpress.org/support/users/xs650/)
 * (@xs650)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010125)
 * So after further tinkering, maybe its not the php version.
 * When i try to use the shortcode in a post, page, or sidebar, I only see the [
   twitcher-map]
 * I am using other plugin with other shortcodes on the site
 * I may try to call it with php, I’ll keep you updated, but if you have any ideas,
   I am open to try them.
 * Thanks for your response and I look forward to trying your plugin
 *  Plugin Author [kevin heath](https://wordpress.org/support/users/ypraise/)
 * (@ypraise)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010138)
 * Hi
 * there is a fix for it going out later today hopefully or tomorrow with the next
   update.
 * There was acall to the plugin directory path using a php 5.3 method. I’ve swapped
   that path call for the standard wordpress mthod so php version should not matter.
 * I’m just tweaking some settings at the moment and then I’ll be releasing version
   1.3
 * Kevin
 *  Plugin Author [kevin heath](https://wordpress.org/support/users/ypraise/)
 * (@ypraise)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010139)
 * If you want to try the fix then open the filters.php file in;
 * twitcher > theme-files > filters.php
 * look for about line 14:
 *     ```
       // Register shortcodes
               include __DIR__ . '/shortcode-twitcher-map.php';
       ```
   
 * change it to:
 *     ```
       // Register shortcodes
               include dirname(__FILE__) . '/shortcode-twitcher-map.php';
       ```
   
 * that should fix the php version issue. But as I said my web host runs php 5.3
   so I’ve not been able to test it on earlier versions of php.
 * Kevin
 *  Thread Starter [xs650](https://wordpress.org/support/users/xs650/)
 * (@xs650)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010141)
 * That isn’t working
 * in fact, it nukes my whole site, heh
 * but i think its on the right track
 * Ryan
 *  Plugin Author [kevin heath](https://wordpress.org/support/users/ypraise/)
 * (@ypraise)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010142)
 * that’s trange if it’s nuked your whole site. I’m using the new path call without
   a problem.
 * You sure you did not delete a closing braket or ; by mistke as well?
 * Kevin
 *  Thread Starter [xs650](https://wordpress.org/support/users/xs650/)
 * (@xs650)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010145)
 * very odd
    i tried include(dirname(__FILE__).’/shortcode-twitcher-map.php’); and
   even just include(‘shortcode-twitcher-map.php’);
 * and they both white screened the site
 * I’ll mess with it more later and let you know what i find
 *  Thread Starter [xs650](https://wordpress.org/support/users/xs650/)
 * (@xs650)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010148)
 * I think its when the include ‘does’ work that it nukes the site.
 * If i use the include code with a bad path, I get the same issue as with the __DIR__
   code
 * Must be something unfriendly in
    shortcode-twitcher-map.php
 *  Plugin Author [kevin heath](https://wordpress.org/support/users/ypraise/)
 * (@ypraise)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010151)
 * Thanks Ryan,
 * I’ll take a closer look at that file.
    There may be some php 5.3 specific coding
   in there somewhere.
 * Kevin
 *  Thread Starter [xs650](https://wordpress.org/support/users/xs650/)
 * (@xs650)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010312)
 * Any luck with that 5.3 specific code hunt? I looked but didn’t see anything that
   stood out to me. I just loaded your new version and
 * since you use
    include dirname(__FILE__) . ‘/shortcode-twitcher-map.php’; now,
   it white screens my whole site on 5.2.17
 *  Thread Starter [xs650](https://wordpress.org/support/users/xs650/)
 * (@xs650)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010313)
 * if you are interested in testing on 5.2.17, I could set you up a site
 * let me know
 * you can email me at [ryan.leisinger@gmail.com](https://wordpress.org/support/topic/plugin-twitchers-php-version/ryan.leisinger@gmail.com?output_format=md)
 * Ryan
 *  Plugin Author [kevin heath](https://wordpress.org/support/users/ypraise/)
 * (@ypraise)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010318)
 * Hi Ryan
 * I am planning on spending a couple of hours tomorrow (sunday) looking into this.
 * If you vould get me access to 5.2 php then it would help me al ot on testing 
   and running debugs etc.
 * You can send me details on [kevin@ypraise.com](https://wordpress.org/support/topic/plugin-twitchers-php-version/kevin@ypraise.com?output_format=md)
 * I’m not sure but I think it could be the way the marker is being called for when
   people make a contribution.
 * thanks
    Kevin
 *  Plugin Author [kevin heath](https://wordpress.org/support/users/ypraise/)
 * (@ypraise)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010319)
 * Hi Ryan,
 * I’ve done a few changes to file structure ready for the next update sometime 
   next week but it would be good if you could give me some feedback on if it’s 
   working in php 5.2
 * you can download the zip file from:
 * [http://ypraise.com/store/twitchers.zip](http://ypraise.com/store/twitchers.zip)
 * thanks
    Kevin
 *  Plugin Author [kevin heath](https://wordpress.org/support/users/ypraise/)
 * (@ypraise)
 * [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010325)
 * For those who have been following this thread.
 * I will not be adapting the code to work with php 5.2 as it will require a major
   rewrite.
 * The issue is the use of the Paamayim Nekudotayim (:: double colon) with variables.
   This additional use was introduced in php5.3 and is not supported in earlier 
   version of php.
 * Kevin

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

The topic ‘[Plugin: Twitchers] PHP version’ is closed to new replies.

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

 * 14 replies
 * 2 participants
 * Last reply from: [kevin heath](https://wordpress.org/support/users/ypraise/)
 * Last activity: [13 years, 11 months ago](https://wordpress.org/support/topic/plugin-twitchers-php-version/#post-3010325)
 * Status: resolved