Page 1 of 1

Stimulsoft Reports.PHP latest version 2023.3 does not work with LaravelDebugbar

Posted: Thu Jul 27, 2023 4:37 pm
by nexpro
Stimulsoft Reports.PHP latest version 2023.3 for Laravel Version 9.52 does not work with the widely used Laravel debugbar "barryvdh/laravel-debugbar": "^3.8.1",

Then there is a javascript error.

Uncaught SyntaxError: missing } after property list
stimulsoft.reports.js:12:161506note: { opened at line 12, column 161379stimulsoft.reports.js:12:161379
18:26:04.012 Uncaught SyntaxError: expected expression, got '<'
stimulsoft.viewer.js:11:288563
18:26:04.013
Uncaught ReferenceError: Stimulsoft is not defined
<anonymous> https://xxxxxx.dev/viewer:118
viewer:118:13
18:26:04.074
GET
https://xxxxxx.dev/favicon.ico
[HTTP/1.1 200 OK 0ms]

18:26:04.090
Uncaught ReferenceError: Stimulsoft is not defined
onLoad https://xxxxxx.dev/viewer:124
onload https://xxxxxx.dev/viewer:1


Please fix the error

Re: Stimulsoft Reports.PHP latest version 2023.3 does not work with LaravelDebugbar

Posted: Fri Jul 28, 2023 7:57 am
by Lech Kulikowski
Hello,

We need some additional time to investigate the issue, we will let you know about the result.

Thank you.
#12051

Re: Stimulsoft Reports.PHP latest version 2023.3 does not work with LaravelDebugbar

Posted: Tue Aug 01, 2023 9:57 am
by Lech Kulikowski
Hello,

We have analyzed the situation and have not found a universal solution. The problem occurs because Laraver Debugbar includes its code in any request, including all static scripts. This makes them incorrect for the browser.

The only solution you can try is to set an option in the debugbar.php file:
'inject' => false,

and try rendering for debugbar using the functions suggested in the documentation:
http://phpdebugbar.com/docs/rendering.html

Thank you.