PHP Error - htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated
Error in PHP Script /index.php

htmlspecialchars(): Passing null to parameter #1 ($string) of type string is deprecated

Error Type: E_DEPRECATED

Source File: /home4/silksto1/public_html/core/cache/includes/elements/modx/revolution/modsnippet/14.include.cache.php Line: 65

Line 60:                    $strHeaderBushou = '部首';
Line 61:                    $strHeaderZiyuan = '字源';
Line 62:                }
Line 63:    
Line 64:                // Sanitize user-visible strings that are plain text
Line 65:                $strMeaning = htmlspecialchars($strMeaning, ENT_QUOTES, 'UTF-8');
Line 66:                
Line 67:                // Conditionally build YouTube embed only if ID is present
Line 68:                $embedHtml = '';
Line 69:                if (!empty($strYouTube)) {
Line 70:                    $safeYouTube = htmlspecialchars($strYouTube, ENT_QUOTES, 'UTF-8');

Call Stack:

#1 /home4/silksto1/public_html/_qcube4/vendor/qcubed-4/common/src/Error/Manager.php(271): QCubed\Error\Manager::handleError()
#2 (): QCubed\Error\Manager::shutdown()

Variable Dump: Show/Hide


Error Report Generated: Tuesday, October 20 2026, 4:19:07 PM