WPTT / theme-sniffer

Theme Sniffer plugin using sniffs.
MIT License
269 stars 3 forks source link

Fatal error in fresh plugin activation #204

Closed ernilambar closed 4 years ago

ernilambar commented 4 years ago

Error:

Fatal error: Uncaught TypeError: version_compare() expects parameter 1 to be string, int given in /Users/nilambarsharma/Sites/staging/wp-content/plugins/theme-sniffer/src/class-plugin.php:52 Stack trace: #0 /Users/nilambarsharma/Sites/staging/wp-content/plugins/theme-sniffer/src/class-plugin.php(52): version_compare(70402, '70000', '<') #1 /Users/nilambarsharma/Sites/staging/wp-content/plugins/theme-sniffer/theme-sniffer.php(41): Theme_Sniffer\Core\Plugin->activate() #2 /Users/nilambarsharma/Sites/staging/wp-includes/class-wp-hook.php(287): Theme_Sniffer\{closure}('') #3 /Users/nilambarsharma/Sites/staging/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters('', Array) #4 /Users/nilambarsharma/Sites/staging/wp-includes/plugin.php(478): WP_Hook->do_action(Array) #5 /Users/nilambarsharma/Sites/staging/wp-admin/plugins.php(179): do_action('activate_theme-...') #6 {main} thrown in /Users/nilambarsharma/Sites/staging/wp-content/plugins/theme-sniffer/src/class-plugin.php on line 52

To Reproduce Steps to reproduce the behavior:

  1. Clone the repo.
  2. Do composer install and npm install
  3. Activate plugin
  4. See error

Environment (please complete the following information):