Query String URI Errors

Problem

You see the following error in the Activity Log at Configuration () > System Logs:

InvalidArgumentException: Query string must not include a URI fragment in /path/to/whmcs/vendor/zendframework/zend-diactoros/src/Uri.php:386

Cause

A bot is crawling your website and trying to access an invalid URL.

Solution

You do not need to take any corrective action: the system is correctly producing an error when the bot attempts to visit the invalid URL.

To stop logging this error, disable Log Errors in the Other tab at Configuration () > System Settings > General Settings.

Last modified: November 12, 2024