Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

Plugin exits php when run in script mode

Open
#11 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

Research direction

Start by tracing the plugin's start function and how it detects whether it is running in CLI mode. Reproduce the issue with a custom PHP script and verify that the script continues executing without the plugin terminating it, while normal WordPress loading remains unaffected.

Written by the indexing model from the issue text.

Description

When using a php script to manipulate a WP install, the force-https plugin will still try to load itself, and the start function will die(), thus making it impossible for the main script to ever execute.

I see a related issue #6 but that seems to be a fix that just detects WP_CLI. In my situation I have a custom CLI script.

My suggestion is that the script should only load itself when not in CLI mode.

Dominant language
PHP
Stars
26
Forks
8
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from littlebizzy/force-https

All issues in littlebizzy/force-https

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.