Fixed Template error when reverting a phrase

Affected version
2.0.2

DL6

Well-known member
#1
Code:
ErrorException: Template error: Cannot call method isUpdate on a non-object (NULL) src/XF/Template/Templater.php:923
Generated by: DL6 Feb 10, 2018 at 10:49 AM
Stack trace
#0 [internal function]: XF\Template\Templater->handleTemplateError(512, 'Cannot call met...', '/home/webs/emud...', 923, Array)
#1 src/XF/Template/Templater.php(923): trigger_error('Cannot call met...', 512)
#2 internal_data/code_cache/templates/l3/s0/admin/phrase_translate_macros.php(118): XF\Template\Templater->method(NULL, 'isUpdate', Array)
#3 src/XF/Template/Templater.php(659): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array, Array)
#4 internal_data/code_cache/templates/l3/s0/admin/phrase_translated.php(9): XF\Template\Templater->callMacro('phrase_translat...', 'collapsed', Array, Array)
#5 src/XF/Template/Templater.php(1246): XF\Template\Templater->{closure}(Object(XF\Template\Templater), Array)
#6 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('admin:phrase_tr...', Array)
#7 src/XF/Mvc/Renderer/Json.php(81): XF\Template\Template->render()
#8 src/XF/Mvc/Renderer/Json.php(65): XF\Mvc\Renderer\Json->renderHtmlFallback('XF:Phrase\\Trans...', 'admin:phrase_tr...', Array)
#9 src/XF/Mvc/Dispatcher.php(332): XF\Mvc\Renderer\Json->renderView('XF:Phrase\\Trans...', 'admin:phrase_tr...', Array)
#10 src/XF/Mvc/Dispatcher.php(303): XF\Mvc\Dispatcher->renderView(Object(XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#11 src/XF/Mvc/Dispatcher.php(44): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#12 src/XF/App.php(1889): XF\Mvc\Dispatcher->run()
#13 src/XF.php(328): XF\App->run()
#14 admin.php(13): XF::runApp('XF\\Admin\\App')
#15 {main}
Steps to reproduce
1. Create a new phrase in some language
2. Search the phrase using the translate function.
3. Revert the phrase
 
Last edited:
Top