Jump to content
Shobha Patwal

[WHMCS Application] ERROR: InvalidArgumentException

Recommended Posts

I cannot login to clientarea as well as admin area. When I  checked the error_log through FTP it shows this error:

[WHMCS Application] ERROR: InvalidArgumentException: Query string must not include a URI fragment in /home/youstable/public_html/manage/vendor/zendframework/zend-diactoros/src/Uri.php:386 Stack trace: #0 /home/youstable/public_html/manage/vendor/zendframework/zend-diactoros/src/ServerRequestFactory.php(280): Zend\Diactoros\Uri->withQuery('action=displaya...') #1 /home/youstable/public_html/manage/vendor/zendframework/zend-diactoros/src/ServerRequestFactory.php(66): Zend\Diactoros\ServerRequestFactory::marshalUriFromServer(Array, Array) #2 /home/youstable/public_html/manage/vendor/whmcs/whmcs-foundation/lib/Http/Message/ServerRequest.php(0): Zend\Diactoros\ServerRequestFactory::fromGlobals(Array, NULL, NULL, NULL, Array) #3 /home/youstable/public_html/manage/index.php(0): WHMCS\Http\Message\ServerRequest::fromGlobals() #4 {main} {"exception":"[object] (InvalidArgumentException(code: 0): Query string must not include a URI fragment at /home/youstable/public_html/manage/vendor/zendframework/zend-diactoros/src/Uri.php:386)"} []

Please help me ...

 

Share this post


Link to post
Share on other sites

this same error just popped up for me today... apparently out of nowhere?!  i was using it okay just yesterday, and haven't made any server updates/tweaks/changes.

Share this post


Link to post
Share on other sites

perhaps take a look at Sam's suggestion from the thread below and see if that could be a cause...

Share this post


Link to post
Share on other sites

Unless my knowledge base tables are corrupted, I don't think that's my issue. I cannot access anything on my WHMCS install. Those error lines are the only ones in my error log though. Nothing else seems to be throwing any flags. 

The odd part for me was that I had literally logged in, totally fine. A client called, so I logged into the admin area. We talked for a few minutes... then I entered his name into the search bar. Nothing resulted, similar to when your login session has expired.

I refreshed the page and it still showed me as logged in, so I tried the search again. Same result, so I clicked on logout... and then the WHMCS error page loaded up.

Really odd, and no indication of what caused it. 

I tried uploading a fresh vendors folder (as I found that suggestion elsewhere on here), but still nothing. 

I'm uploading a completely fresh file set now, so hopefully that'll do it. 

### 

And, although I hadn't made any server changes... I did notice that my CloudLinux > PHP Selector modules had been updated over night. 

On most of the mods in 7.2, there's a second listing. The new ones end in "xxx-zts"

53C28303-89A2-49E9-AEC0-F7507509FC89.png

Share this post


Link to post
Share on other sites
Posted (edited)

...not sure why i hadn't looked into the server's apache error log before, but i just did...

looks like i need to figure out how and why oauth.so stopped loading randomly.  wow... how strange

[Thu Jun 06 18:02:50.297961 2019] [lsapi:notice] [pid 129818:tid 47378050160384] [client 71.235.43.210:47675] [host REMOVED.com] Backend log: [WHMCS Application] ERROR: Whoops\\Exception\\ErrorException: PHP Startup: Unable to load dynamic library 'oauth.so' (tried: /opt/alt/php72/usr/lib64/php/modules/oauth.so (/opt/alt/php72/usr/lib64/php/modules/oauth.so: undefined symbol: core_globals_id), /opt/alt/php72/usr/lib64/php/modules/oauth.so.so (/opt/alt/php72/usr/lib64/php/modules/oauth.so.so: cannot open shared object file: No such file or directory)) in Unknown:0 Stack trace: #0 /REMOVED/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\\Utility\\Error\\Run->handleError(32, 'PHP Startup: Un...', 'Unknown', 0) #1 [internal function]: WHMCS\\Utility\\Error\\Run->handleShutdown() #2 {main} {"exception":"[object] (Whoops\\\\Exception\\\\ErrorException(code: 32): PHP Startup: Unable to load dynamic library 'oauth.so' (tried: /opt/alt/php72/usr/lib64/php/modules/oauth.so (/opt/alt/php72/usr/lib64/php/modules/oauth.so: undefined symbol: core_globals_id), /opt/alt/php72/usr/lib64/php/modules/oauth.so.so (/opt/alt/php72/usr/lib64/php/modules/oauth.so.so: cannot open shared object file: No such file or directory)) at Unknown:0)"} []\n
[Thu Jun 06 18:28:49.269577 2019] [lsapi:notice] [pid 161114:tid 47378172315392] [client 71.235.43.210:48113] [host REMOVED.com] Backend log: [WHMCS Application] ERROR: Whoops\\Exception\\ErrorException: PHP Startup: Unable to load dynamic library 'ssh2.so' (tried: /opt/alt/php72/usr/lib64/php/modules/ssh2.so (/opt/alt/php72/usr/lib64/php/modules/ssh2.so: undefined symbol: file_globals_id), /opt/alt/php72/usr/lib64/php/modules/ssh2.so.so (/opt/alt/php72/usr/lib64/php/modules/ssh2.so.so: cannot open shared object file: No such file or directory)) in Unknown:0 Stack trace: #0 /REMOVED/vendor/whmcs/whmcs-foundation/lib/Utility/Error/Run.php(0): WHMCS\\Utility\\Error\\Run->handleError(32, 'PHP Startup: Un...', 'Unknown', 0) #1 [internal function]: WHMCS\\Utility\\Error\\Run->handleShutdown() #2 {main} {"exception":"[object] (Whoops\\\\Exception\\\\ErrorException(code: 32): PHP Startup: Unable to load dynamic library 'ssh2.so' (tried: /opt/alt/php72/usr/lib64/php/modules/ssh2.so (/opt/alt/php72/usr/lib64/php/modules/ssh2.so: undefined symbol: file_globals_id), /opt/alt/php72/usr/lib64/php/modules/ssh2.so.so (/opt/alt/php72/usr/lib64/php/modules/ssh2.so.so: cannot open shared object file: No such file or directory)) at Unknown:0)"} []\n

 

Edited by splaquet

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