[TH] Donate

[TH] Donate 1.1.8 Patch Level 1

No permission to download
  • Ability to move users to a specific user group once they match requirements set by user promotions.

I do have user group promotions set up. My question is can this addon be set up with a usergroup promotion to automatically move a user to a new usergroup once they've made a donation?
 
I do have user group promotions set up. My question is can this addon be set up with a usergroup promotion to automatically move a user to a new usergroup once they've made a donation?
That is correct as you are able to read more about user group promotions support here.
 
I just got this server error.

XF\Db\Exception: Template public:forum_list error: MySQL statement prepare error [1146]: Table 'admin_dbxcom.xf_th_donate_campaign' doesn't exist src/XF/Db/AbstractStatement.php:212
Generated by: Unknown account Nov 2, 2018 at 5:22 AM

Code:
Stack trace
            SELECT `xf_th_donate_campaign`.*
            FROM `xf_th_donate_campaign`
            
            WHERE (`xf_th_donate_campaign`.`campaign_id` = '1')
            
        
LIMIT 1
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1146, '42S02')
#1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1146, '42S02')
#2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Mvc/Entity/Finder.php(1130): XF\Db\AbstractAdapter->query('\r\n\t\t\tSELECT `xf...')
#5 src/XF/Mvc/Entity/Manager.php(149): XF\Mvc\Entity\Finder->fetchOne()
#6 src/addons/ThemeHouse/Donate/Widget/Campaign.php(32): XF\Mvc\Entity\Manager->find('ThemeHouse\\Dona...', '1')
#7 src/XF/Template/Templater.php(1526): ThemeHouse\Donate\Widget\Campaign->render()
#8 internal_data/code_cache/templates/l1/s11/public/forum_list.php(206): XF\Template\Templater->widgetPosition('forum_list_side...', Array)
#9 src/XF/Template/Templater.php(1250): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('forum_list', Array)
#11 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Forum\\Listin...', 'public:forum_li...', Array)
#13 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#16 src/XF.php(329): XF\App->run()
#17 index.php(13): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
  ["url"] => string(11) "/community/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}
 
After last update, new error:
Code:
ErrorException: Template error: Template public:news_feed_item_thdonate_donation_react is unknown src/XF/Template/Templater.php:584
Generated by: Unknown account 6 November 2018 at 08:37

Code:
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Template public...', '/home/theaocdu/...', 584, Array)
#1 src/XF/Template/Templater.php(584): trigger_error('Template public...', 512)
#2 src/XF/Template/Templater.php(539): XF\Template\Templater->getTemplateData('public', 'news_feed_item_...')
#3 src/XF/Template/Templater.php(1249): XF\Template\Templater->getTemplateCode('public', 'news_feed_item_...')
#4 src/addons/ThemeHouse/Reactions/React/AbstractHandler.php(384): XF\Template\Templater->renderTemplate('news_feed_item_...', Array)
#5 src/addons/ThemeHouse/Reactions/Entity/ReactedContent.php(140): ThemeHouse\Reactions\React\AbstractHandler->render(Object(ThemeHouse\Reactions\Entity\ReactedContent))
#6 [internal function]: ThemeHouse\Reactions\Entity\ReactedContent->render()
#7 src/XF/Template/Templater.php(940): call_user_func_array(Array, Array)
#8 internal_data/code_cache/templates/l1/s3/public/threact_member_reactions.php(59): XF\Template\Templater->method(Object(ThemeHouse\Reactions\Entity\ReactedContent), 'render', Array)
#9 src/XF/Template/Templater.php(1250): XF\Template\Templater->{closure}(Object(ThemeHouse\Reactions\XF\Template\Templater), Array)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('threact_member_...', Array)
#11 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('ThemeHouse\\Reac...', 'public:threact_...', Array)
#13 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#16 src/XF.php(329): XF\App->run()
#17 index.php(13): XF::runApp('XF\\Pub\\App')
#18 {main}

Code:
Request state
array(4) {
  ["url"] => string(59) "/members/blackace.123/reactions?type=received&reaction_id=2"
  ["referrer"] => bool(false)
  ["_GET"] => array(2) {
    ["type"] => string(8) "received"
    ["reaction_id"] => string(1) "2"
  }
  ["_POST"] => array(0) {
  }
}
 
I just got this server error.

XF\Db\Exception: Template public:forum_list error: MySQL statement prepare error [1146]: Table 'admin_dbxcom.xf_th_donate_campaign' doesn't exist src/XF/Db/AbstractStatement.php:212
Generated by: Unknown account Nov 2, 2018 at 5:22 AM

Code:
Stack trace
            SELECT `xf_th_donate_campaign`.*
            FROM `xf_th_donate_campaign`
           
            WHERE (`xf_th_donate_campaign`.`campaign_id` = '1')
           
       
LIMIT 1
------------

#0 src/XF/Db/Mysqli/Statement.php(196): XF\Db\AbstractStatement->getException('MySQL statement...', 1146, '42S02')
#1 src/XF/Db/Mysqli/Statement.php(39): XF\Db\Mysqli\Statement->getException('MySQL statement...', 1146, '42S02')
#2 src/XF/Db/Mysqli/Statement.php(54): XF\Db\Mysqli\Statement->prepare()
#3 src/XF/Db/AbstractAdapter.php(79): XF\Db\Mysqli\Statement->execute()
#4 src/XF/Mvc/Entity/Finder.php(1130): XF\Db\AbstractAdapter->query('\r\n\t\t\tSELECT `xf...')
#5 src/XF/Mvc/Entity/Manager.php(149): XF\Mvc\Entity\Finder->fetchOne()
#6 src/addons/ThemeHouse/Donate/Widget/Campaign.php(32): XF\Mvc\Entity\Manager->find('ThemeHouse\\Dona...', '1')
#7 src/XF/Template/Templater.php(1526): ThemeHouse\Donate\Widget\Campaign->render()
#8 internal_data/code_cache/templates/l1/s11/public/forum_list.php(206): XF\Template\Templater->widgetPosition('forum_list_side...', Array)
#9 src/XF/Template/Templater.php(1250): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#10 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('forum_list', Array)
#11 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#12 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Html->renderView('XF:Forum\\Listin...', 'public:forum_li...', Array)
#13 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#14 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#15 src/XF/App.php(1931): XF\Mvc\Dispatcher->run()
#16 src/XF.php(329): XF\App->run()
#17 index.php(13): XF::runApp('XF\\Pub\\App')
#18 {main}
Request state
array(4) {
  ["url"] => string(11) "/community/"
  ["referrer"] => bool(false)
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

Have you gotten this error again? It could be from someone accessing the page between uploading the files and actually running the upgrade script? If they only happened around the time you did the upgrade and haven't come back since it's safe to ignore, as this is the main table used for the add-on so you'd be seeing it every time anyone access your forum index page due to the widget being displayed there.

Is there a way to specify a return page after the user completes a donation via paypal?

I don't believe this is currently possible

After last update, new error:
Code:
ErrorException: Template error: Template public:news_feed_item_thdonate_donation_react is unknown src/XF/Template/Templater.php:584
Generated by: Unknown account 6 November 2018 at 08:37

Code:

Code:
Request state
array(4) {
  ["url"] => string(59) "/members/blackace.123/reactions?type=received&reaction_id=2"
  ["referrer"] => bool(false)
  ["_GET"] => array(2) {
    ["type"] => string(8) "received"
    ["reaction_id"] => string(1) "2"
  }
  ["_POST"] => array(0) {
  }
}

Created an issue for this here: https://github.com/Audentio/xf2addon-issues/issues/1127
 
Auto add to Usergroup Question:

On my site we like to allow the option of "gifting" premium memberships. Where a user may donate to the premium membership campaign but the privileges and usergroup promotion is given to whichever user they choose.
I have auto-add to premium usergroup enabled already when someone donates x amount- so if the user making the donation is ALREADY a premium member nothing will happen because it's already done, then I can manually add the user that the donation was made for.
However, if the donating member is NOT premium, they will automatically be added to premium and I'll have to manually remove them, then add the party they are gifting the donation to...

I'm trying to rack my brain to see if there's an easier way I can manipulate this in the settings?
Any help?

Also: If someone makes an anonymous donation, and auto add to usergroup is on, will they still be added? Because that wouldn't really be anonymous- just curious about that one.
 
Auto add to Usergroup Question:

On my site we like to allow the option of "gifting" premium memberships. Where a user may donate to the premium membership campaign but the privileges and usergroup promotion is given to whichever user they choose.
I have auto-add to premium usergroup enabled already when someone donates x amount- so if the user making the donation is ALREADY a premium member nothing will happen because it's already done, then I can manually add the user that the donation was made for.
However, if the donating member is NOT premium, they will automatically be added to premium and I'll have to manually remove them, then add the party they are gifting the donation to...

I'm trying to rack my brain to see if there's an easier way I can manipulate this in the settings?
Any help?

Also: If someone makes an anonymous donation, and auto add to usergroup is on, will they still be added? Because that wouldn't really be anonymous- just curious about that one.
I've started a private conversation with you too discuss this further, hope to hear from you soon! :)
 
Hello so I am facing 2 errors with this addon, the first one is a server error that happens if a user puts an high number as the donation amount:
Code:
XF\Db\Exception: MySQL query error [1264]: Out of range value for column 'cost_amount' at row 1 in src/XF/Db/AbstractStatement.php at line 212
XF\Db\AbstractStatement->getException() in src/XF/Db/Mysqli/Statement.php at line 196
XF\Db\Mysqli\Statement->getException() in src/XF/Db/Mysqli/Statement.php at line 77
XF\Db\Mysqli\Statement->execute() in src/XF/Db/AbstractAdapter.php at line 79
XF\Db\AbstractAdapter->query() in src/XF/Db/AbstractAdapter.php at line 160
XF\Db\AbstractAdapter->insert() in src/XF/Mvc/Entity/Entity.php at line 1403
XF\Mvc\Entity\Entity->_saveToSource() in src/XF/Mvc/Entity/Entity.php at line 1135
XF\Mvc\Entity\Entity->save() in src/XF/Repository/Purchase.php at line 22
XF\Repository\Purchase->insertPurchaseRequest() in src/XF/Pub/Controller/Purchase.php at line 27
XF\Pub\Controller\Purchase->actionIndex() in src/XF/Mvc/Dispatcher.php at line 249
XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 88
XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 41
XF\Mvc\Dispatcher->run() in src/XF/App.php at line 1931
XF\App->run() in src/XF.php at line 329
XF::runApp() in index.php at line 13

The second is that when I did a donation goal with recurring donations, without the recurring option selected it is always taking me to a paypal page to subscribe for the amount put, not as a normal donation.
 
Top Bottom