php - Variable "id" does not exist in @WebProfiler/Collector/logger.html.twig at line 117 -
i working on symfony project faced problem
variable "id" not exist in @webprofiler/collector/logger.html.twig @ line 117 this line probleme :
{% if stack %} **<a href="#" onclick="sfjs.toggle('{{ id }}', document.getelementbyid('{{ id }}-on'), document.getelementbyid('{{ id }}-off')); return false;">** <img class="toggle" id="{{ id }}-off" alt="-" src="data:image/gif;base64,r0lgodlhegasamqsanft94tg57hb8gs44ez1+mc24ivk6epx+wa44dxs92+942e54o3l6w2844/m6dnu+p/+/l614p///waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaach5baeaabialaaaaaasabiaqavcocqbtbod6kk4gjhgbctpxysjb44k0qd/er/wlxjmiszkmqbebw5nhrmzmvkvv9hmvso+he0eonasteygxg9heihcads=" style="display:none"> <img class="toggle" id="{{ id }}-on" alt="+" src="data:image/gif;base64,r0lgodlhegasamqtanft99/v+ga44bhb8itg52s44dxs9+z1+upx+yvk6wc24g+944/m6w28443l6dnu+ge54v/+/l614p///waaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaach5baeaabmalaaaaaasabiaqavs4dqbtiod6lkwgjgeuszhsdonaz4pu6flgyba5/vfid/dbylrginizu74i0h1hnsvxbnuuv4d9sszm2ezwe1qthvzwwfoafcqfa1rqq6djb4iiqa7" style="display:inline"> </a> {% endif %} i have no idea why happening, have 2 questions:
1- how solve this?
2- how can know reasons of kind of problemes ( 500 internal server error ) because 1 of them .
thanks help.
ok resolve changing logger.html.twig
by replacing part
{% macro display_message(log_index, log, is_deprecation) %} {% if is_deprecation %} {% set stack = log.context.stack|default([]) %} {% if stack %} whith :
{% macro display_message(log_index, log, is_deprecation) %} {% if is_deprecation %} {% set stack = log.context.stack|default([]) %} {% set id = 'sf-call-stack-' ~ log_index %} deprecated - {{ log.message }} {% if stack %}
Comments
Post a Comment