Title: On Activating Plugin Getting Error
Last modified: December 19, 2017

---

# On Activating Plugin Getting Error

 *  Resolved [aqib123](https://wordpress.org/support/users/aqib123/)
 * (@aqib123)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/)
 * when i click on activate plugin on my site smartcrictime.co i am seeinf this 
   line written
 * Warning: Invalid argument supplied for foreach() in /srv/users/serverpilot/apps/
   smartcrictime/public/wp-content/plugins/quick-adsense-reloaded/includes/vendor/
   google/adsense.php on line 38
    -  This topic was modified 8 years, 3 months ago by [aqib123](https://wordpress.org/support/users/aqib123/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fon-activating-plugin-getting-error%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [Eggplanto](https://wordpress.org/support/users/eggplanto/)
 * (@eggplanto)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9794714)
 * I got the exact same error when installing this plugin. It also appears at the
   top of every page on my site. I had to uninstall it. I’m running WordPress 4.9.1
   with Magzimum theme.
 *  Thread Starter [aqib123](https://wordpress.org/support/users/aqib123/)
 * (@aqib123)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9795377)
 * yes i am using premium newspaper theme by mythemeshop
    you can check my site 
   and see the error
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9795567)
 * Can you please try some temporary troubleshooting steps?
    - Switch to the Twenty Seventeen theme
    - Deactivate all the plugins, except this one
    - Clear your browser’s cache and cookies
 * And re-visit your site. Does the problem still exist when you do that?
 *  Thread Starter [aqib123](https://wordpress.org/support/users/aqib123/)
 * (@aqib123)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9795731)
 * done above told buy Jan Dembowski now even admin panel is not opening
    Warning:
   Invalid argument supplied for foreach() in /srv/users/serverpilot/apps/smartcrictime/
   public/wp-content/plugins/quick-adsense-reloaded/includes/vendor/google/adsense.
   php on line 38
 * Warning: Cannot modify header information – headers already sent by (output started
   at /srv/users/serverpilot/apps/smartcrictime/public/wp-content/plugins/quick-
   adsense-reloaded/includes/vendor/google/adsense.php:38) in /srv/users/serverpilot/
   apps/smartcrictime/public/wp-includes/pluggable.php on line 1216
 *  Moderator [Jan Dembowski](https://wordpress.org/support/users/jdembowski/)
 * (@jdembowski)
 * Forum Moderator and Brute Squad
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9795821)
 * That does narrow it down. Are you using the Twenty Seventeen theme? It’s an important
   questions.
 * Try these steps.
 * Using whatever file management tools your host has provided you with, do this.
    1. Navigate to the `/srv/users/serverpilot/apps/smartcrictime/public/wp-content/
       plugins/` directory.
    2. Make a backup of that `/quick-adsense-reloaded/` directory just in case you 
       do need it.
    3. Then delete the `/quick-adsense-reloaded/` directory. Just that directory and
       nothing else.
 * Can you get into the admin dashboard after that?
 *  Thread Starter [aqib123](https://wordpress.org/support/users/aqib123/)
 * (@aqib123)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9796039)
 * yes i have done it now wp admin panel is opening fine but why plugins are giving
   error i cannot understand should i reinstall wp on my website
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9799762)
 * [@aqib123](https://wordpress.org/support/users/aqib123/) I will release a fix
   for this today
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9800154)
 * [@aqib123](https://wordpress.org/support/users/aqib123/)
 * please download latest version from the link below:
 * [https://wpquads.com/quick-adsense-reloaded.zip](https://wpquads.com/quick-adsense-reloaded.zip)
 * Would you let me know if its working for you?
 * Than i release it.
 *  [hakhan201](https://wordpress.org/support/users/hakhan201/)
 * (@hakhan201)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9803144)
 * Thanks Rene,
 * I can confirm that the error is now gone.
 * I was getting the same error on my blog 🙂 . But now, the error is gone when 
   I installed the latest version you shared above.
 *  [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * (@renehermi)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9803806)
 * Your are welcome [@hakhan201](https://wordpress.org/support/users/hakhan201/)
   
   I am glad that it is working now:-)

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘On Activating Plugin Getting Error’ is closed to new replies.

 * ![](https://ps.w.org/quick-adsense-reloaded/assets/icon-256x256.png?rev=2369641)
 * [Quads Ads Manager for Google AdSense](https://wordpress.org/plugins/quick-adsense-reloaded/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/quick-adsense-reloaded/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/quick-adsense-reloaded/)
 * [Active Topics](https://wordpress.org/support/plugin/quick-adsense-reloaded/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/quick-adsense-reloaded/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/quick-adsense-reloaded/reviews/)

 * 10 replies
 * 5 participants
 * Last reply from: [Rene Hermenau](https://wordpress.org/support/users/renehermi/)
 * Last activity: [8 years, 3 months ago](https://wordpress.org/support/topic/on-activating-plugin-getting-error/#post-9803806)
 * Status: resolved