Bug Error logged when trying to view Order detail

Liam W

Customer
When clicking an order in the order list to view more detail, no overlay is displayed and this error is logged:

Error: LogicException: Template admin:dbtech_ecommerce_log_order_view error: Entity is read only

File: src/XF/Mvc/Entity/Entity.php:560

Stack trace:
Code:
#0 src/XF/Mvc/Entity/Entity.php(553): XF\Mvc\Entity\Entity->set('display_style_g...', false)
#1 src/addons/LiamW/AllRichUsernames/XF/Template/Templater.php(31): XF\Mvc\Entity\Entity->offsetSet('display_style_g...', false)
#2 src/XF/Template/Templater.php(3890): LiamW\AllRichUsernames\XF\Template\Templater->fnUsernameClasses(Object(LiamW\ThreadSolutions\XF\Template\Templater), NULL, Object(LiamW\LocalTime\XF\Entity\User), true)
#3 [internal function]: XF\Template\Templater->fnUsernameLink(Object(LiamW\ThreadSolutions\XF\Template\Templater), false, Object(LiamW\LocalTime\XF\Entity\User), false, Array)
#4 src/XF/Template/Templater.php(936): call_user_func_array(Array, Array)
#5 internal_data/code_cache/templates/l2/s0/admin/dbtech_ecommerce_log_order_view.php(20): XF\Template\Templater->func('username_link', Array)
#6 src/XF/Template/Templater.php(1315): XF\Template\Templater->{closure}(Object(LiamW\ThreadSolutions\XF\Template\Templater), Array)
#7 src/XF/Template/Template.php(24): XF\Template\Templater->renderTemplate('dbtech_ecommerc...', Array)
#8 src/XF/Mvc/Renderer/Json.php(84): XF\Template\Template->render()
#9 src/XF/Mvc/Renderer/Json.php(68): XF\Mvc\Renderer\Json->renderHtmlFallback('DBTech\\eCommerc...', 'admin:dbtech_ec...', Array)
#10 src/XF/Mvc/Dispatcher.php(418): XF\Mvc\Renderer\Json->renderView('DBTech\\eCommerc...', 'admin:dbtech_ec...', Array)
#11 src/XF/Mvc/Dispatcher.php(400): XF\Mvc\Dispatcher->renderView(Object(DBTech\eCommerce\XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#12 src/XF/Mvc/Dispatcher.php(360): XF\Mvc\Dispatcher->renderReply(Object(DBTech\eCommerce\XF\Mvc\Renderer\Json), Object(XF\Mvc\Reply\View))
#13 src/XF/Mvc/Dispatcher.php(53): XF\Mvc\Dispatcher->render(Object(XF\Mvc\Reply\View), 'json')
#14 src/XF/App.php(2178): XF\Mvc\Dispatcher->run()
#15 src/XF.php(390): XF\App->run()
#16 admin.php(13): XF::runApp('XF\\Admin\\App')
#17 {main}
It should be noted that I only used to get this error when viewing guest orders (which has been broken for a while now), but this now happens on all orders.
 

Fillip H.

Staff member
Owner
Developer
Let me know if you need me to make any changes to that template to support your add-on :)
 

DragonByte eCommerce

XenForo 2.0.6+ XenForo 2.1.x
Seller
DragonByte Technologies
Release date
Last update
Total downloads
697
Customer rating
4.80 star(s) 5 ratings
Top