-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Breaks ajax #1275
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. |
I ran into the same problem. The Debugbar scripts and styles are still injected in the response, but at least your own data will be accessible by their keys. I'm no expert at this, but I wonder why the code is injected in every response. |
A validation could be added to check that the context is not a json before adding debugbar |
@AforDesign hi, please try #1558, I think it would solve the problem |
after installing the application it breaks my fetch request by adding a lot of unwanted header data onto the end of the request, uninstalling the debug bar fixes the issue immediately
<script> Sfdump = window.Sfdump || (function (doc) { var refStyle = doc.createElement('style'), rxEsc = /([.*+?^${}()|\[\]\/\\])/g, idRx = /\bsf-dump-\d+-ref[012]\w+\b/, keyHint = 0 <= navigator.platform.toUpperCase().indexOf('MAC') ? 'Cmd' : 'Ctrl', addEventListener = function (e, n, cb) { e.addEventListener(n, cb, false); }; refStyle.innerHTML = '.phpdebugbar pre.sf-dump .sf-dump-compact, .sf-dump-str-collapse .sf-dump-str-collapse, .sf-dump-str-expand .sf-dump-str-expand { display: none; }'; (doc.documentElement.firstElementChild || doc.documentElement.children[0]).appendChild(refStyle); refStyle = doc.createElement('style'); (doc.documentElement.firstElementChild || doc.documentElement.children[0]).appendChild(refStyle); if (!doc.addEventListener) { addEventListener = function (element, eventName, callback) { element.attachEvent('on' + eventName, function (e) { e.preventDefault = function () {e.returnValue = false;}; e.target = e.srcElement; callback(e); }); }; } function toggle(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className, arrow, newClass; if (/\bsf-dump-compact\b/.test(oldClass)) { arrow = '▼'; newClass = 'sf-dump-expanded'; } else if (/\bsf-dump-expanded\b/.test(oldClass)) { arrow = '▶'; newClass = 'sf-dump-compact'; } else { return false; } if (doc.createEvent && s.dispatchEvent) { var event = doc.createEvent('Event'); event.initEvent('sf-dump-expanded' === newClass ? 'sfbeforedumpexpand' : 'sfbeforedumpcollapse', true, false); s.dispatchEvent(event); } a.lastChild.innerHTML = arrow; s.className = s.className.replace(/\bsf-dump-(compact|expanded)\b/, newClass); if (recursive) { try { a = s.querySelectorAll('.'+oldClass); for (s = 0; s < a.length; ++s) { if (-1 == a[s].className.indexOf(newClass)) { a[s].className = newClass; a[s].previousSibling.lastChild.innerHTML = arrow; } } } catch (e) { } } return true; }; function collapse(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className; if (/\bsf-dump-expanded\b/.test(oldClass)) { toggle(a, recursive); return true; } return false; }; function expand(a, recursive) { var s = a.nextSibling || {}, oldClass = s.className; if (/\bsf-dump-compact\b/.test(oldClass)) { toggle(a, recursive); return true; } return false; }; function collapseAll(root) { var a = root.querySelector('a.sf-dump-toggle'); if (a) { collapse(a, true); expand(a); return true; } return false; } function reveal(node) { var previous, parents = []; while ((node = node.parentNode || {}) && (previous = node.previousSibling) && 'A' === previous.tagName) { parents.push(previous); } if (0 !== parents.length) { parents.forEach(function (parent) { expand(parent); }); return true; } return false; } function highlight(root, activeNode, nodes) { resetHighlightedNodes(root); Array.from(nodes||[]).forEach(function (node) { if (!/\bsf-dump-highlight\b/.test(node.className)) { node.className = node.className + ' sf-dump-highlight'; } }); if (!/\bsf-dump-highlight-active\b/.test(activeNode.className)) { activeNode.className = activeNode.className + ' sf-dump-highlight-active'; } } function resetHighlightedNodes(root) { Array.from(root.querySelectorAll('.sf-dump-str, .sf-dump-key, .sf-dump-public, .sf-dump-protected, .sf-dump-private')).forEach(function (strNode) { strNode.className = strNode.className.replace(/\bsf-dump-highlight\b/, ''); strNode.className = strNode.className.replace(/\bsf-dump-highlight-active\b/, ''); }); } return function (root, x) { root = doc.getElementById(root); var indentRx = new RegExp('^('+(root.getAttribute('data-indent-pad') || ' ').replace(rxEsc, '\\$1')+')+', 'm'), options = {"maxDepth":1,"maxStringLength":160,"fileLinkFormat":false}, elt = root.getElementsByTagName('A'), len = elt.length, i = 0, s, h, t = []; while (i < len) t.push(elt[i++]); for (i in x) { options[i] = x[i]; } function a(e, f) { addEventListener(root, e, function (e, n) { if ('A' == e.target.tagName) { f(e.target, e); } else if ('A' == e.target.parentNode.tagName) { f(e.target.parentNode, e); } else { n = /\bsf-dump-ellipsis\b/.test(e.target.className) ? e.target.parentNode : e.target; if ((n = n.nextElementSibling) && 'A' == n.tagName) { if (!/\bsf-dump-toggle\b/.test(n.className)) { n = n.nextElementSibling || n; } f(n, e, true); } } }); }; function isCtrlKey(e) { return e.ctrlKey || e.metaKey; } function xpathString(str) { var parts = str.match(/[^'"]+|['"]/g).map(function (part) { if ("'" == part) { return '"\'"'; } if ('"' == part) { return "'\"'"; } return "'" + part + "'"; }); return "concat(" + parts.join(",") + ", '')"; } function xpathHasClass(className) { return "contains(concat(' ', normalize-space(@Class), ' '), ' " + className +" ')"; } addEventListener(root, 'mouseover', function (e) { if ('' != refStyle.innerHTML) { refStyle.innerHTML = ''; } }); a('mouseover', function (a, e, c) { if (c) { e.target.style.cursor = "pointer"; } else if (a = idRx.exec(a.className)) { try { refStyle.innerHTML = '.phpdebugbar pre.sf-dump .'+a[0]+'{background-color: #B729D9; color: #FFF !important; border-radius: 2px}'; } catch (e) { } } }); a('click', function (a, e, c) { if (/\bsf-dump-toggle\b/.test(a.className)) { e.preventDefault(); if (!toggle(a, isCtrlKey(e))) { var r = doc.getElementById(a.getAttribute('href').substr(1)), s = r.previousSibling, f = r.parentNode, t = a.parentNode; t.replaceChild(r, a); f.replaceChild(a, s); t.insertBefore(s, r); f = f.firstChild.nodeValue.match(indentRx); t = t.firstChild.nodeValue.match(indentRx); if (f && t && f[0] !== t[0]) { r.innerHTML = r.innerHTML.replace(new RegExp('^'+f[0].replace(rxEsc, '\\$1'), 'mg'), t[0]); } if (/\bsf-dump-compact\b/.test(r.className)) { toggle(s, isCtrlKey(e)); } } if (c) { } else if (doc.getSelection) { try { doc.getSelection().removeAllRanges(); } catch (e) { doc.getSelection().empty(); } } else { doc.selection.empty(); } } else if (/\bsf-dump-str-toggle\b/.test(a.className)) { e.preventDefault(); e = a.parentNode.parentNode; e.className = e.className.replace(/\bsf-dump-str-(expand|collapse)\b/, a.parentNode.className); } }); elt = root.getElementsByTagName('SAMP'); len = elt.length; i = 0; while (i < len) t.push(elt[i++]); len = t.length; for (i = 0; i < len; ++i) { elt = t[i]; if ('SAMP' == elt.tagName) { a = elt.previousSibling || {}; if ('A' != a.tagName) { a = doc.createElement('A'); a.className = 'sf-dump-ref'; elt.parentNode.insertBefore(a, elt); } else { a.innerHTML += ' '; } a.title = (a.title ? a.title+'\n[' : '[')+keyHint+'+click] Expand all children'; a.innerHTML += elt.className == 'sf-dump-compact' ? '▶' : '▼'; a.className += ' sf-dump-toggle'; x = 1; if ('sf-dump' != elt.parentNode.className) { x += elt.parentNode.getAttribute('data-depth')/1; } } else if (/\bsf-dump-ref\b/.test(elt.className) && (a = elt.getAttribute('href'))) { a = a.substr(1); elt.className += ' '+a; if (/[\[{]$/.test(elt.previousSibling.nodeValue)) { a = a != elt.nextSibling.id && doc.getElementById(a); try { s = a.nextSibling; elt.appendChild(a); s.parentNode.insertBefore(a, s); if (/^[@#]/.test(elt.innerHTML)) { elt.innerHTML += ' ▶'; } else { elt.innerHTML = '▶'; elt.className = 'sf-dump-ref'; } elt.className += ' sf-dump-toggle'; } catch (e) { if ('&' == elt.innerHTML.charAt(0)) { elt.innerHTML = '…'; elt.className = 'sf-dump-ref'; } } } } } if (doc.evaluate && Array.from && root.children.length > 1) { root.setAttribute('tabindex', 0); SearchState = function () { this.nodes = []; this.idx = 0; }; SearchState.prototype = { next: function () { if (this.isEmpty()) { return this.current(); } this.idx = this.idx < (this.nodes.length - 1) ? this.idx + 1 : 0; return this.current(); }, previous: function () { if (this.isEmpty()) { return this.current(); } this.idx = this.idx > 0 ? this.idx - 1 : (this.nodes.length - 1); return this.current(); }, isEmpty: function () { return 0 === this.count(); }, current: function () { if (this.isEmpty()) { return null; } return this.nodes[this.idx]; }, reset: function () { this.nodes = []; this.idx = 0; }, count: function () { return this.nodes.length; }, }; function showCurrent(state) { var currentNode = state.current(), currentRect, searchRect; if (currentNode) { reveal(currentNode); highlight(root, currentNode, state.nodes); if ('scrollIntoView' in currentNode) { currentNode.scrollIntoView(true); currentRect = currentNode.getBoundingClientRect(); searchRect = search.getBoundingClientRect(); if (currentRect.top < (searchRect.top + searchRect.height)) { window.scrollBy(0, -(searchRect.top + searchRect.height + 5)); } } } counter.textContent = (state.isEmpty() ? 0 : state.idx + 1) + ' of ' + state.count(); } var search = doc.createElement('div'); search.className = 'sf-dump-search-wrapper sf-dump-search-hidden'; search.innerHTML = ' 0 of 0<\/span> <\/svg> <\/button> <\/svg> <\/button> '; root.insertBefore(search, root.firstChild); var state = new SearchState(); var searchInput = search.querySelector('.sf-dump-search-input'); var counter = search.querySelector('.sf-dump-search-count'); var searchInputTimer = 0; var previousSearchQuery = ''; addEventListener(searchInput, 'keyup', function (e) { var searchQuery = e.target.value; /* Don't perform anything if the pressed key didn't change the query */ if (searchQuery === previousSearchQuery) { return; } previousSearchQuery = searchQuery; clearTimeout(searchInputTimer); searchInputTimer = setTimeout(function () { state.reset(); collapseAll(root); resetHighlightedNodes(root); if ('' === searchQuery) { counter.textContent = '0 of 0'; return; } var classMatches = [ "sf-dump-str", "sf-dump-key", "sf-dump-public", "sf-dump-protected", "sf-dump-private", ].map(xpathHasClass).join(' or '); var xpathResult = doc.evaluate('.//span[' + classMatches + '][contains(translate(child::text(), ' + xpathString(searchQuery.toUpperCase()) + ', ' + xpathString(searchQuery.toLowerCase()) + '), ' + xpathString(searchQuery.toLowerCase()) + ')]', root, null, XPathResult.ORDERED_NODE_ITERATOR_TYPE, null); while (node = xpathResult.iterateNext()) state.nodes.push(node); showCurrent(state); }, 400); }); Array.from(search.querySelectorAll('.sf-dump-search-input-next, .sf-dump-search-input-previous')).forEach(function (btn) { addEventListener(btn, 'click', function (e) { e.preventDefault(); -1 !== e.target.className.indexOf('next') ? state.next() : state.previous(); searchInput.focus(); collapseAll(root); showCurrent(state); }) }); addEventListener(root, 'keydown', function (e) { var isSearchActive = !/\bsf-dump-search-hidden\b/.test(search.className); if ((114 === e.keyCode && !isSearchActive) || (isCtrlKey(e) && 70 === e.keyCode)) { /* F3 or CMD/CTRL + F */ if (70 === e.keyCode && document.activeElement === searchInput) { /* * If CMD/CTRL + F is hit while having focus on search input, * the user probably meant to trigger browser search instead. * Let the browser execute its behavior: */ return; } e.preventDefault(); search.className = search.className.replace(/\bsf-dump-search-hidden\b/, ''); searchInput.focus(); } else if (isSearchActive) { if (27 === e.keyCode) { /* ESC key */ search.className += ' sf-dump-search-hidden'; e.preventDefault(); resetHighlightedNodes(root); searchInput.value = ''; } else if ( (isCtrlKey(e) && 71 === e.keyCode) /* CMD/CTRL + G */ || 13 === e.keyCode /* Enter */ || 114 === e.keyCode /* F3 */ ) { e.preventDefault(); e.shiftKey ? state.previous() : state.next(); collapseAll(root); showCurrent(state); } } }); } if (0 >= options.maxStringLength) { return; } try { elt = root.querySelectorAll('.sf-dump-str'); len = elt.length; i = 0; t = []; while (i < len) t.push(elt[i++]); len = t.length; for (i = 0; i < len; ++i) { elt = t[i]; s = elt.innerText || elt.textContent; x = s.length - options.maxStringLength; if (0 < x) { h = elt.innerHTML; elt[elt.innerText ? 'innerText' : 'textContent'] = s.substring(0, options.maxStringLength); elt.className += ' sf-dump-str-collapse'; elt.innerHTML = ''+h+' ◀'+ ''+elt.innerHTML+' ▶'; } } } catch (e) { } }; })(document); </script><style> .phpdebugbar pre.sf-dump { display: block; white-space: pre; padding: 5px; overflow: initial !important; } .phpdebugbar pre.sf-dump:after { content: ""; visibility: hidden; display: block; height: 0; clear: both; } .phpdebugbar pre.sf-dump span { display: inline; } .phpdebugbar pre.sf-dump a { text-decoration: none; cursor: pointer; border: 0; outline: none; color: inherit; } .phpdebugbar pre.sf-dump img { max-width: 50em; max-height: 50em; margin: .5em 0 0 0; padding: 0; background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAHUlEQVQY02O8zAABilCaiQEN0EeA8QuUcX9g3QEAAjcC5piyhyEAAAAASUVORK5CYII=) #D3D3D3; } .phpdebugbar pre.sf-dump .sf-dump-ellipsis { display: inline-block; overflow: visible; text-overflow: ellipsis; max-width: 5em; white-space: nowrap; overflow: hidden; vertical-align: top; } .phpdebugbar pre.sf-dump .sf-dump-ellipsis+.sf-dump-ellipsis { max-width: none; } .phpdebugbar pre.sf-dump code { display:inline; padding:0; background:none; } .sf-dump-public.sf-dump-highlight, .sf-dump-protected.sf-dump-highlight, .sf-dump-private.sf-dump-highlight, .sf-dump-str.sf-dump-highlight, .sf-dump-key.sf-dump-highlight { background: rgba(111, 172, 204, 0.3); border: 1px solid #7DA0B1; border-radius: 3px; } .sf-dump-public.sf-dump-highlight-active, .sf-dump-protected.sf-dump-highlight-active, .sf-dump-private.sf-dump-highlight-active, .sf-dump-str.sf-dump-highlight-active, .sf-dump-key.sf-dump-highlight-active { background: rgba(253, 175, 0, 0.4); border: 1px solid #ffa500; border-radius: 3px; } .phpdebugbar pre.sf-dump .sf-dump-search-hidden { display: none !important; } .phpdebugbar pre.sf-dump .sf-dump-search-wrapper { font-size: 0; white-space: nowrap; margin-bottom: 5px; display: flex; position: -webkit-sticky; position: sticky; top: 5px; } .phpdebugbar pre.sf-dump .sf-dump-search-wrapper > * { vertical-align: top; box-sizing: border-box; height: 21px; font-weight: normal; border-radius: 0; background: #FFF; color: #757575; border: 1px solid #BBB; } .phpdebugbar pre.sf-dump .sf-dump-search-wrapper > input.sf-dump-search-input { padding: 3px; height: 21px; font-size: 12px; border-right: none; border-top-left-radius: 3px; border-bottom-left-radius: 3px; color: #000; min-width: 15px; width: 100%; } .phpdebugbar pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next, .phpdebugbar pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous { background: #F2F2F2; outline: none; border-left: none; font-size: 0; line-height: 0; } .phpdebugbar pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next { border-top-right-radius: 3px; border-bottom-right-radius: 3px; } .phpdebugbar pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-next > svg, .phpdebugbar pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-input-previous > svg { pointer-events: none; width: 12px; height: 12px; } .phpdebugbar pre.sf-dump .sf-dump-search-wrapper > .sf-dump-search-count { display: inline-block; padding: 0 5px; margin: 0; border-left: none; line-height: 21px; font-size: 12px; }.phpdebugbar pre.sf-dump, .phpdebugbar pre.sf-dump .sf-dump-default{word-wrap: break-word; white-space: pre-wrap; word-break: normal}.phpdebugbar pre.sf-dump .sf-dump-num{font-weight:bold; color:#1299DA}.phpdebugbar pre.sf-dump .sf-dump-const{font-weight:bold}.phpdebugbar pre.sf-dump .sf-dump-str{font-weight:bold; color:#3A9B26}.phpdebugbar pre.sf-dump .sf-dump-note{color:#1299DA}.phpdebugbar pre.sf-dump .sf-dump-ref{color:#7B7B7B}.phpdebugbar pre.sf-dump .sf-dump-public{color:#000000}.phpdebugbar pre.sf-dump .sf-dump-protected{color:#000000}.phpdebugbar pre.sf-dump .sf-dump-private{color:#000000}.phpdebugbar pre.sf-dump .sf-dump-meta{color:#B729D9}.phpdebugbar pre.sf-dump .sf-dump-key{color:#3A9B26}.phpdebugbar pre.sf-dump .sf-dump-index{color:#1299DA}.phpdebugbar pre.sf-dump .sf-dump-ellipsis{color:#A0A000}.phpdebugbar pre.sf-dump .sf-dump-ns{user-select:none;}.phpdebugbar pre.sf-dump .sf-dump-ellipsis-note{color:#1299DA}</style> <script type="text/javascript"> var phpdebugbar = new PhpDebugBar.DebugBar(); phpdebugbar.addIndicator("php_version", new PhpDebugBar.DebugBar.Indicator({"icon":"code","tooltip":"PHP Version"}), "right"); phpdebugbar.addTab("messages", new PhpDebugBar.DebugBar.Tab({"icon":"list-alt","title":"Messages", "widget": new PhpDebugBar.Widgets.MessagesWidget()})); phpdebugbar.addIndicator("time", new PhpDebugBar.DebugBar.Indicator({"icon":"clock-o","tooltip":"Request Duration"}), "right"); phpdebugbar.addTab("timeline", new PhpDebugBar.DebugBar.Tab({"icon":"tasks","title":"Timeline", "widget": new PhpDebugBar.Widgets.TimelineWidget()})); phpdebugbar.addIndicator("memory", new PhpDebugBar.DebugBar.Indicator({"icon":"cogs","tooltip":"Memory Usage"}), "right"); phpdebugbar.addTab("exceptions", new PhpDebugBar.DebugBar.Tab({"icon":"bug","title":"Exceptions", "widget": new PhpDebugBar.Widgets.ExceptionsWidget()})); phpdebugbar.addTab("views", new PhpDebugBar.DebugBar.Tab({"icon":"leaf","title":"Views", "widget": new PhpDebugBar.Widgets.TemplatesWidget()})); phpdebugbar.addTab("route", new PhpDebugBar.DebugBar.Tab({"icon":"share","title":"Route", "widget": new PhpDebugBar.Widgets.HtmlVariableListWidget()})); phpdebugbar.addIndicator("currentroute", new PhpDebugBar.DebugBar.Indicator({"icon":"share","tooltip":"Route"}), "right"); phpdebugbar.addTab("queries", new PhpDebugBar.DebugBar.Tab({"icon":"database","title":"Queries", "widget": new PhpDebugBar.Widgets.LaravelSQLQueriesWidget()})); phpdebugbar.addTab("models", new PhpDebugBar.DebugBar.Tab({"icon":"cubes","title":"Models", "widget": new PhpDebugBar.Widgets.HtmlVariableListWidget()})); phpdebugbar.addTab("emails", new PhpDebugBar.DebugBar.Tab({"icon":"inbox","title":"Mails", "widget": new PhpDebugBar.Widgets.MailsWidget()})); phpdebugbar.addTab("gate", new PhpDebugBar.DebugBar.Tab({"icon":"list-alt","title":"Gate", "widget": new PhpDebugBar.Widgets.MessagesWidget()})); phpdebugbar.addTab("session", new PhpDebugBar.DebugBar.Tab({"icon":"archive","title":"Session", "widget": new PhpDebugBar.Widgets.VariableListWidget()})); phpdebugbar.addTab("request", new PhpDebugBar.DebugBar.Tab({"icon":"tags","title":"Request", "widget": new PhpDebugBar.Widgets.HtmlVariableListWidget()})); phpdebugbar.setDataMap({ "php_version": ["php.version", ], "messages": ["messages.messages", []], "messages:badge": ["messages.count", null], "time": ["time.duration_str", '0ms'], "timeline": ["time", {}], "memory": ["memory.peak_usage_str", '0B'], "exceptions": ["exceptions.exceptions", []], "exceptions:badge": ["exceptions.count", null], "views": ["views", []], "views:badge": ["views.nb_templates", 0], "route": ["route", {}], "currentroute": ["route.uri", ], "queries": ["queries", []], "queries:badge": ["queries.nb_statements", 0], "models": ["models.data", {}], "models:badge": ["models.count", 0], "emails": ["swiftmailer_mails.mails", []], "emails:badge": ["swiftmailer_mails.count", null], "gate": ["gate.messages", []], "gate:badge": ["gate.count", null], "session": ["session", {}], "request": ["request", {}] }); phpdebugbar.restoreState(); phpdebugbar.ajaxHandler = new PhpDebugBar.AjaxHandler(phpdebugbar, undefined, true); phpdebugbar.ajaxHandler.bindToFetch(); phpdebugbar.ajaxHandler.bindToXHR(); phpdebugbar.setOpenHandler(new PhpDebugBar.OpenHandler({"url":"http:\/\/localhost:8000\/_debugbar\/open"})); phpdebugbar.addDataSet({"__meta":{"id":"Xe09bb9c1b25affca05e6ef67aaea0bc0","datetime":"2022-01-20 14:31:27","utime":1642689087.867914,"method":"GET","uri":"\/view-topics-ajax\/1\/0","ip":"127.0.0.1"},"php":{"version":"8.0.10","interface":"cli-server"},"messages":{"count":0,"messages":[]},"time":{"start":1642689087.636063,"end":1642689087.867936,"duration":0.2318727970123291,"duration_str":"232ms","measures":[{"label":"Booting","start":1642689087.636063,"relative_start":0,"end":1642689087.762406,"relative_end":1642689087.762406,"duration":0.1263430118560791,"duration_str":"126ms","params":[],"collector":null},{"label":"Application","start":1642689087.764799,"relative_start":0.12873601913452148,"end":1642689087.867939,"relative_end":3.0994415283203125e-6,"duration":0.10313987731933594,"duration_str":"103ms","params":[],"collector":null}]},"memory":{"peak_usage":21414968,"peak_usage_str":"20MB"},"exceptions":{"count":0,"exceptions":[]},"views":{"nb_templates":0,"templates":[]},"route":{"uri":"GET view-topics-ajax\/{id}\/{date}","middleware":"web","controller":"App\\Http\\Controllers\\PostController@viewTopicsAjax","namespace":null,"prefix":"","where":[],"file":"\\app\\Http\\Controllers\\PostController.php:28-41<\/a>"},"queries":{"nb_statements":2,"nb_failed_statements":0,"accumulated_duration":0.019880000000000002,"accumulated_duration_str":"19.88ms","statements":[{"sql":"select `id`, `title`, `user_id`, `created_at` from `posts` where `created_at` < '2022-01-20 14:31:27' and `category_id` = '1' order by `created_at` desc limit 20","type":"query","params":[],"bindings":["2022-01-20 14:31:27","1"],"hints":null,"show_copy":false,"backtrace":[{"index":14,"namespace":null,"name":"\\app\\Http\\Controllers\\PostController.php","line":39},{"index":15,"namespace":null,"name":"\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php","line":54},{"index":16,"namespace":null,"name":"\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":45},{"index":17,"namespace":null,"name":"\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":262},{"index":18,"namespace":null,"name":"\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":205}],"duration":0.018260000000000002,"duration_str":"18.26ms","stmt_id":"\\app\\Http\\Controllers\\PostController.php:39","connection":"forum_laravel","start_percent":0,"width_percent":91.851},{"sql":"select `id`, `username` from `users` where `users`.`id` in (46, 60, 100, 214, 215, 245, 266, 301, 308, 314, 387, 401, 432, 457, 460, 479, 498)","type":"query","params":[],"bindings":[],"hints":null,"show_copy":false,"backtrace":[{"index":19,"namespace":null,"name":"\\app\\Http\\Controllers\\PostController.php","line":39},{"index":20,"namespace":null,"name":"\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Controller.php","line":54},{"index":21,"namespace":null,"name":"\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\ControllerDispatcher.php","line":45},{"index":22,"namespace":null,"name":"\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":262},{"index":23,"namespace":null,"name":"\\vendor\\laravel\\framework\\src\\Illuminate\\Routing\\Route.php","line":205}],"duration":0.0016200000000000001,"duration_str":"1.62ms","stmt_id":"\\app\\Http\\Controllers\\PostController.php:39","connection":"forum_laravel","start_percent":91.851,"width_percent":8.149}]},"models":{"data":{"App\\Models\\User":17,"App\\Models\\Post":20},"count":37},"swiftmailer_mails":{"count":0,"mails":[]},"gate":{"count":0,"messages":[]},"session":{"_token":"4aOqLJtQrK8MZ9NA5EtHlJnnTCetip5t9U31PmaM","_previous":"array:1 [\n \"url\" => \"http:\/\/localhost:8000\/view-topics-ajax\/1\/0\"\n]","_flash":"array:2 [\n \"old\" => []\n \"new\" => []\n]","PHPDEBUGBAR_STACK_DATA":"[]"},"request":{"path_info":"\/view-topics-ajax\/1\/0","status_code":"`[{"id":415,"title":"Quo facere quis nobis dignissimos voluptates aperiam minus. Est nostrum minus nam nisi velit vel. Placeat mollitia tempora doloribus. Rerum porro aut et. Nisi ut ut qui quo animi dignissimos.","user_id":314,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":314,"username":"frunolfsson"}},{"id":417,"title":"Non odio est vero omnis. Inventore impedit consequatur vel dolorum laudantium sit similique. Quidem est recusandae enim. Aut esse ut omnis consequatur et. Dolores soluta facere aut iste error.","user_id":479,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":479,"username":"murphy.jerald"}},{"id":418,"title":"Sunt temporibus aspernatur quia voluptas autem voluptates. Nisi molestias quibusdam excepturi dolore iusto. Architecto et est natus. Architecto nam perferendis ut quisquam neque.","user_id":308,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":308,"username":"iwaelchi"}},{"id":420,"title":"Praesentium consequatur quos molestiae vero et. Voluptas architecto aut occaecati dolor autem neque. Aut consequuntur animi error ducimus doloribus laborum perspiciatis.","user_id":498,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":498,"username":"electa96"}},{"id":421,"title":"Ut officiis sit ut sed reprehenderit pariatur modi. Et nihil eius rerum consectetur. Voluptatem quisquam ipsa explicabo quo et omnis illo. Voluptatem unde quia earum ea ea animi. Magnam dolores cupiditate consequatur sint.","user_id":60,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":60,"username":"stacey56"}},{"id":425,"title":"Quam adipisci fuga sequi praesentium et exercitationem. Sed nostrum architecto dolorem quae. Dicta ut consequatur accusamus alias tempore. Sit ipsum aut nobis et quidem.","user_id":479,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":479,"username":"murphy.jerald"}},{"id":426,"title":"Ab id autem ea quae. Similique rerum excepturi vel cupiditate. Voluptate velit sed qui temporibus fuga delectus ut. Dolore pariatur porro eaque vel quibusdam non consequatur.","user_id":401,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":401,"username":"vkub"}},{"id":427,"title":"Aut sint adipisci ipsam dolore non eos odio. Quidem nesciunt repudiandae eaque laborum nihil sed. Dolores velit ut eligendi delectus autem unde blanditiis. Modi repellat ex dolor perspiciatis velit.","user_id":214,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":214,"username":"florencio.dubuque"}},{"id":428,"title":"Non placeat excepturi cumque alias quisquam culpa. Magnam ducimus molestiae debitis tenetur id qui. Omnis esse quia provident. Ea qui doloremque qui perferendis ut corrupti adipisci.","user_id":457,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":457,"username":"alysa.franecki"}},{"id":429,"title":"Tenetur aut expedita ad voluptas voluptate culpa eum. Eius sed non unde est eveniet cum. Velit mollitia magnam est a minima dolorum. Recusandae eligendi optio ullam rerum eum. Totam nam asperiores hic. Dolores mollitia deserunt eius esse ut.","user_id":387,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":387,"username":"kokuneva"}},{"id":431,"title":"Dolorem id sapiente animi aut aut. Voluptas consectetur et consequatur odit. Repellendus voluptas distinctio dolore sint. Aut eveniet blanditiis assumenda natus eius ut nisi voluptas. Blanditiis ratione quaerat autem repudiandae vel vitae nemo.","user_id":460,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":460,"username":"trever.bergnaum"}},{"id":433,"title":"Cumque rerum non et beatae. Praesentium sed odit molestiae voluptatum. Laborum cupiditate ab rem rerum ut qui id. Sapiente quam voluptatem non ab pariatur est architecto quidem.","user_id":100,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":100,"username":"pvolkman"}},{"id":435,"title":"Recusandae sit deleniti qui ut ipsa non. Blanditiis nam est quae ut veniam. In earum non ut velit tenetur quod officia.","user_id":215,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":215,"username":"cortez66"}},{"id":436,"title":"Laudantium cupiditate ut a quo. Autem molestiae et non quo non ipsum. Officiis aliquid iusto itaque numquam asperiores et. Beatae pariatur sit cumque voluptatem blanditiis voluptas magnam. Rerum quas qui fuga voluptas qui.","user_id":266,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":266,"username":"wstreich"}},{"id":437,"title":"Inventore magnam laboriosam laudantium et. Officiis dicta exercitationem consectetur. Similique totam voluptatum id rerum. Consequuntur doloribus sed quasi vel. Qui hic a voluptate eum perspiciatis iste suscipit.","user_id":46,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":46,"username":"melyssa.stanton"}},{"id":440,"title":"Nulla ipsa nihil maxime rerum. Illum praesentium dolorem cum ipsum ipsum. Qui qui temporibus et.","user_id":266,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":266,"username":"wstreich"}},{"id":442,"title":"Perspiciatis non ducimus magni ea et est soluta repellendus. Molestiae nostrum tempora voluptatem saepe atque et est.","user_id":245,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":245,"username":"jschultz"}},{"id":443,"title":"Perferendis sit iure modi inventore quis. Voluptas aut enim et ut. Saepe harum aliquid quis officia tenetur reprehenderit eveniet id. Numquam perferendis alias excepturi quis quas debitis architecto numquam.","user_id":432,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":432,"username":"bsipes"}},{"id":444,"title":"Quo voluptatibus ex neque molestiae enim. Itaque ipsa ipsa quasi soluta maxime est non placeat. Quod eius consequatur ex voluptatem.","user_id":301,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":301,"username":"mathew63"}},{"id":445,"title":"Itaque voluptatum soluta vel excepturi consequatur. Nostrum consectetur vitae modi id. Occaecati aut vitae cupiditate dolor quia corrupti. Quo temporibus hic nemo officia asperiores.","user_id":46,"created_at":"2022-01-15T17:55:08.000000Z","user":{"id":46,"username":"melyssa.stanton"}}]<script src='//localhost:8000/_debugbar/assets/javascript?v=1639493118'></script><script>jQuery.noConflict(true);</script>
200<\/span>\n<\/pre><script>Sfdump(\"sf-dump-816517000\", {\"maxDepth\":0})<\/script>\n","status_text":"OK","format":"html","content_type":"text\/html; charset=UTF-8","request_query":"
The text was updated successfully, but these errors were encountered: