Skip to content

Fatal Error: User_Agent_Info::get_browser_display_name method undefined #45784

@dd32

Description

@dd32

Impacted plugin

Jetpack

Quick summary

The following PHP fatal error is encountered when running Jetpack with Super Cache:

E_ERROR Uncaught Error: Call to undefined method Automattic\Jetpack\Device_Detection\User_Agent_Info::get_browser_display_name() in wp-content/plugins/jetpack/jetpack_vendor/automattic/jetpack-forms/src/contact-form/class-feedback.php:944
URL https://example.org/wp-admin/admin.php?page=jetpack-forms-admin

Steps to reproduce

  1. Install WP Super Cache 3.0.2 (Bundles older version of Jetpack\Device_Detection\User_Agent_Info)
  2. Install Jetpack 15.2 (Bundles newer version)
  3. Use Jetpack Forms.

Or something like that.

WP Super Cache must load before Jetpack, unsure if there's anything to trigger that.

Compare the files:
https://plugins.trac.wordpress.org/browser/wp-super-cache/tags/3.0.2/vendor/automattic/jetpack-device-detection/src/class-user-agent-info.php
https://plugins.trac.wordpress.org/browser/jetpack/tags/15.2/jetpack_vendor/automattic/jetpack-device-detection/src/class-user-agent-info.php

Triggered by #45674 (cc @vianasw)

Site owner impact

Fewer than 20% of the total website/platform users

Severity

Major

What other impact(s) does this issue have?

No response

If a workaround is available, please outline it here.

No response

Platform (Simple and/or Atomic)

No response

Metadata

Metadata

Labels

[Plugin] Super CacheA fast caching plugin for WordPress.[Type] BugWhen a feature is broken and / or not performing as intended

Type

Projects

Status

Triage

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions