The first line seems sufficient for diagnosing the error.
Nov 29, 2021
11
Level 4
Laravel dumping HTML into error log
Instead of logging simple error, Laravel is dumping huge HTML codes into log file (assuming its a HTML code of Exception View?).
This is single error, has 33 000+ lines.
[2021-11-29 16:45:32] production.ERROR: syntax error, unexpected 'version' (T_STRING) (View: /home/www/resources/views/svg/move.blade.php) {"view":"data":{"system_version":"<pre class=sf-dump id=sf-dump-167097926 data-indent-pad=\" \"><span class=sf-dump-num>30</span>
</pre><script>Sfdump(\"sf-dump-167097926\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","hasHeaderAlert":"<pre class=sf-dump id=sf-dump-827947783 data-indent-pad=\" \"><span class=sf-dump-const>true</span>
</pre><script>Sfdump(\"sf-dump-827947783\", {\"maxDepth\":3,\"maxStringLength\":160})</script>
","popup":"<pre class=sf-dump id=sf-dump-1604149286 data-indent-pad=\" \"><span class=sf-dump-note>App\Models\Popup</span> {<a class=sf-dump-ref>#1563</a><samp data-depth=1 class=sf-dump-expanded>
+<span class=sf-dump-public title=\"Public property\">table</span>: \"<span class=sf-dump-str title=\"6 characters\">popups</span>\"
+<span class=sf-dump-public title=\"Public property\">timestamps</span>: <span class=sf-dump-const>false</span>
#<span class=sf-dump-protected title=\"Protected property\">connection</span>: \"<span class=sf-dump-str title=\"5 characters\">mysql</span>\"
#<span class=sf-dump-protected title=\"Protected property\">primaryKey</span>: \"<span class=sf-dump-str title=\"2 characters\">id</span>\"
#<span class=sf-dump-protected title=\"Protected property\">keyType</span>: \"<span class=sf-dump-str title=\"3 characters\">int</span>\"
+<span class=sf-dump-public title=\"Public property\">incrementing</span>: <span class=sf-dump-const>true</span>
#<span class=sf-dump-protected title=\"Protected property\">with</span>: []
#<span class=sf-dump-protected title=\"Protected property\">withCount</span>: []
#<span class=sf-dump-protected title=\"Protected property\">perPage</span>: <span class=sf-dump-num>15</span>
+<span class=sf-dump-public title=\"Public property\">exists</span>: <span class=sf-dump-const>true</span>
+<span class=sf-dump-public title=\"Public property\">wasRecentlyCreated</span>: <span class=sf-dump-const>false</span>
#<span class=sf-dump-protected title=\"Protected property\">attributes</span>: <span class=sf-dump-note>array:3</span> [<samp data-depth=2 class=sf-dump-compact>
\"<span class=sf-dump-key>id</span>\" => <span class=sf-dump-num>1</span>
\"<span class=sf-dump-key>part1</span>\" => \"\"
\"<span class=sf-dump-key>part2</span>\" => \"<span class=sf-dump-str title=\"184 characters\"></span>\"
</samp>]
#<span class=sf-dump-protected title=\"Protected property\">changes</span>: []
#<span class=sf-dump-protected title=\"Protected property\">casts</span>: []
#<span class=sf-dump-protected title=\"Protected property\">classCastCache</span>: []
#<span class=sf-dump-protected title=\"Protected property\">dates</span>: []
#<span class=sf-dump-protected title=\"Protected property\">dateFormat</span>: <span class=sf-dump-const>null</span>
#<span class=sf-dump-protected title=\"Protected property\">appends</span>: []
#<span class=sf-dump-protected title=\"Protected property\">dispatchesEvents</span>: []
#<span class=sf-dump-protected title=\"Protected property\">observables</span>: []
#<span class=sf-dump-protected title=\"Protected property\">relations</span>: []
#<span class=sf-dump-protected title=\"Protected property\">touches</span>: []
#<span class=sf-dump-protected title=\"Protected property\">hidden</span>: []
#<span class=sf-dump-protected title=\"Protected property\">visible</span>: []
Please or to participate in this conversation.