Support » Plugin: HubSpot for WordPress » Plugin throwing notices and warnings in debug mode. Please fix.

  • I’m seeing this in 4.2.2 but have been seeing it since 3.9.x or so. It’s only when the site is in debug mode, so not many will see it, but if I’m debugging something I don’t want to see your errors. Plugins should keep clean any php errors or notices.

    Notice: Undefined index: page in /wp-content/plugins/hubspot/inc/hs-notice.php on line 20

    Strict Standards: Non-static method WPHubspot::hs_is_customer() should not be called statically, assuming $this from incompatible context in /wp-content/plugins/hubspot/inc/hs-notice.php on line 23

    https://wordpress.org/plugins/hubspot/

Viewing 3 replies - 1 through 3 (of 3 total)
  • I submitted a ticket to HubSpot about this and got this response:

    As for the PHP error, the plugin does three things:

    1. analytics
    2. adds commentors as contacts/subscribers
    3. shows blog author/date info in page performance

    If those are functioning, I would just ignore the error. If any of those are not working try following these steps:

    http://help.hubspot.com/articles/KCS_Article/Integrations/How-to-troubleshoot-the-HubSpot-for-WordPress-plugin

    and then if none of those resolve the issue, delete the HubSpot directory from the WordPress server and then reinstall the plugin.

    Thread Starter Evan Mullins

    (@circlecube)

    Ha, great support from @hubspot.

    Yea, there might be errors, we just ignore those pesky intruders.

    Thanks for sharing Jason.

    I found the same issue WP 4.2.2

    Notice: Undefined index: page in /Users/hectorc/sites/new/simbadev/wp-content/plugins/hubspot/inc/hs-notice.php on line 20

    Strict Standards: Non-static method WPHubspot::hs_is_customer() should not be called statically, assuming $this from incompatible context in /Users/hectorc/sites/new/simbadev/wp-content/plugins/hubspot/inc/hs-notice.php on line 23

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Plugin throwing notices and warnings in debug mode. Please fix.’ is closed to new replies.