-
Notifications
You must be signed in to change notification settings - Fork 809
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Deprecated: Class Jetpack_Geo_Location" Error Message on Sites #41655
Comments
OpenAI suggested the following labels for this issue:
|
Support References This comment is automatically generated. Please do not edit it.
|
Reported in:
|
Quick Update: The issue will most likely be fixed in v14.5.
|
Just to add some additional clarification - these deprecation notices were intentional. They are just particularly noisy as some core themes - Twenty Fifteen, Nineteen, Seventeen, Sixteen, Twenty, and Twenty One - all have included support for this feature (which we've actually included via Jetpack, it doesn't come from the theme itself). Relevant P2: pfwV0U-kl-p2 |
As a workaround, a site can remove the Jetpack theme support feature through a mu-plugin. <?php
/**
* Disable Jetpack's geo-module theme supports.
*
* @see https://github.com/Automattic/jetpack/issues/41655
*/
add_action( 'after_setup_theme', function() {
remove_theme_support( 'jetpack-geo-location' );
}, 20 ); IMHO the jetpack compat theme-supports should've been removed when the module was disabled. |
Thanks for mentioning the snippet @dd32 . To add to that as well, for self-hosted sites that same snippet could be added to a functionality plugin: https://jetpack.com/support/adding-code-snippets/ |
Thanks for the workaround. I was suffering from this issue and can confirm that the workaround works, though I agree that it shouldn't be necessary in the first place. |
Impacted plugin
Jetpack
Quick summary
After upgrading to Jetpack version 14.3, users are encountering the following deprecated notice both on the website and in the WordPress admin dashboard:
Deprecated: Class Jetpack_Geo_Location is deprecated since version 14.3 with no alternative available. in /home/eueu3893/public_html/wp-includes/functions.php on line 6114.
The issue doesn't appear to be because of any other plugin/theme, as for one of the users, I tried plugin/theme dance, but that didn't resolve the issue.
Can we check the source of the issue for this?
For now, I'm asking the user to set
WP_DEBUG
toFALSE
in the wp-config.php file to remove the error message.Steps to reproduce
Not Known (I can't see the issue on my test site)
Site owner impact
Fewer than 20% of the total website/platform users
Severity
Major
What other impact(s) does this issue have?
No revenue impact
If a workaround is available, please outline it here.
No response
Platform (Simple and/or Atomic)
Self-hosted
The text was updated successfully, but these errors were encountered: