WPTT / theme-sniffer

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

Plugin could not be activated because it triggered a fatal error #169

Closed STV11C closed 5 years ago

STV11C commented 5 years ago

Hi, I just downloaded latest version from here and received following error on plugin activation. Any idea? Cheers

Plugin could not be activated because it triggered a fatal error.
Fatal error: Uncaught Error: Class 'Theme_Sniffer\Core\Plugin_Factory' not found in /var/www/html/wp-content/plugins/theme-sniffer-development/theme-sniffer.php:58 Stack trace: #0 /var/www/html/wp-admin/includes/plugin.php(2141): include() #1 /var/www/html/wp-admin/plugins.php(175): plugin_sandbox_scrape('theme-sniffer-d...') #2 {main} thrown in /var/www/html/wp-content/plugins/theme-sniffer-development/theme-sniffer.php on line 58
dingo-d commented 5 years ago

If you downloaded the git repository it won't work because you need to run the composer and npm and run the install scripts as described here: https://github.com/WPTRT/theme-sniffer#for-theme-sniffer-development

The best way is to download the official plugin from the wordpress.org, as that doesn't have any such issues, this is mostly used for development.

We'll have a new release out very soon 🙂

STV11C commented 5 years ago

Thanks for the reply and yes I downloaded from here. Will grab it from the wordpress site. Cheers.