title: Undefined variable: json in admin/controller/sale/order.php on line 2490
body: <p>Not sure if anyone can help however I have found ANOTHER bug/issue in opencart 2. When changing the status of orders I am getting the below message:</p>
  
  <pre><code>SyntaxError: Unexpected Token &lt;
  
  OK
  
  Notice:Undefined variable: json in /vhost/...../www/admin/controller/sale/order.php on line 2490
  </code></pre>
  
  <p>I have tried re-creating a new API user as found in other posts about this without any luck, still gets the same error. I have also tried amended the order.php file to add the extra line for json but this makes no difference so reverted to original order.php file for now.</p>