Skip to content
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

Open
bizanimesh opened this issue Feb 8, 2025 · 8 comments
Open

"Deprecated: Class Jetpack_Geo_Location" Error Message on Sites #41655

bizanimesh opened this issue Feb 8, 2025 · 8 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report" [Experiment] AI labels added [Feature] Geo Location [Feature] Theme Tools [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Status] Auto-allocated Triaged [Type] Question

Comments

@bizanimesh
Copy link

bizanimesh commented Feb 8, 2025

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 to FALSE 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

@bizanimesh bizanimesh added [Type] Bug When a feature is broken and / or not performing as intended Needs triage Ticket needs to be triaged labels Feb 8, 2025
@github-actions github-actions bot added [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal labels Feb 8, 2025
Copy link
Contributor

github-actions bot commented Feb 8, 2025

OpenAI suggested the following labels for this issue:

  • [Feature Group] Support: The issue requires support for users experiencing error messages after a plugin upgrade.
  • [Feature] Geo Location: The deprecated class mentioned in the issue is specifically related to the Geo Location functionality of the Jetpack plugin.
  • [Feature] Error Reporting: This issue involves a deprecated error message that needs reporting to help improve plugin stability.

Copy link
Contributor

github-actions bot commented Feb 8, 2025

Support References

This comment is automatically generated. Please do not edit it.

  • 9247535-zen
  • 9387858-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report" label Feb 8, 2025
@bizanimesh
Copy link
Author

Reported in:

  • 9247535-zd-a8c
  • 9387858-zd-a8c

@bizanimesh
Copy link
Author

bizanimesh commented Feb 8, 2025

Quick Update: The issue will most likely be fixed in v14.5.

  • Source: p1738852553098649/1738833817.851799-slack-CDLH4C1UZ

@bizanimesh bizanimesh added Triaged and removed Needs triage Ticket needs to be triaged labels Feb 8, 2025
@matticbot matticbot moved this from Needs Triage to Triaged in Automattic Prioritization: The One Board ™ Feb 8, 2025
@coder-karen
Copy link
Contributor

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

@coder-karen coder-karen added [Type] Question and removed [Type] Bug When a feature is broken and / or not performing as intended labels Feb 10, 2025
@dd32
Copy link
Member

dd32 commented Feb 11, 2025

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.

@coder-karen
Copy link
Contributor

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/

@campbell-m
Copy link

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.

@jeherve jeherve added [Feature] Theme Tools and removed [Feature Group] Support All things related to customer support. [Feature] Error Reporting labels Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. aka "Happiness Request", or "User Report" [Experiment] AI labels added [Feature] Geo Location [Feature] Theme Tools [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Pri] Normal [Status] Auto-allocated Triaged [Type] Question
Projects
Development

No branches or pull requests

6 participants