我已经使用这个几个月了,但是突然开始出现错误。我重新生成了QB键,但它仍然发生
当我运行任何东西时,我首先包含配置文件
include 'quickbooks-php/docs/partner_platform/example_app_ipp_v3/config.php';
在配置文件中,脚本总是在这一行失败:
if ($IntuitAnywhere->check($the_username, $the_tenant) and
$IntuitAnywhere->test($the_username, $the_tenant)){
错误如下:
<b>Notice</b>: unserialize(): Error at offset 0 of 4 bytes in <b>/var/www/html/quickbooks-php/QuickBooks/Encryption/Aes.php</b> on line <b>82</b><br />
<br />
<b>Warning</b>: current() expects parameter 1 to be array, boolean given in <b>/var/www/html/quickbooks-php/QuickBooks/Encryption/Aes.php</b> on line <b>83</b><br />
<br />
<b>Warning</b>: mcrypt_generic_init(): Iv size incorrect; supplied length: 30, needed: 32 in <b>/var/www/html/quickbooks-php/QuickBooks/Encryption/Aes.php</b> on line <b>73</b><br />
<br />
<b>Warning</b>: mdecrypt_generic(): An empty string was passed in <b>/var/www/html/quickbooks-php/QuickBooks/Encryption/Aes.php</b> on line <b>74</b><br />
<br />
<b>Warning</b>: current() expects parameter 1 to be array, boolean given in <b>/var/www/html/quickbooks-php/QuickBooks/Encryption/Aes.php</b> on line <b>83</b><br />
我尝试运行diagnostics.php并收到相同的错误。
如果Keith(以前帮助过我的作者)或其他人能帮助我,我将不胜感激。官方论坛似乎很低迷。
听起来您的密钥在数据库中不知怎么损坏了。试试这个:
TRUNCATE quickbooks_oauth;
然后点击[连接到QuickBooks]按钮重新连接到QuickBooks。
请注意,如果你这样做,任何连接到你的应用程序的用户都必须重新连接。
如果你不想断开每个你可以只删除quickbooks_oauth
记录为您的特定领域。