quickbooks-php
quickbooks-php copied to clipboard
Can't find Mysqli.php in SQL folder (it's Sql)
I just had a bizarre error when running my QuickBooks sync utility. In the package, it was trying to require the sql driver in vendor/consolibyte/quickbooks/QuickBooks/Driver/SQL/Mysqli.php. The problem: SQL is actually called Sql. I'm calling QuickBooks_Utilities::initialized(...)
and QuickBooks_IPP_IntuitAnywhere(...)
, and haven't really changed anything in my code for months.
Error message (I'm using the Laravel framework):
exception 'Symfony\Component\Debug\Exception\FatalErrorException' with message 'QuickBooks_Loader::load(): Failed opening required '/var/www/my_app/vendor/consolibyte/quickbooks/QuickBooks/Driver/Sql/Mysqli.php' (include_path='.:/usr/share/php:/usr/share/pear:/var/www/my_app/vendor/consolibyte/quickbooks')' in /var/www/my_app/vendor/consolibyte/quickbooks/QuickBooks/Loader.php:56 Stack trace: #0 {main}
I solved this myself by just making a duplicate folder called SQL. Do you know what would have caused this? Or have I misconfigured something?
Thanks for your time.
@consolibyte Low and behold, I just ran into this issue again after running a composer update and deploying. Suddenly my jobs start blowing up the errors channel with QuickBooks sync failures.
Why is the folder called Sql but referred to as SQL? I had to fix this by making a symlink from SQL to Sql... can someone please explain this? Is this some configuration issue with the package or php?