QB Issue Resolution:

Shareholder means you are taxed as a c- or s-corporation

in that case, create a liability account called something like due to [name]

then a journal entry

debit the expense and credit the liability account

later when you pay  him back use the liability account as the expense (reason) for the payment

Resolution for Issue 'Can I enter bills paid with cash from the shareholder?' available: Yes (Solved).
Source: Intuit Community forum.

Can I enter bills paid with cash from the shareholder?: this issue or error code is a known issue in Quickbooks Online (QBO) and/or Quickbooks. Support for this issue is available either by self-service or paid support options. Experts are available to resolve your Quickbooks issue to ensure minimal downtime and continue running your business. First try to resolve the issue yourself by looking for a resolution described below. If it is a complex issue or you are unable to solve the issue, you may contact us by clicking here or by using other support options.

Support for Cash
Quickbooks Repair Pro will resolve it efficiently and affordably. Guaranteed resolution of your issue, or you pay nothing!

Error Recovery for Cash [Canada]
E-Tech is the #1 Quickbooks data migration and Conversion service provider.

Get 50% off Quickbooks Online

Click Here for 50% off!

Additional Support Options: