Automattic / Automattic/babble

Get undefined property notices when activating plugin

Open
#198 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
PHP
Stars
250
Forks
44
PR merge metrics
No merged PRs in 30d

Description

I got the following notices when I activated the plugin, not major probably simple to squash.

```
Notice: Undefined property: Babble_Locale::$interface_lang_cookie in /srv/www/wordpress.dev/content/plugins/babble/class-locale.php on line 579
Notice: Undefined property: Babble_Locale::$content_lang_cookie in /srv/www/wordpress.dev/content/plugins/babble/class-locale.php on line 568
```

Contributor guide

Open the contributing guide

Research direction

Start in class-locale.php at lines 568 and 579, then trace where the interface_lang_cookie and content_lang_cookie properties are initialized during plugin activation. Reproduce activation with WordPress while notices are enabled and confirm that both undefined-property notices no longer appear.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
localization
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.