Closed flacoman91 closed 8 years ago
removing the static property fixes the issue. pull request here https://github.com/Automattic/vip-scanner/pull/248
Fatal error: Using $this when not in object context in C:\xampp\htdocs\wp\wp-content\themes\edu_wp_free\warp\systems\wordpress\src\Warp\Wordpress\Helper\SystemHelper.php on line 225
Please resolve this problem of my wp themem.
Fatal error: Using $this when not in object context in C:\xampp\htdocs\wp\wp-content\themes\edu_wp_free\warp\systems\wordpress\src\Warp\Wordpress\Helper\SystemHelper.php on line 225
Sorry. Please read the referenced pull request. Josh has info on how to fix this. The $this reference is not the correct way to do this.
I'm trying to use the wp-cli to scan some plugins and themes and I keep getting this error. I followed the directions to install the plugin in a site's wp-content/plugins folders and also enabled it.
I tried doing it on Mac OS and also in a vagrant box.
wp-cli seems to work correctly since i am able to download plugins and enable/disable them, but the vip scanner is giving me the error.
The plugin does work in the web browser's admin interface to scan the twentyfourteen and twentyfifteen themes, etc, but I'd like to use it via the wp-cli to scan some plugins.
Any assistance would be greatly appreciated. Thank you!