idxbroker / wordpress-plugin

IMPress for IDX Broker
http://www.idxbroker.com
GNU General Public License v2.0
22 stars 30 forks source link

PHP Version Check doesn't work #3

Closed bhubbard closed 9 years ago

bhubbard commented 9 years ago

Per this following Facebook thread: https://www.facebook.com/groups/idxbrokermastermindgroup/882070538537497/

I installed a fresh version of WordPress on php 5.2.17, along with the IDX Broker plugin. Upon activation I get the following error:

The plugin already has a message and version check: Version Check and Message code

However this check and messaging does not actually check or display when a user activates the plugin. I believe it doesn't check when a user updates the plugin as well.

Useful Resource: Best way to abort plugin in case of insufficient PHP Version

sheparddw commented 9 years ago

The issue is actually with the PHP parser for versions less than 5.3. The parser thinks namespaces are a syntax error before the version check has a chance to run. I have completed a fix that will be released in the next version of the plugin (1.3.0).