Solved Resources are duplicated when added (1 Viewer)

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

clanzone

Licensed
Licensed
Like or Reply to Download RM
Change Type Resource
Joined
Aug 21, 2019
Messages
13
Reaction score
0
ErrorException: Template error: React content must be using the XF\Entity\ReactionTrait trait. src/XF/Template/Templater.php:3085
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'React content m...', '/var/www/www-ro...', 3085, Array)
#1 src/XF/Template/Templater.php(3085): trigger_error('React content m...', 512)
#2 [internal function]: XF\Template\Templater->fnReact(Object(SV\ConversationEssentials\XF\Template\Templater), false, Array)
#3 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#4 internal_data/code_cache/templates/l2/s10/public/xfrm_resource_view.php(199): XF\Template\Templater->func('react', Array)
#5 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfrm_resource_v...', Array)
#7 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#8 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFRM:ResourceIt...', 'public:xfrm_res...', Array)
#9 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#10 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#12 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#13 src/XF.php(390): XF\App->run()
#14 index.php(20): XF::runApp('XF\\Pub\\App')
#15 {main}
ErrorException: Template error: Cannot call method canReport on a non-object (NULL) src/XF/Template/Templater.php:984
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/var/www/www-ro...', 984, Array)
#1 src/XF/Template/Templater.php(984): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l2/s10/public/xfrm_resource_view.php(215): XF\Template\Templater->method(NULL, 'canReport', Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfrm_resource_v...', Array)
#5 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#6 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFRM:ResourceIt...', 'public:xfrm_res...', Array)
#7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#11 src/XF.php(390): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
ErrorException: Template error: Cannot call method canDelete on a non-object (NULL) src/XF/Template/Templater.php:984
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/var/www/www-ro...', 984, Array)
#1 src/XF/Template/Templater.php(984): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l2/s10/public/xfrm_resource_view.php(238): XF\Template\Templater->method(NULL, 'canDelete', Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfrm_resource_v...', Array)
#5 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#6 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFRM:ResourceIt...', 'public:xfrm_res...', Array)
#7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#11 src/XF.php(390): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
ErrorException: Template error: Cannot call method canWarn on a non-object (NULL) src/XF/Template/Templater.php:984
Code:
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/var/www/www-ro...', 984, Array)
#1 src/XF/Template/Templater.php(984): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l2/s10/public/xfrm_resource_view.php(262): XF\Template\Templater->method(NULL, 'canWarn', Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfrm_resource_v...', Array)
#5 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#6 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFRM:ResourceIt...', 'public:xfrm_res...', Array)
#7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#11 src/XF.php(390): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
TypeError: Argument 3 passed to XF\Template\Templater::fnReactions() must be an instance of XF\Mvc\Entity\Entity, null given src/XF/Template/Templater.php:3280
Code:
#0 [internal function]: XF\Template\Templater->fnReactions(Object(SV\ConversationEssentials\XF\Template\Templater), true, NULL, 'resources/updat...', Array)
#1 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#2 internal_data/code_cache/templates/l2/s10/public/xfrm_resource_view.php(322): XF\Template\Templater->func('reactions', Array)
#3 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(SV\ConversationEssentials\XF\Template\Templater), Array)
#4 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('xfrm_resource_v...', Array)
#5 src/XF/Mvc/Renderer/Html.php(48): XF\Template\Template->render()
#6 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Html->renderView('XFRM:ResourceIt...', 'public:xfrm_res...', Array)
#7 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#8 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(XF\Mvc\Renderer\Html), Object(XF\Mvc\Reply\View))
#9 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'html')
#10 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#11 src/XF.php(390): XF\App->run()
#12 index.php(20): XF::runApp('XF\\Pub\\App')
#13 {main}
Resources are duplicated when added.
 
Last edited by a moderator:

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
161
Reaction score
104
Resources are duplicated when added.
Please give me the site where you test this addon with an access and an account that I can post
 

clanzone

Licensed
Licensed
Like or Reply to Download RM
Change Type Resource
Joined
Aug 21, 2019
Messages
13
Reaction score
0
6516.jpg

I create with the version and the lower one is duplicated without the version, when I click on the lower, I get the error that I showed above.

There is no error until you click on the duplicate which is highlighted by the arrow below.

if you disable this addon, duplicates do not appear, everything works as it should, a duplicate appears only when I turn on this addon.

I turned off this setting which is in the screenshot and the error has disappeared.

45.jpg



Now I turned it on like this, while there are no errors and duplicates.

45747.jpg


You need to fix it, thanks.

Started duplicated :cry::cry::cry:
 
Last edited by a moderator:

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
161
Reaction score
104
I only get this mistake once, not all the time.
 

clanzone

Licensed
Licensed
Like or Reply to Download RM
Change Type Resource
Joined
Aug 21, 2019
Messages
13
Reaction score
0
No, she appears, then disappears, then appears again. =)
It should not be at all, you found out what the problem is if I understood you correctly?

A duplicate may appear once, and may also appear several times in a row.
 
Last edited by a moderator:

CRUEL-MODZ

Administrator
Staff member
Administrator
Moderator
Licensed
Joined
Jul 8, 2019
Messages
161
Reaction score
104
Hello,

This is now fixed in the 2.1.0 Fix 2 version, thank you ! (y)

Regards, CRUEL-MODZ
 
Top Bottom