Code: Server Error Log Error Info ErrorException: file_put_contents(internal_data/bdpaygate.txt) [<a href='function.file-put-contents'>function.file-put-contents</a>]: failed to open stream: Permission denied - library/bdPaygate/Model/Processor.php:80 Generated By: Unknown Account, 2 minutes ago Stack Trace #0 [internal function]: XenForo_Application::handlePhpError(2, 'file_put_conten...', '/home/thereefu/...', 80, Array) #1 /home/thereefu/public_html/library/bdPaygate/Model/Processor.php(80): file_put_contents('internal_data/b...', 'mail@thereefuge...') #2 /home/thereefu/public_html/bdpaygate/callback.php(106): bdPaygate_Model_Processor->log('paypal', '', 'other', false, Array) #3 {main} Request State array(3) { ["url"] => string(60) "http://www.thereefuge.com.au/bdpaygate/callback.php?p=paypal" ["_GET"] => array(1) { ["p"] => string(6) "paypal" } ["_POST"] => array(23) { ["txn_type"] => string(13) "subscr_signup" ["subscr_id"] => string(19) "S-8X79957987722530L" ["last_name"] => string(7) "Melrose" ["residence_country"] => string(2) "AU" ["mc_currency"] => string(3) "AUD" ["item_name"] => string(52) "Account Upgrade: VIP+ Recurring Payment (Morphology)" ["business"] => string(20) "paypal@lavapixel.com" ["recurring"] => string(1) "1" ["verify_sign"] => string(56) "ACBDvglRkc9csMKu7AqUQezFTPb3AhaB-LEG23sGbRMTbvhor1lv8sgp" ["payer_status"] => string(8) "verified" ["payer_email"] => string(22) "xxxxx@gmail.com" ["first_name"] => string(5) "Holly" ["receiver_email"] => string(20) "paypal@lavapixel.com" ["payer_id"] => string(13) "YHS3ABNXYK5V6" ["reattempt"] => string(1) "1" ["payer_business_name"] => string(18) "Creative Nutrition" ["subscr_date"] => string(25) "04:38:50 Oct 31, 2013 PDT" ["custom"] => string(26) "user_upgrade|1580|5c16e|17" ["charset"] => string(12) "windows-1252" ["notify_version"] => string(3) "3.7" ["period3"] => string(3) "1 M" ["mc_amount3"] => string(5) "10.00" ["ipn_track_id"] => string(13) "575a4d04b9f5c" } } This only happens when users pay for upgrades via PayPal. It locks the user out of the forum for a period of time. Can you please look in to this as users are getting angry. Thanks.
Hello, The internal_data folder has a chmod of 777. It is writable. Like I said, it does not happen to all users, only a few. It does eventually upgrade them but not immediately.
That line of code only runs when PayPal sends a specific notification which doesn't mean much by itself (it's a notification about people started a subscription). PayPal will later send the payment complete notification later (and it will be processed just fine, that explains why your users still get upgraded). In short: this causes no harm to your site/business. Anyway, the root cause here is the add-on cannot write to the file internal_data/bdpaygate.txt (this is for debugging only, later version has stopped doing this). Because you confirmed that the directory is 0777, can you please check the permission of the file itself?
Hi there, I have added the permissions to that file. All is well now (so far). Thanks I do have another problem though, I think it from the Gold addon you wrote for me. Since I installed it every 50 minutes it throws a server error. Code: Server Error Log Error Info Zend_Db_Statement_Mysqli_Exception: Mysqli statement execute error : Duplicate entry '1' for key 'transaction_id' - library/Zend/Db/Statement/Mysqli.php:214 Generated By: Unknown Account, 41 minutes ago Stack Trace #0 /home/thereefu/public_html/library/Zend/Db/Statement.php(297): Zend_Db_Statement_Mysqli->_execute(Array) #1 /home/thereefu/public_html/library/Zend/Db/Adapter/Abstract.php(479): Zend_Db_Statement->execute(Array) #2 /home/thereefu/public_html/library/bdBank/Model/Bank.php(199): Zend_Db_Adapter_Abstract->query('????INSERT INTO...', 1380701203) #3 /home/thereefu/public_html/library/bdBank/CronEntry/Transaction.php(8): bdBank_Model_Bank->archiveTransactions() #4 [internal function]: bdBank_CronEntry_Transaction::archive(Array) #5 /home/thereefu/public_html/library/XenForo/Model/Cron.php(356): call_user_func(Array, Array) #6 /home/thereefu/public_html/library/XenForo/Deferred/Cron.php(24): XenForo_Model_Cron->runEntry(Array) #7 /home/thereefu/public_html/library/XenForo/Model/Deferred.php(208): XenForo_Deferred_Cron->execute(Array, Array, 9.99999809265, '') #8 /home/thereefu/public_html/library/XenForo/Model/Deferred.php(331): XenForo_Model_Deferred->runDeferred(Array, 9.99999809265, '', false) #9 /home/thereefu/public_html/library/XenForo/Model/Deferred.php(284): XenForo_Model_Deferred->_runInternal(Array, NULL, '', false) #10 /home/thereefu/public_html/deferred.php(18): XenForo_Model_Deferred->run(false) #11 {main} Request State array(3) { ["url"] => string(41) "http://www.xxxxxxcom.au/deferred.php" ["_GET"] => array(0) { } ["_POST"] => array(4) { ["_xfRequestUri"] => string(10) "/admin.php" ["_xfNoRedirect"] => string(1) "1" ["_xfToken"] => string(8) "********" ["_xfResponseType"] => string(4) "json" } } It is very annoying. Is there a way to fix this? Thanks.
Strange, please download the latest version here https://xfrocks.com/banking/threads/bd-banking-v1-0-dev-versions.81/ and upgrade it.