Git Product home page Git Product logo

heartbeat-control's People

Contributors

bastien-martinent avatar chriswiegman avatar engahmeds3ed avatar geekpress avatar jeffmatson avatar mathieulamiot avatar maxime-pasquier avatar tabrisrp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

heartbeat-control's Issues

PHP Deprecated Warning in outdated vendor CMB2

A quick search after seeing the error below shows that you are running an outdated version of CMB2. In this case version 2.6.0 from January 2019. CMB2 2.8 fixes the error being thrown in this plugin when running PHP >= 8.x: #1396.

PHP Deprecated:  Required parameter $field_id follows optional parameter $type in 
/usr/.../plugins/heartbeat-control/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php on line 693

Calling get_plugins() function too early

You are calling the get_plugins() function immediately on your plugin load, it is recommended to call this on the 'after_setup_theme' hook or later.

The issue is that the function caches the result of the function call on its first call, hence any plugin or theme using its filters will be unsuccessful as the data is already cached by your early call, rendering the filters useless.

Please fix this issue.

PHP warnings when using plugin on PHP8.2

Before submitting an issue please check that you’ve completed the following steps:

  • Made sure you’re on the latest version
  • Used the search feature to ensure that the bug hasn’t been reported before

Describe the bug
We are experiencing the following PHP errors on this specific version:

  • [14-Aug-2023 09:04:14 UTC] PHP Warning: Undefined variable $old_location in /var/www/rocketlabsqa.ovh/htdocs/wp-content/plugins/heartbeat-control/heartbeat-control.php on line 77
  • [14-Aug-2023 09:04:14 UTC] PHP Warning: Undefined array key "heartbeat_control_location" in /var/www/rocketlabsqa.ovh/htdocs/wp-content/plugins/heartbeat-control/heartbeat-control.php on line 129
  • [14-Aug-2023 09:04:14 UTC] PHP Warning: foreach() argument must be of type array|object, null given in /var/www/rocketlabsqa.ovh/htdocs/wp-content/plugins/heartbeat-control/heartbeat-control.php on line 129
  • [14-Aug-2023 09:04:15 UTC] PHP Deprecated: Optional parameter $type declared before required parameter $field_id is implicitly treated as a required parameter in /var/www/rocketlabsqa.ovh/htdocs/wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/rest-api/CMB2_REST.php on line 693
  • [14-Aug-2023 09:05:16 UTC] PHP Deprecated: Optional parameter $args declared before required parameter $i is implicitly treated as a required parameter in /var/www/rocketlabsqa.ovh/htdocs/wp-content/plugins/heartbeat-control/vendor/cmb2/cmb2/includes/types/CMB2_Type_Multi_Base.php on line 34
  • [14-Aug-2023 09:05:48 UTC] PHP Warning: Undefined array key "2x" in /var/www/rocketlabsqa.ovh/htdocs/wp-content/plugins/heartbeat-control/Plugin_Card_Helper.php on line 244

To Reproduce
Steps to reproduce the behavior:

  1. Use PHP8.2 and WordPress 6.3
  2. Install and activate Heartbeat Control plugin
  3. Go to the Heartbeat Control settings
  4. Change each of the settings to: Allow Heartbeat, Disable Heartbeat, Modify Heartbeat. Save settings after each change
  5. Check the PHP log

Expected behavior
No PHP warnings in the logs, plugin working correctly on the previous PHP/WordPress versions:

  1. Disable HeartBeat will disable this feature on specific parts of the website
  2. Allow HeartBeat will not limit this feature on specific parts of the website
  3. Modify HeartBeat will limit this feature to chosen frequency on specific parts of the website
  4. To validate the HeartBeat behaviour, open network tab on specific part of the website and observe the frequency of the following request
    image

Update security policy

Describe the solution you'd like
We've moved our security reporting to Patchstack, thus we need to update our readme + security reporting :

In the Readme :

== Frequently Asked Questions ==  

= Where do I report security bugs found in this plugin? =  
  
You can report any security bugs found in the source code of the site-reviews plugin through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/heartbeat-control). The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.
---  

In the Security.md (file need to be created in Github)

# Security Policy  
  
## Reporting Security Bugs  
  
Please report security bugs found in the site-reviews plugin's source code through the [Patchstack Vulnerability Disclosure Program](https://patchstack.com/database/vdp/heartbeat-control). The Patchstack team will assist you with verification, CVE assignment and take care of notifying the developers of this plugin.
---

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.