PHP DevKit for QuickBooks - Troubleshooting

From ConsoliBYTE Wiki
Jump to: navigation, search

Below are some steps/hints towards troubleshooting Web Connector problems when using the PHP DevKit.


Check the PHP error log

If things are going really wrong, make sure you turn on PHP error logging to a file.

Without having PHP log errors to a file, it's difficult (if not impossible) to find PHP errors or warnings that are causing problems and causing requests to QuickBooks to fail.

There's some good information on error logging in the PHP documentation:

Watch the quickbooks_* SQL tables

Watch the MySQL tables! The two tables to watch are:

  • quickbooks_queue
  • quickbooks_log

The quickbooks_queue table shows a record of each action that we performed on QuickBooks, and what the resulting status was. If you see a status of 'i', that is a bad thing, and generally means that some PHP or database error occurred. If you see a status of 'e', it's bad and means that an error occurred while communicating with QuickBooks. Any other status is OK. The 'ident' field is the primary key of your record you passed into the queueing function (i.e.: The quote ID or the customer ID).

The quickbooks_log table shows a log of all incoming and outgoing XML and SOAP requests/responses, plus other general logging. By watching this table you can see the actual outgoing and incoming qbXML requests and responses your application is producing/consuming.

Visit the AppURL URL in your .QWC file in a browser

What do you see? You should see some diagnostic information as plain-text.

Do you see any PHP errors or warnings?

Check the Web Connector log file

Turn the Web Connector to VERBOSE logging first.

Within the Web Connector, click the "View Log" button. You'll get a somewhat detailed log which often tells you what's wrong. Take the time to actually read the error message.

Information about specific errors