[TH] Donate [Deleted]

Sure thing - have just pushed a new build which you can download from your ThemeHouse account. It fixes the View class error and adds a ew option to only require a captcha for guests.
So... about my question, have a way to remove the permissions for that? I want only Admins (and the donor himself) to see the donations on profiles. :/
 
I am trying to create a new campaign and when I try to add icon or cover, it returns an error.

500 (Internal Server Error)

An exception occurred: [InvalidArgumentException] Class ThemeHouse\Donate\Campaign\EditIcon does not match formatter pattern %s\%s\View\%s in src/XF.php on line 1129
#0 src/XF/App.php(1667): XF::stringToClass('ThemeHouse\\Dona...', '%s\\%s\\View\\%s', 'Admin')
#1 src/XF/Container.php(234): XF\App->XF\{closure}('ThemeHouse\\Dona...', Array, Object(XF\Container))
#2 src/XF/Container.php(247): XF\Container->create('view', 'ThemeHouse\\Dona...', Array)
#3 src/XF/Mvc/Renderer/AbstractRenderer.php(79): XF\Container->XF\{closure}('ThemeHouse\\Dona...', Array)
#4 src/XF/Mvc/Renderer/AbstractRenderer.php(87): XF\Mvc\Renderer\AbstractRenderer->createViewObject('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#5 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#6 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#7 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#10 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#11 src/XF.php(524): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}


An exception occurred: [InvalidArgumentException] Class ThemeHouse\Donate\Campaign\EditCover does not match formatter pattern %s\%s\View\%s in src/XF.php on line 1129
#0 src/XF/App.php(1667): XF::stringToClass('ThemeHouse\\Dona...', '%s\\%s\\View\\%s', 'Admin')
#1 src/XF/Container.php(234): XF\App->XF\{closure}('ThemeHouse\\Dona...', Array, Object(XF\Container))
#2 src/XF/Container.php(247): XF\Container->create('view', 'ThemeHouse\\Dona...', Array)
#3 src/XF/Mvc/Renderer/AbstractRenderer.php(79): XF\Container->XF\{closure}('ThemeHouse\\Dona...', Array)
#4 src/XF/Mvc/Renderer/AbstractRenderer.php(87): XF\Mvc\Renderer\AbstractRenderer->createViewObject('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#5 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#6 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#7 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#10 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#11 src/XF.php(524): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}
 
I am trying to create a new campaign and when I try to add icon or cover, it returns an error.
You can download 1.1.8 Patch Level 3 from your ThemeHouse account which should fix this.
So... about my question, have a way to remove the permissions for that? I want only Admins (and the donor himself) to see the donations on profiles. :/
Haven’t forgotten about this by the way, is on my list to something here.
 
Thank you very much! I am very grateful. 😊
EDIT:
Well, I updated from Patch Level 2 to Patch Level 3 and still having problems to manage cover and icon.

GET /admin.php?donate/campaigns/julho-2024.7/icon&_xfRequestUri=%2Fforum%2Fadmin.php%3Fdonate%2Fcampaigns%2Fjulho-2024.7%2Fedit&_xfWithData=1&_xfToken=1719869954%2C228c2a68db6286e0604aa3dac7901cfb&_xfResponseType=json 500 (Internal Server Error)


An exception occurred: [InvalidArgumentException] Class ThemeHouse\Donate\Campaign\EditIcon does not match formatter pattern %s\%s\View\%s in src/XF.php on line 1129
#0 src/XF/App.php(1667): XF::stringToClass('ThemeHouse\\Dona...', '%s\\%s\\View\\%s', 'Admin')
#1 src/XF/Container.php(234): XF\App->XF\{closure}('ThemeHouse\\Dona...', Array, Object(XF\Container))
#2 src/XF/Container.php(247): XF\Container->create('view', 'ThemeHouse\\Dona...', Array)
#3 src/XF/Mvc/Renderer/AbstractRenderer.php(79): XF\Container->XF\{closure}('ThemeHouse\\Dona...', Array)
#4 src/XF/Mvc/Renderer/AbstractRenderer.php(87): XF\Mvc\Renderer\AbstractRenderer->createViewObject('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#5 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#6 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#7 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#10 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#11 src/XF.php(524): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}


An exception occurred: [InvalidArgumentException] Class ThemeHouse\Donate\Campaign\EditCover does not match formatter pattern %s\%s\View\%s in src/XF.php on line 1129
#0 src/XF/App.php(1667): XF::stringToClass('ThemeHouse\\Dona...', '%s\\%s\\View\\%s', 'Admin')
#1 src/XF/Container.php(234): XF\App->XF\{closure}('ThemeHouse\\Dona...', Array, Object(XF\Container))
#2 src/XF/Container.php(247): XF\Container->create('view', 'ThemeHouse\\Dona...', Array)
#3 src/XF/Mvc/Renderer/AbstractRenderer.php(79): XF\Container->XF\{closure}('ThemeHouse\\Dona...', Array)
#4 src/XF/Mvc/Renderer/AbstractRenderer.php(87): XF\Mvc\Renderer\AbstractRenderer->createViewObject('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#5 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\AbstractRenderer->renderViewObject('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#6 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Json->renderView('ThemeHouse\\Dona...', 'admin:thdonate_...', Array)
#7 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#10 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#11 src/XF.php(524): XF\App->run()
#12 admin.php(13): XF::runApp('XF\\Admin\\App')
#13 {main}
 
Last edited:
Hm, wonder how I didn't spot those before. Have just pushed release 1.1.9 which fixes that, and also adds a new permission "View other users' donation total" - this will be enabled on the Registered group by default, but you can disable it and enable it on the Admin group. Users will always be able to view their own stats.
 
Hm, wonder how I didn't spot those before. Have just pushed release 1.1.9 which fixes that, and also adds a new permission "View other users' donation total" - this will be enabled on the Registered group by default, but you can disable it and enable it on the Admin group. Users will always be able to view their own stats.
This new version gives error on install/update

Code:
Exception: [E_WARNING] opendir(X\wwwroot\src\addons\Audentio\Core\Setup\AbstractSetup): The system cannot find the file specifi (code: 2)
 
How did you upload the addon? It’s in the build but is in the Audentio namespace rather than ThemeHouse. If uploading the zip via the ACP it will upload it, if uploading manually make sure the addons/Audentio path is uploaded too.
 
Zip via ACP.

Just tried restarting the server in case it was a cache issue, but same problem.
 
Ok I think see it - the Audentio\Core\Setup\AbstractSetup folder (and items) are missing from the ZIP.

If I manually create that folder, then it says the $version.php file is missing.

Edit: I now copied over the 20210920001.php file from an old install into the AbstractSetup folder and it upgraded ok.
 
Which version did you download? I just freshly downloaded the 1.1.9 build from the site and Audentio\Core\Setup\AbstractSetup is definitely there.

Have fixed the issue with the version file being missing if you re-download, but the other file was in the zip. Tested uploading via ACP to a test board and seems to work fine.
 
Which version did you download? I just freshly downloaded the 1.1.9 build from the site and Audentio\Core\Setup\AbstractSetup is definitely there.

Have fixed the issue with the version file being missing if you re-download, but the other file was in the zip. Tested uploading via ACP to a test board and seems to work fine.
Maybe if the folder is empty it doesn't create?

I upgraded on my test server which already had that folder and it installed ok - but the live server (which didn't have that folder) wouldn't update until that file was added.
 
No idea to be honest, it shouldn't work any different to any other custom file being bundled with an addon. I uploaded it to a board that didn't have Donate or the Audentio/Core directory and it uploaded the files. Can only assume there was a permissions error when creating the directory. This process is handled by XF, the addon just defines the path, so isn't any additional involvement the addon can have there really.
 
I upgraded Donates by ACP upload method. All is right there. No problems on update process.
That bug on uploading Icon or banner is solved too. The menu is opening without erros.

And about the new permission. That is GREAT! The option "View other users' donation total" is working on Donations tab on profiles too.

I unchecked that option before because I really wanted only me and the user to be able to see it. I hadn't even remembered to ask for this in my suggestion, but you automatically resolved this problem with that troubleshooting.

Now the member will be able to see their own donation history without other people seeing this data in his profile.

This is perfect! Thanks for the effort! ❤️
 
Back
Top Bottom