Solved I don’t know why I am receiving this error

GameNet

Licensed
Licensed
Change Type Resource
Profile Customization
Joined
Jul 21, 2019
Messages
73
Reaction score
4
I don’t know why I am receiving this error
Code:
ErrorException: Template error: Invalid argument supplied for foreach() src/addons/XenSoluce/ProfileCustomization/Listener.php:35
Generated by: NICK97 Aug 2, 2020 at 4:33 PM
Stack trace
#0 src/addons/XenSoluce/ProfileCustomization/Listener.php(35): XF\Template\Templater->handleTemplateError(2, 'Invalid argumen...', '/home/citie581/...', 35, Array)
#1 [internal function]: XenSoluce\ProfileCustomization\Listener::templaterFnProfileBanner(Object(XFA\RMMarketplace\XF\Template\Templater), false, Object(Datio\AllowedEmails\XF\Entity\User), '1', false, Array, '')
#2 src/XF/Template/Templater.php(1102): call_user_func_array(Array, Array)
#3 internal_data/code_cache/templates/l1/s75/public/account_details.php(142): XF\Template\Templater->func('profile_banner', Array)
#4 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, NULL)
#5 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_details', Array)
#6 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#7 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Account\\Acco...', 'public:account_...', Array)
#8 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(2270): XF\Mvc\Dispatcher->run()
#12 src/XF.php(417): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(24) "/account/account-details"
  ["referrer"] => string(60) "https://cities-mods.com/xlex/cities-xxl-community-patch.161/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

and

Code:
ErrorException: Template error: array_filter() expects parameter 1 to be array, string given src/addons/XenSoluce/ProfileCustomization/Listener.php:26
Generated by: NICK97 Aug 2, 2020 at 4:33 PM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(2, 'array_filter() ...', '/home/citie581/...', 26, Array)
#1 src/addons/XenSoluce/ProfileCustomization/Listener.php(26): array_filter('1', Object(Closure), 2)
#2 [internal function]: XenSoluce\ProfileCustomization\Listener::templaterFnProfileBanner(Object(XFA\RMMarketplace\XF\Template\Templater), false, Object(Datio\AllowedEmails\XF\Entity\User), '1', false, Array, '')
#3 src/XF/Template/Templater.php(1102): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l1/s75/public/account_details.php(142): XF\Template\Templater->func('profile_banner', Array)
#5 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, NULL)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_details', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Account\\Acco...', 'public:account_...', Array)
#9 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2270): XF\Mvc\Dispatcher->run()
#13 src/XF.php(417): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
Request state
array(4) {
  ["url"] => string(24) "/account/account-details"
  ["referrer"] => string(60) "https://cities-mods.com/xlex/cities-xxl-community-patch.161/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

482E347F-585D-4E9E-9046-F332B5188109.jpeg4AD601AE-9D70-4230-8557-06BF84E6B3CA.jpeg
 

GameNet

Licensed
Licensed
Change Type Resource
Profile Customization
Joined
Jul 21, 2019
Messages
73
Reaction score
4
And this as well
Code:
ErrorException: Template error: Illegal string offset 'data-user-id' src/addons/XenSoluce/ProfileCustomization/Listener.php:19
Generated by: NICK97 Aug 2, 2020 at 4:33 PM
Stack trace
#0 src/addons/XenSoluce/ProfileCustomization/Listener.php(19): XF\Template\Templater->handleTemplateError(2, 'Illegal string ...', '/home/citie581/...', 19, Array)
#1 [internal function]: XenSoluce\ProfileCustomization\Listener::templaterFnProfileBanner(Object(XFA\RMMarketplace\XF\Template\Templater), false, Object(Datio\AllowedEmails\XF\Entity\User), 'l', false, Array, '')
#2 src/XF/Template/Templater.php(1102): call_user_func_array(Array, Array)
#3 internal_data/code_cache/templates/l1/s75/public/account_details.php(142): XF\Template\Templater->func('profile_banner', Array)
#4 src/XF/Template/Templater.php(1598): XF\Template\Templater->{closure}(Object(XFA\RMMarketplace\XF\Template\Templater), Array, NULL)
#5 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('account_details', Array)
#6 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#7 src/XF/Mvc/Dispatcher.php(458): XF\Mvc\Renderer\Html->renderView('XF:Account\\Acco...', 'public:account_...', Array)
#8 src/XF/Mvc/Dispatcher.php(440): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(58): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#11 src/XF/App.php(2270): XF\Mvc\Dispatcher->run()
#12 src/XF.php(417): XF\App->run()
#13 index.php(20): XF::runApp('XF\\Pub\\App')
#14 {main}
Request state
array(4) {
  ["url"] => string(24) "/account/account-details"
  ["referrer"] => string(60) "https://cities-mods.com/xlex/cities-xxl-community-patch.161/"
  ["_GET"] => array(0) {
  }
  ["_POST"] => array(0) {
  }
}

459A2321-CFF7-41F9-ADEA-ECB7183C3D1F.jpeg
 

GameNet

Licensed
Licensed
Change Type Resource
Profile Customization
Joined
Jul 21, 2019
Messages
73
Reaction score
4
Yes but it‘s also happen with xenforo 2.1 as well
 

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
884
Reaction score
356
Now I'm not solving anything by telling you this. I'm just trying to figure out why you made the mistake, you must have had an addon that's conflicted with mine.
 

GameNet

Licensed
Licensed
Change Type Resource
Profile Customization
Joined
Jul 21, 2019
Messages
73
Reaction score
4
I have RM Marketplace addon that’s might be having conflicted for one of the issues
 

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
884
Reaction score
356
Obviously the problem is due to the banner system, since in XF2.2 there is already a banner system, it will not be necessary to have such a system for XF version 2.2.
 

GameNet

Licensed
Licensed
Change Type Resource
Profile Customization
Joined
Jul 21, 2019
Messages
73
Reaction score
4
I was using [th] cover addon for allowed resources and threads
 

GameNet

Licensed
Licensed
Change Type Resource
Profile Customization
Joined
Jul 21, 2019
Messages
73
Reaction score
4
Obviously the problem is due to the banner system, since in XF2.2 there is already a banner system, it will not be necessary to have such a system for XF version 2.2.
Is any possible you can removed this banner feature for xenforo 2.2
 

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
884
Reaction score
356
Hello,

With the 2.1.0 it should be fixed, let us know about this ! ;)

Regards, CRUEL-MODZ
 
Solution
Top Bottom