Notice/Error on PHP8.1
-
On php 8, sending null in functions that expect strings will give a notice.
On Tools.php, method getOptions, you have
$homepath = ltrim(parse_url(site_url(), PHP_URL_PATH), '/');
In case the path is empty, parse_url returns null, then ltrim gives a notice because you’re not sending a string.
You should replace it with
$homepath = ltrim(parse_url(site_url(), PHP_URL_PATH)??'', '/');
See this :
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Notice/Error on PHP8.1’ is closed to new replies.