Skip to content

Fix fallback lang file path in HandleCSRCreation.php - #7

Open
YumeChaan wants to merge 1 commit into
masterfrom
INTGRTNS-554-BE-WHMCS-SSL-Module-Fatal-error-on-CSR-generation-page-due-to-incorrect-fallback-language-file-path-in-HandleCSRCreation.php
Open

Fix fallback lang file path in HandleCSRCreation.php#7
YumeChaan wants to merge 1 commit into
masterfrom
INTGRTNS-554-BE-WHMCS-SSL-Module-Fatal-error-on-CSR-generation-page-due-to-incorrect-fallback-language-file-path-in-HandleCSRCreation.php

Conversation

@YumeChaan

Copy link
Copy Markdown
Contributor

Fixed the fallback language file path in HandleCSRCreation.php. It was missing /../, causing a fatal error on the CSR generation page when the fallback to english.php was triggered.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Fixes a fatal error on the CSR generation page by correcting the fallback language file include path used when the configured WHMCS language file is missing.

Changes:

  • Update the fallback require() path in HandleCSRCreation.php from __DIR__/lang/english.php to __DIR__/../lang/english.php so it correctly resolves from the classes/ directory.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@YumeChaan
YumeChaan requested a review from avishka-ra July 27, 2026 03:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants