Jump to content

how to fix Exception: Laminas\Diactoros\Exception\InvalidArgumentException

Recommended Posts

Hi all,

I'm seeing the record in WHMCS activity several times a day

Exception: Laminas\Diactoros\Exception\InvalidArgumentException: Query string must not include a URI fragment in /home/casheus/public_html/clients/vendor/laminas/laminas-diactoros/src/Uri.php:406 Stack trace: #0 /home/casheus/public_html/clients/vendor/laminas/laminas-diactoros/src/functions/marshal_uri_from_sapi.php(223): Laminas\Diactoros\Uri->withQuery('language=swedis...') #1 /home/casheus/public_html/clients/vendor/laminas/laminas-diactoros/src/ServerRequestFactory.php(74): Laminas\Diactoros\marshalUriFromSapi(Array, Array) #2 /home/casheus/public_html/clients/vendor/whmcs/whmcs-foundation/lib/Http/Message/ServerRequest.php(0): Laminas\Diactoros\ServerRequestFactory::fromGlobals(Array, NULL, NULL, Array, Array) #3 /home/casheus/public_html/clients/index.php(0): WHMCS\Http\Message\ServerRequest::fromGlobals() #4 {main}

I followed many articles before but didn't find a solution to fix it

Screen Shot 2021-05-31 at 6.55.22 PM.png

Link to comment
Share on other sites

  • 10 months later...
  • WHMCS Technical Analyst II

These errors would indicate that the "Log Errors" debug setting is enabled under Configuration > System Settings > General Settings > Other tab and something is accessing either your client area pages or custom pages with invalid URLs and query strings. This is not indicative of an issue with WHMCS itself and can be safely ignored. I would recommend disabling that setting as it is not intended to be enabled during production usage.

I hope this information helps.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated