litespeedtech / litespeedtech/lscache_wp
PHP Warning: Undefined array key "REQUEST_METHOD"
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 257
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
I get a lot of these warnings
PHP Warning: Undefined array key "REQUEST_METHOD" in /wp-content/plugins/litespeed-cache/src/vary.cls.php on line 350
PHP: 8.0.6
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at wp-content/plugins/litespeed-cache/src/vary.cls.php line 350 and reproduce the warning with PHP 8.0.6 in the context where REQUEST_METHOD is absent. Check how this code path is exercised outside a normal web request, then verify that the warning no longer occurs without changing expected cache behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php, wordpress
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100