Jump to content
Mark Coates

Invalid Argument Exception

Recommended Posts

Hi all,

 

i have noticed over the last few days i am getting this in my activity log in the admin panel.

 

Everything seems to be working however this appears every now and again.

=====

Exception: InvalidArgumentException: Query string must not include a URI fragment in /home/danumhos/public_html/vendor/zendframework/zend-diactoros/src/Uri.php:386 Stack trace: #0 /home/danumhos/public_html/vendor/zendframework/zend-diactoros/src/ServerRequestFactory.php(280): Zend\Diactoros\Uri->withQuery('language=portug...') #1 /home/danumhos/public_html/vendor/zendframework/zend-diactoros/src/ServerRequestFactory.php(66): Zend\Diactoros\ServerRequestFactory::marshalUriFromServer(Array, Array) #2 /home/danumhos/public_html/vendor/whmcs/whmcs-foundation/lib/Http/Message/ServerRequest.php(0): Zend\Diactoros\ServerRequestFactory::fromGlobals(Array, NULL, NULL, NULL, Array) #3 /home/danumhos/public_html/index.php(0): WHMCS\Http\Message\ServerRequest::fromGlobals() #4 {main}

=====

Has anyone had this issue before and know how i could fix it?

Share this post


Link to post
Share on other sites

Hi @Mark Coates

These entries in the logs indicate that a non-existent knowlegebase or announcement page is being accessed. This could either by a web-spider or a automated bot.

It is not a cause for concern, but you may wish to review your website links to ensure that there are no dead links.

Share this post


Link to post
Share on other sites

Was a solution found to this?  We have been trying to find the cause (and solution) for a year now.

Share this post


Link to post
Share on other sites

As SamP said, the warnings are triggered by bots/visitors browsing dead links. To avoid such problems you should force a redirect to another page (e.g. home page) as soon as you detect that they're requesting a dead link. Alternatively you can also run a brutal die(); but in this case you're going to lose a potential visitor that could be interest in your products.

Edited by Kian

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

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