Getting Error “Deprecated: ltrim(): Passing null to parameter #1 ($string) of type string is deprecated”
This is a deprecation error and not really major.
Gett error only with Debug on!
$query = ''; to line 2925 or wp-includes/wp-db.php
With WPDEBUG set to true
- was troubleshooting a cookie issue
- turned on WPDEBUG manually in wp-config.php
- error appears
- did not test if error appears AFTER I deleted site cookies (my original reason for turning on debug)
Was troubleshooting wp-login issue?
In the real world debug would be set to false so this may not effect anyone but developers.
Set query string as empty before the
ltrim is asked for to avoid passing
In wp-db.php I added
$query = ''; on line 2925 which is the first BLANK line before the collation query.