[tl] Custom Node Icon

[tl] Custom Node Icon 1.0.0

Нет прав для скачивания

DEVIL

666
Модераторы
Сообщения
3,092
Решения
123
Реакции
13,458
Баллы
7,245
DEVIL, Вылезает ошибка при дабовление картинки
P.S на forum.site.com работает о
LogicException: Cannot call fastUpdate until the entity is saved in src/XF/Mvc/Entity/Entity.php at line 1323
  1. XF\Mvc\Entity\Entity->fastUpdate() in src/addons/Truonglv/NodeIcon/Service/Icon.php at line 118
  2. Truonglv\NodeIcon\Service\Icon->save() in src/addons/Truonglv/NodeIcon/XF/Admin/Controller/Forum.php at line 26
  3. Truonglv\NodeIcon\XF\Admin\Controller\Forum->saveTypeData() in src/XF/Admin/Controller/AbstractNode.php at line 88
  4. XF\Admin\Controller\AbstractNode->nodeSaveProcess() in src/addons/XenSoluce/SEOOptimization/XF/Admin/Controller/Forum.php at line 16
  5. XenSoluce\SEOOptimization\XF\Admin\Controller\Forum->nodeSaveProcess() in src/XF/Admin/Controller/AbstractNode.php at line 110
  6. XF\Admin\Controller\AbstractNode->actionSave() in src/XF/Mvc/Dispatcher.php at line 352
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2352
  11. XF\App->run() in src/XF.php at line 524
  12. XF::runApp() in admin.php at line 13

Трассировка стека​

#0 src/addons/Truonglv/NodeIcon/Service/Icon.php(118): XF\Mvc\Entity\Entity->fastUpdate('tni_icon_date', 1653807518)
#1 src/addons/Truonglv/NodeIcon/XF/Admin/Controller/Forum.php(26): Truonglv\NodeIcon\Service\Icon->save()
#2 src/XF/Admin/Controller/AbstractNode.php(88): Truonglv\NodeIcon\XF\Admin\Controller\Forum->saveTypeData(Object(XF\Mvc\FormAction), Object(Truonglv\NodeIcon\XF\Entity\Node), Object(XF\Entity\Forum))
#3 src/addons/XenSoluce/SEOOptimization/XF/Admin/Controller/Forum.php(16): XF\Admin\Controller\AbstractNode->nodeSaveProcess(Object(Truonglv\NodeIcon\XF\Entity\Node))
#4 src/XF/Admin/Controller/AbstractNode.php(110): XenSoluce\SEOOptimization\XF\Admin\Controller\Forum->nodeSaveProcess(Object(Truonglv\NodeIcon\XF\Entity\Node))
#5 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\AbstractNode->actionSave(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'Save', Object(XF\Mvc\RouteMatch), Object(XenSoluce\SEOOptimization\XF\Admin\Controller\Forum), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\SEOOptimization\XF\Admin\Controller\Forum), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2352): XF\Mvc\Dispatcher->run()
#10 src/XF.php(524): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}

Содержимое запроса​


array(4) {
["url"] => string(24) "/admin.php?forums/0/save"
["referrer"] => string(85) " "
["_GET"] => array(1) {
["forums/0/save"] => string(0) ""
}
["_POST"] => array(18) {
["_xfToken"] => string(8) "********"
["node"] => array(7) {
["title"] => string(29) "Новости сервера"
["description"] => string(0) ""
["node_name"] => string(0) ""
["parent_node_id"] => string(1) "3"
["display_order"] => string(1) "1"
["display_in_list"] => string(1) "1"
["navigation_id"] => string(0) ""
}
["xs_seo"] => array(6) {
["meta_title"] => string(29) "Новости сервера"
["meta_description"] => string(29) "Новости сервера"
["meta_robots"] => string(12) "index,follow"
["open_graph"] => string(0) ""
["twitter_card"] => string(7) "summary"
["canonical_url"] => string(0) ""
}
["forum_type_id"] => string(10) "discussion"
["default_thread_prefix"] => string(1) "0"
["require_prefix"] => string(1) "0"
["allow_posting"] => string(1) "1"
["count_messages"] => string(1) "1"
["find_new"] => string(1) "1"
["allow_index"] => string(5) "allow"
["min_tags"] => string(1) "0"
["allowed_watch_notifications"] => string(3) "all"
["default_sort_order"] => string(14) "last_post_date"
["default_sort_direction"] => string(4) "desc"
["list_date_limit_days"] => string(1) "0"
["_xfRequestUri"] => string(63) "/admin.php?forums/add&parent_node_id=3&forum_type_id=discussion"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
 
DEVIL, Вылезает ошибка при дабовление картинки
P.S на forum.site.com работает о
LogicException: Cannot call fastUpdate until the entity is saved in src/XF/Mvc/Entity/Entity.php at line 1323
  1. XF\Mvc\Entity\Entity->fastUpdate() in src/addons/Truonglv/NodeIcon/Service/Icon.php at line 118
  2. Truonglv\NodeIcon\Service\Icon->save() in src/addons/Truonglv/NodeIcon/XF/Admin/Controller/Forum.php at line 26
  3. Truonglv\NodeIcon\XF\Admin\Controller\Forum->saveTypeData() in src/XF/Admin/Controller/AbstractNode.php at line 88
  4. XF\Admin\Controller\AbstractNode->nodeSaveProcess() in src/addons/XenSoluce/SEOOptimization/XF/Admin/Controller/Forum.php at line 16
  5. XenSoluce\SEOOptimization\XF\Admin\Controller\Forum->nodeSaveProcess() in src/XF/Admin/Controller/AbstractNode.php at line 110
  6. XF\Admin\Controller\AbstractNode->actionSave() in src/XF/Mvc/Dispatcher.php at line 352
  7. XF\Mvc\Dispatcher->dispatchClass() in src/XF/Mvc/Dispatcher.php at line 259
  8. XF\Mvc\Dispatcher->dispatchFromMatch() in src/XF/Mvc/Dispatcher.php at line 115
  9. XF\Mvc\Dispatcher->dispatchLoop() in src/XF/Mvc/Dispatcher.php at line 57
  10. XF\Mvc\Dispatcher->run() in src/XF/App.php at line 2352
  11. XF\App->run() in src/XF.php at line 524
  12. XF::runApp() in admin.php at line 13

Трассировка стека​

#0 src/addons/Truonglv/NodeIcon/Service/Icon.php(118): XF\Mvc\Entity\Entity->fastUpdate('tni_icon_date', 1653807518)
#1 src/addons/Truonglv/NodeIcon/XF/Admin/Controller/Forum.php(26): Truonglv\NodeIcon\Service\Icon->save()
#2 src/XF/Admin/Controller/AbstractNode.php(88): Truonglv\NodeIcon\XF\Admin\Controller\Forum->saveTypeData(Object(XF\Mvc\FormAction), Object(Truonglv\NodeIcon\XF\Entity\Node), Object(XF\Entity\Forum))
#3 src/addons/XenSoluce/SEOOptimization/XF/Admin/Controller/Forum.php(16): XF\Admin\Controller\AbstractNode->nodeSaveProcess(Object(Truonglv\NodeIcon\XF\Entity\Node))
#4 src/XF/Admin/Controller/AbstractNode.php(110): XenSoluce\SEOOptimization\XF\Admin\Controller\Forum->nodeSaveProcess(Object(Truonglv\NodeIcon\XF\Entity\Node))
#5 src/XF/Mvc/Dispatcher.php(352): XF\Admin\Controller\AbstractNode->actionSave(Object(XF\Mvc\ParameterBag))
#6 src/XF/Mvc/Dispatcher.php(259): XF\Mvc\Dispatcher->dispatchClass('XF:Forum', 'Save', Object(XF\Mvc\RouteMatch), Object(XenSoluce\SEOOptimization\XF\Admin\Controller\Forum), NULL)
#7 src/XF/Mvc/Dispatcher.php(115): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(XenSoluce\SEOOptimization\XF\Admin\Controller\Forum), NULL)
#8 src/XF/Mvc/Dispatcher.php(57): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#9 src/XF/App.php(2352): XF\Mvc\Dispatcher->run()
#10 src/XF.php(524): XF\App->run()
#11 admin.php(13): XF::runApp('XF\\Admin\\App')
#12 {main}

Содержимое запроса​


array(4) {
["url"] => string(24) "/admin.php?forums/0/save"
["referrer"] => string(85) " "
["_GET"] => array(1) {
["forums/0/save"] => string(0) ""
}
["_POST"] => array(18) {
["_xfToken"] => string(8) "********"
["node"] => array(7) {
["title"] => string(29) "Новости сервера"
["description"] => string(0) ""
["node_name"] => string(0) ""
["parent_node_id"] => string(1) "3"
["display_order"] => string(1) "1"
["display_in_list"] => string(1) "1"
["navigation_id"] => string(0) ""
}
["xs_seo"] => array(6) {
["meta_title"] => string(29) "Новости сервера"
["meta_description"] => string(29) "Новости сервера"
["meta_robots"] => string(12) "index,follow"
["open_graph"] => string(0) ""
["twitter_card"] => string(7) "summary"
["canonical_url"] => string(0) ""
}
["forum_type_id"] => string(10) "discussion"
["default_thread_prefix"] => string(1) "0"
["require_prefix"] => string(1) "0"
["allow_posting"] => string(1) "1"
["count_messages"] => string(1) "1"
["find_new"] => string(1) "1"
["allow_index"] => string(5) "allow"
["min_tags"] => string(1) "0"
["allowed_watch_notifications"] => string(3) "all"
["default_sort_order"] => string(14) "last_post_date"
["default_sort_direction"] => string(4) "desc"
["list_date_limit_days"] => string(1) "0"
["_xfRequestUri"] => string(63) "/admin.php?forums/add&parent_node_id=3&forum_type_id=discussion"
["_xfWithData"] => string(1) "1"
["_xfResponseType"] => string(4) "json"
}
}
Такая же ошибка
 
ecnelis, она исправляется путём, сначало создаем узел, потом уже добавляем иконку в созданный узел
 
Как добавить сюда свою картинку как в обычный раздел ? А то в настройках Форум-Ссылки нету этой функции
 

Вложения

  • Screenshot_41.png
    Screenshot_41.png
    24.2 KB · Просмотры: 32
  • Screenshot_42.png
    Screenshot_42.png
    4.9 KB · Просмотры: 33
Современный облачный хостинг провайдер | Aéza
Назад
Сверху Снизу