What's new
Xen Factory

Register today to become a member! Once signed in, you'll be able to start purchasing our products, ask questions, request support and suggest new ideas!

  • We are aware that a no permission error was shown when you tried to purchase in the last 2 days, this is now fixed.

Support Error with Payment Profiles

cloudpro

New Member
  • ErrorException: Template error: [E_USER_WARNING] Macro public:xfa_core_user_payment_profiles:btcPayServer is unknown
  • src/XF/Template/Templater.php:661

  • Generated by: gt2
  • Nov 7, 2024 at 8:49 PM


Stack trace​

/community/resources/market-place-dashboard/payment-data

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/var/www/html/t...', 661)
#1 src/XF/Template/Templater.php(661): trigger_error('Macro public:xf...', 512)
#2 src/XF/Template/Templater.php(774): XF\Template\Templater->getTemplateMacro('public', 'xfa_core_user_p...', 'btcPayServer')
#3 internal_data/code_cache/templates/l1/s1/public/xfa_rmmp_dashboard_payment_data.php(51): XF\Template\Templater->callMacro('xfa_core_user_p...', 'btcPayServer', Array, Array)
#4 src/XF/Template/Templater.php(1655): XF\Template\Templater->{closure}(Object(NF\Tickets\XF\Template\Templater), Array, NULL)
#5 src/addons/XFCoder/CustomAds/XF/Template/Templater.php(58): XF\Template\Templater->renderTemplate('xfa_rmmp_dashbo...', Array, true, NULL)
#6 src/XF/Template/Template.php(24): XFCoder\CustomAds\XF\Template\Templater->renderTemplate('public:xfa_rmmp...', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('', 'public:xfa_rmmp...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#13 src/XF.php(524): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
 

cloudpro

New Member
btcPayServer is not supported.

Can you link to that payment profile ?
Hello

I was under the impression that the addon can use any XF Payment Profile which is outlined in the docs.

I am unsure what you mean by "Can I link the payment profile ?"
 

cloudpro

New Member
From the details

"Based on either custom Paypal solution or XenForo payment profiles."

Our payment wallet which is "walletbucks" is simply a payment profile where members can pay for upgrades so your addon should be able to use this.

I have disabled BTCPayserver as we dont need to use this however we have a wallet function where members add funds and this works for payments in RM Marketplace as I have tested however many errors are produced in the error log.

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/var/www/html/t...', 661)
#1 src/XF/Template/Templater.php(661): trigger_error('Macro public:xf...', 512)
#2 src/XF/Template/Templater.php(774): XF\Template\Templater->getTemplateMacro('public', 'xfa_core_user_p...', 'walletbucks')
#3 internal_data/code_cache/templates/l1/s1/public/xfa_rmmp_dashboard_payment_data.php(51): XF\Template\Templater->callMacro('xfa_core_user_p...', 'walletbucks', Array, Array)
#4 src/XF/Template/Templater.php(1655): XF\Template\Templater->{closure}(Object(NF\Tickets\XF\Template\Templater), Array, NULL)
#5 src/addons/XFCoder/CustomAds/XF/Template/Templater.php(58): XF\Template\Templater->renderTemplate('xfa_rmmp_dashbo...', Array, true, NULL)
#6 src/XF/Template/Template.php(24): XFCoder\CustomAds\XF\Template\Templater->renderTemplate('public:xfa_rmmp...', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('', 'public:xfa_rmmp...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#13 src/XF.php(524): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
 

cloudpro

New Member
Hello

More errors



InvalidArgumentException: Attempted to convert NULL to string/binary [xfa_rmmp_user_cgv] src/XF/Mvc/Entity/Entity.php:775

Generated by: ohitssher_ Nov 13, 2024 at 5:55 PM

Stack trace
/community/tickets/

#0 src/XF/Mvc/Entity/Entity.php(697): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'xfa_rmmp_user_c...', 5, Array)
#1 src/addons/NF/Tickets/ControllerPlugin/Ticket.php(68): XF\Mvc\Entity\Entity->setTrusted('xfa_rmmp_user_c...', NULL)
#2 src/addons/NF/Tickets/Pub/Controller/AbstractTicketController.php(22): NF\Tickets\ControllerPlugin\Ticket->preDispatchForTicket(false, 'Index', Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Controller.php(126): NF\Tickets\Pub\Controller\AbstractTicketController->preDispatchType('Index', Object(XF\Mvc\ParameterBag))
#4 src/addons/SV/UserActivity/UserActivityInjector.php(54): XF\Mvc\Controller->preDispatch('Index', Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(351): SV\UserActivity\NF\Tickets\Pub\Controller\Ticket->preDispatch('Index', Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('NF\\Tickets:Tick...', 'Index', Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\NF\Tickets\Pub\Controller\Ticket), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\NF\Tickets\Pub\Controller\Ticket), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#10 src/XF.php(524): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}

-------------

Previous InvalidArgumentException: Attempted to convert NULL to string/binary - src/XF/Mvc/Entity/ValueFormatter.php:138
#0 src/XF/Mvc/Entity/Entity.php(771): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 5, Array)
#1 src/XF/Mvc/Entity/Entity.php(697): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'xfa_rmmp_user_c...', 5, Array)
#2 src/addons/NF/Tickets/ControllerPlugin/Ticket.php(68): XF\Mvc\Entity\Entity->setTrusted('xfa_rmmp_user_c...', NULL)
#3 src/addons/NF/Tickets/Pub/Controller/AbstractTicketController.php(22): NF\Tickets\ControllerPlugin\Ticket->preDispatchForTicket(false, 'Index', Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Controller.php(126): NF\Tickets\Pub\Controller\AbstractTicketController->preDispatchType('Index', Object(XF\Mvc\ParameterBag))
#5 src/addons/SV/UserActivity/UserActivityInjector.php(54): XF\Mvc\Controller->preDispatch('Index', Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(351): SV\UserActivity\NF\Tickets\Pub\Controller\Ticket->preDispatch('Index', Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('NF\\Tickets:Tick...', 'Index', Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\NF\Tickets\Pub\Controller\Ticket), NULL)
#8 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\NF\Tickets\Pub\Controller\Ticket), NULL)
#9 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#11 src/XF.php(524): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
 

cloudpro

New Member
If you could provide an answer that would assist.

You state that is compatible with Xenforo payment profiles.

In addition, when we enable the addon there are many errors related to your addon as stated above.



Thank you.
 

Clement

Freaky Coder
Staff member
From the details

"Based on either custom Paypal solution or XenForo payment profiles."

Our payment wallet which is "walletbucks" is simply a payment profile where members can pay for upgrades so your addon should be able to use this.

I have disabled BTCPayserver as we dont need to use this however we have a wallet function where members add funds and this works for payments in RM Marketplace as I have tested however many errors are produced in the error log.

#0 [internal function]: XF\Template\Templater->handleTemplateError(512, '[E_USER_WARNING...', '/var/www/html/t...', 661)
#1 src/XF/Template/Templater.php(661): trigger_error('Macro public:xf...', 512)
#2 src/XF/Template/Templater.php(774): XF\Template\Templater->getTemplateMacro('public', 'xfa_core_user_p...', 'walletbucks')
#3 internal_data/code_cache/templates/l1/s1/public/xfa_rmmp_dashboard_payment_data.php(51): XF\Template\Templater->callMacro('xfa_core_user_p...', 'walletbucks', Array, Array)
#4 src/XF/Template/Templater.php(1655): XF\Template\Templater->{closure}(Object(NF\Tickets\XF\Template\Templater), Array, NULL)
#5 src/addons/XFCoder/CustomAds/XF/Template/Templater.php(58): XF\Template\Templater->renderTemplate('xfa_rmmp_dashbo...', Array, true, NULL)
#6 src/XF/Template/Template.php(24): XFCoder\CustomAds\XF\Template\Templater->renderTemplate('public:xfa_rmmp...', Array)
#7 src/XF/Mvc/Renderer/Html.php(50): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(460): XF\Mvc\Renderer\Html->renderView('', 'public:xfa_rmmp...', Array)
#9 src/XF/Mvc/Dispatcher.php(442): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(402): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(60): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#13 src/XF.php(524): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
No, it is stated in the list which ones work on the front-end. To add others, we need the profile to update our Core add-on to support them.
If you are doing it as an admin for sure any works without anything done from our side.
 

Clement

Freaky Coder
Staff member
Hello

More errors



InvalidArgumentException: Attempted to convert NULL to string/binary [xfa_rmmp_user_cgv] src/XF/Mvc/Entity/Entity.php:775

Generated by: ohitssher_ Nov 13, 2024 at 5:55 PM

Stack trace
/community/tickets/

#0 src/XF/Mvc/Entity/Entity.php(697): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'xfa_rmmp_user_c...', 5, Array)
#1 src/addons/NF/Tickets/ControllerPlugin/Ticket.php(68): XF\Mvc\Entity\Entity->setTrusted('xfa_rmmp_user_c...', NULL)
#2 src/addons/NF/Tickets/Pub/Controller/AbstractTicketController.php(22): NF\Tickets\ControllerPlugin\Ticket->preDispatchForTicket(false, 'Index', Object(XF\Mvc\ParameterBag))
#3 src/XF/Mvc/Controller.php(126): NF\Tickets\Pub\Controller\AbstractTicketController->preDispatchType('Index', Object(XF\Mvc\ParameterBag))
#4 src/addons/SV/UserActivity/UserActivityInjector.php(54): XF\Mvc\Controller->preDispatch('Index', Object(XF\Mvc\ParameterBag))
#5 src/XF/Mvc/Dispatcher.php(351): SV\UserActivity\NF\Tickets\Pub\Controller\Ticket->preDispatch('Index', Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('NF\\Tickets:Tick...', 'Index', Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\NF\Tickets\Pub\Controller\Ticket), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\NF\Tickets\Pub\Controller\Ticket), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#10 src/XF.php(524): XF\App->run()
#11 index.php(20): XF::runApp('XF\\Pub\\App')
#12 {main}

-------------

Previous InvalidArgumentException: Attempted to convert NULL to string/binary - src/XF/Mvc/Entity/ValueFormatter.php:138
#0 src/XF/Mvc/Entity/Entity.php(771): XF\Mvc\Entity\ValueFormatter->castValueToType(NULL, 5, Array)
#1 src/XF/Mvc/Entity/Entity.php(697): XF\Mvc\Entity\Entity->_castValueToType(NULL, 'xfa_rmmp_user_c...', 5, Array)
#2 src/addons/NF/Tickets/ControllerPlugin/Ticket.php(68): XF\Mvc\Entity\Entity->setTrusted('xfa_rmmp_user_c...', NULL)
#3 src/addons/NF/Tickets/Pub/Controller/AbstractTicketController.php(22): NF\Tickets\ControllerPlugin\Ticket->preDispatchForTicket(false, 'Index', Object(XF\Mvc\ParameterBag))
#4 src/XF/Mvc/Controller.php(126): NF\Tickets\Pub\Controller\AbstractTicketController->preDispatchType('Index', Object(XF\Mvc\ParameterBag))
#5 src/addons/SV/UserActivity/UserActivityInjector.php(54): XF\Mvc\Controller->preDispatch('Index', Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(351): SV\UserActivity\NF\Tickets\Pub\Controller\Ticket->preDispatch('Index', Object(XF\Mvc\ParameterBag))
#7 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('NF\\Tickets:Tick...', 'Index', Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\NF\Tickets\Pub\Controller\Ticket), NULL)
#8 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(SV\UserActivity\NF\Tickets\Pub\Controller\Ticket), NULL)
#9 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#10 src/XF/App.php(2485): XF\Mvc\Dispatcher->run()
#11 src/XF.php(524): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}

It seems it's happening when someone creates a ticket, do you confirm ?
 
Top