Reviewer plugin: php version may not be greater than 10 character

While trying to activate the “Reviewer” plugin by evoG, I encountered the following error:

The php version may not be greater than 10 characters.

The php version may not be greater than 10 characters.

Thankfully, after a little looking around I found where the PHP version is passed to the activation routine. By manually specifying a short PHP version (< 10 char) I was finally able to active the plugin 🙂

Here are the relevant sections to edit:
/wp-content/plugins/reviewer/admin/includes/class-license-page.php
NOTE: I recommend backing up your file before editing.

PHP_VERSION is our cuplrit

PHP_VERSION is our cuplrit

Manually specifying PHP version

Manually specifying PHP version

Reviewer Plugin Activated!

Reviewer Plugin Activated!

If you encounter an error like this, I hope these tips will prove useful 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *