Giter Site home page Giter Site logo

endurance-wp-module-data's People

Contributors

0averyan avatar circlecube avatar desrosj avatar earnjam avatar wpscholar avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

isabella232

endurance-wp-module-data's Issues

Fatal errors when used with Jetpack -- incorrect number of parameters used with filter

#4 appears to be causing some Fatals at the moment, on sites with the Jetpack plugin installed, since bluehost/bluehost-wordpress-plugin#38 added the wp-module-data as a new dependency of the plugin.

Error Details
=============
An error of type E_ERROR was caused in line 35 of the file /home4/hometoo1/public_html/wp-content/plugins/bluehost-wordpress-plugin/vendor/endurance/wp-module-data/src/Listeners/Jetpack.php. Error message: Uncaught ArgumentCountError: Too few arguments to function Endurance\WP\Module\Data\Listeners\Jetpack::connected(), 1 passed in /home4/hometoo1/public_html/wp-includes/class-wp-hook.php on line 287 and exactly 3 expected in /home4/hometoo1/public_html/wp-content/plugins/bluehost-wordpress-plugin/vendor/endurance/wp-module-data/src/Listeners/Jetpack.php:35
Stack trace:
#0 /home4/hometoo1/public_html/wp-includes/class-wp-hook.php(287): Endurance\WP\Module\Data\Listeners\Jetpack->connected(Array)
#1 /home4/hometoo1/public_html/wp-includes/class-wp-hook.php(311): WP_Hook->apply_filters(”, Array)
#2 /home4/hometoo1/public_html/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
#3 /home4/hometoo1/public_html/wp-content/plugins/jetpack/class.jetpack.php(3442): do_action(‘jetpack_log_ent…’, Array)
#4 /home4/hometoo1/public_html/wp-content/plugins/jetpack/class.jetpack.php(4202): Jetpack::log(‘register’)
#5 /home4/hometoo1/public_html/wp-content/plugins/jetpack/_inc/lib/admin-pages/class.jetpack-admin-page.php(

The jetpack_log_entry filter used in src/Listeners/Jetpack.php only accepts one parameter:
https://github.com/Automattic/jetpack/blob/bb27f0b0997b624ba5db5d2f0d45c36f900bd95b/class.jetpack.php#L3427-L3442
You won't be able to pass it 3 parameters I'm afraid.

cc @earnjam

Bluehost Plugin Version:

  • Version: 2.2.2

This was reported here:
https://wordpress.org/support/topic/critical-error-on-jetpack-setup/

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.