Title: PHP Errors in Plugin
Last modified: August 22, 2016

---

# PHP Errors in Plugin

 *  [jnp22](https://wordpress.org/support/users/jnp22/)
 * (@jnp22)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/php-errors-in-plugin/)
 * I installed the plugin and it is throwing a PHP error and a notice.
 * **Error**
    Strict Standards: Non-static method WPHubspot::hs_is_customer() should
   not be called statically, assuming $this from incompatible context in XXXXXX\
   wp-content\plugins\hubspot\inc\hs-notice.php on line 23
 * **Notice**
    Notice: Undefined index: page in C:\XAMPP\htdocs\push22dev\phoenix-
   mecano\dev-site\wp-content\plugins\hubspot\inc\hs-notice.php on line 20
 * Can you please fix this?
 * Line 20 should be changed to:
    if ( isset($_GET[‘page’]) && $_GET[‘page’] != ‘
   hubspot_activate’)
 * Line 23 … not quite sure what you are trying to do there, I can’t find where 
   you instantiated the class in the first place (maybe that is the issue, it hasn’t
   been instantiated yet).
 * [https://wordpress.org/plugins/hubspot/](https://wordpress.org/plugins/hubspot/)

The topic ‘PHP Errors in Plugin’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/hubspot_ffe6d3.svg)
 * [HubSpot for WordPress](https://wordpress.org/plugins/hubspot/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hubspot/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hubspot/)
 * [Active Topics](https://wordpress.org/support/plugin/hubspot/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hubspot/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hubspot/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [jnp22](https://wordpress.org/support/users/jnp22/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/php-errors-in-plugin/)
 * Status: not resolved