This repository was archived by the owner on Sep 29, 2025. It is now read-only.
Fix PHP 8.4 compatibility issues - Resolves fatal error and warnings#23
Open
nukeador wants to merge 1 commit into
Open
Fix PHP 8.4 compatibility issues - Resolves fatal error and warnings#23nukeador wants to merge 1 commit into
nukeador wants to merge 1 commit into
Conversation
- Fix undefined array key 'Not found' in hooks-setup.php by adding missing color entry and safety fallback - Fix undefined constant OD_ENV in footer.php by adding proper defined() check - Theme now loads without fatal errors or warnings on PHP 8.4.13 Fixes #[issue-number]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR resolves critical PHP 8.4 compatibility issues that were preventing the ISOC WordPress theme from functioning properly on modern PHP versions.
Issues Fixed
OD_ENVinfooter.php:11(Fixes Use of undefined constant OD_ENV #19, Undefined Constant #18)od/includes/hooks-setup.php:117Root Causes
OD_ENVconstant was referenced but never defined, causing fatal errors that prevented front-end loadingChanges Made
1. Fixed Undefined Constant (footer.php)
2. Fixed Array Key Issue (od/includes/hooks-setup.php)
Testing Environment
Test Results
Before Fixes ❌
After Fixes ✅
Plugin Dependencies
Theme continues to properly handle required/recommended plugins:
Backwards Compatibility
✅ These fixes are fully backwards compatible with older PHP versions (7.4+) and maintain all existing functionality.
Related Issues
Tested and verified working on PHP 8.4.13 with full WordPress functionality intact.