Automattic / Automattic/jetpack
flood of debug warnings
- Dominant language
- PHP
- Stars
- 1.8k
- Forks
- 898
- Avg merge
- 1d 18h
- Merged PRs (30d)
- 774
Description
### Impacted plugin
Jetpack
### Steps to Reproduce
1. enable wp debug
2. load a page
### A clear and concise description of what you expected to happen.
no flood of warnings making debugging annoying
### What actually happened
error spew: multiple instances of
`Notice: Function Automattic\Jetpack\Assets::alias_textdomain was called incorrectly. Textdomain aliases should be registered before the wp_default_scripts hook. This notice was triggered by the jetpack-wordads domain. Please see Debugging in WordPress for more information. in /home/cardin55/public_html/wp-includes/functions.php on line 5835`
and
`Deprecated: Hook jetpack_check_mobile is deprecated since version jetpack-8.3.0 with no alternative available. in /home/cardin55/public_html/wp-includes/functions.php on line 5768`
### Browser
Mozilla Firefox, Apple Safari
### Other information
_No response_
### Platform (Simple, Atomic, or both?)
Self-hosted
### Reproducibility
Consistent
### Severity
One
### Available workarounds?
No but the platform is still usable
### Workaround details
_No response_
Contributor guide
Research direction
Reproduce the issue on a self-hosted WordPress installation with WP debug enabled, then search Jetpack for Assets::alias_textdomain and the jetpack_check_mobile hook. Trace which code paths produce the two reported notices and verify that loading a page no longer emits the warning flood.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100