espresto / reclaim-social-media

reclaim your stuff from social media silos
GNU General Public License v2.0
47 stars 10 forks source link

plugin does not work below php version 5.3.2 #55

Closed diplix closed 10 years ago

diplix commented 10 years ago

on a hosted envirnonment with PHP Version 5.2.17 there's no __DIR__ (http://stackoverflow.com/questions/7452708/dir-manipulation-dir-not-working) and if you substitute __DIR__ with dirname(__FILE__) autoload_real.php aborts with a parse error.

composer requires PHP 5.3.2+, reclaim requires 5.2.4+ — i don't know if that's a too high or OK requirement. i guess it's OK.

anyways, we should prettify this error, so that the user doesn't get a

Fatal error: Class 'reclaim_module' not found in /homepages/24/xxx/wp-content/plugins/reclaim/mods/bookmarks.class.php on line 19

but a

reclaim social media requires that you run PHP ≥ 5.2.4. (you are using PHP 5.2.17)
diplix commented 10 years ago

added a warning. not very beautiful, but seems to work.