msigley / WP-Instagram-API

Instagram Basic Display API plugin for Wordpress
GNU General Public License v2.0
21 stars 10 forks source link

Unable to activate plugin #2

Open JokerDanny21 opened 4 years ago

JokerDanny21 commented 4 years ago

Hey,

I was trying to use your plugin, but Im having trouble to activate it in my site. Here the error I get.

Plugin could not be activated because it triggered a fatal error.

Fatal error: Uncaught Error: Call to a member function init() on bool in /Users/danny/workspace/www.qosqo.lu/www/wp-content/plugins/instagram-api/instagram-api.php:256 Stack trace: #0 /Users/danny/workspace/www.qosqo.lu/www/wp-admin/includes/plugin.php(2223): include() #1 /Users/danny/workspace/www.qosqo.lu/www/wp-admin/plugins.php(175): plugin_sandbox_scrape('instagram-api/i...') #2 {main} thrown in /Users/danny/workspace/www.qosqo.lu/www/wp-content/plugins/instagram-api/instagram-api.php on line 256

I tried deactivating all others plugin first and activate your plugin, but still get the same error.

Any idea why it isn't working ?

msigley commented 4 years ago

Please make sure you have defined the INSTAGRAM_CLIENT_ID and INSTAGRAM_CLIENT_SECRET as explained in the readme: https://github.com/msigley/WP-Instagram-API/blob/master/README.md

The issue here is there is no error message explaining that the defines are missing. I will leave this issue open until I add the error message.