Jump to content

API GetTicket - error if private note is added


Recommended Posts

If a private note is added to a ticket, GetTicket api call is throwing error:

Oops!
Something went wrong and we couldn't process your request.

Error: Invalid string offset in /home/whmcs_dir/includes/api/getticket.php:0
Stack trace:
#0 /home/whmcs_dir/vendor/whmcs/whmcs-foundation/lib/Api/V1/Api.php(0): unknown()
#1 /home/whmcs_dir/vendor/whmcs/whmcs-foundation/lib/Api/V1/Api.php(0): WHMCS\Api\V1\Api->executeApiCall()
#2 /home/whmcs_dir/vendor/whmcs/whmcs-foundation/lib/Api/ApplicationSupport/Route/Middleware/HandleProcessor.php(0): WHMCS\Api\V1\Api->call()
#3 /home/whmcs_dir/vendor/whmcs/whmcs-foundation/lib/Api/ApplicationSupport/Route/Middleware/HandleProcessor.php(0): WHMCS\Api\ApplicationSupport\Route\Middleware\HandleProcessor->processV1Request(Object(WHMCS\Api\ApplicationSupport\Http\ServerRequest))
#4 /home/whmcs_dir/vendor/whmcs/whmcs-foundation/lib/Route/Middleware/Strategy/DelegatingMiddlewareTrait.php(0): WHMCS\Api\ApplicationSupport\Route\Middleware\HandleProcessor->_process(Object(WHMCS\Api\ApplicationSupport\Http\ServerRequest), Object(Middlewares\Utils\Delegate))
.
.
.
.
.

If I remove the private note from the ticket, everything works fine.

Parameters I am passing:
 

$command = array(
'action' => 'GetTicket',
'username' => $whmcs_user,
'password' => $whmcs_pass,
'ticketnum' => $ticket_id,
'responsetype' => 'json',
);

 

Link to comment
Share on other sites

  • dotcomUNDERGROUND changed the title to API GetTicket - error if private note is added

Join the conversation

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

Guest
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • 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