Support » Plugin: HubSpot for WordPress » PHP Errors in Plugin

  • I installed the plugin and it is throwing a PHP error and a notice.

    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: 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).

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