angular-fullstack throwing uncaught sybtax error < in the rowser - gruntjs

I am using yeoman angular-fullstack generator for my app and its working fine in grunt serve but throwing Uncaught syntax errors '<' in grunt serve:dist.

Don't have the rep to comment but it's likely being caused when your application tries to load something and throws a 404 which causes the 404 route to be hit which renders the 404 error page causing the first character to be '<html...'.
Check the network requests and responses for the offending request.

Related

CRA precache fails because of .LICENSE extension

So, we have a situation where in production the precache is failing on our PWA because of a weird .LICENSE file on our server that is giving us 404
specifically an error like this
uncaught (in promise) bad-precaching-response: bad-precaching-response :: [{"url"
How we can fix that?
Well, the fix is simple.
Our web-server returns only known file extensions, and .LICENSE is not one of them.
Just enable the ServeUnknownFileTypes flag on your StaticFileServer options info

How to show errors in browser?

I'm getting started with Sylius. Symfony version is 3.2.7. On some pages I have some errors. The pages show text:
Oops! An Error Occurred
The server returned a "500 Internal Server Error".
Something is broken. Please let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
I want the errors to be displayed in browser, with full stacktrace.
I know I can see the error in var/prod.log, but it doesn't show the whole stacktrace, only the last frame. And seeing the error in browser would be more convenient: that's what I'm used to after a lot of working with Yii and Magento.
Is that possible with Symfony/Sylius?
I added /app_dev.php to the url to run the website in development environment, and there I can see the stack trace.
That is, https://[my_domain]/app_dev.php/[page] instead of https://[my_domain]/[page]
By default Symfony show trace in dev environment. In prod environment it show simple error message. For running your project in dev you can use built-in PHP Web Server or Web Server Bundle
Also you can use symfony installer app to serve request
Use symfony serve --no-tls in symfony folder.
It will show you requests and errors in red.

The route is truncated on my Symfony application getting a 404 error

I have two differents pages getting the same error in my symfony3.4 application.
It is a detail page of an entity, it is working most of the time but sometimes and I don't know what is triggering the error, I get a 404 error and I can see my route truncated in the error.
The route is : {base_url}/app_dev.php/stock/model/{id}/detail
On some of my resources, the error message is :
It seems to happend on specific entities but I have no clues about what could possibly trigger that kinds of error.
Any idea of what I could investigate to debug ?
-- EDIT --
It seems that the route is working fine using {base_url}/web/app_dev.php , the problem appears when the route has no /web in dev mode ({base_url}/app_dev.php)
Sometimes Symfony3 throught a 404 error in dev mode without the /web . It is a server configuration matter. Check https://symfony.com/doc/3.4/setup/web_server_configuration.html for more informations

Wordpress Uncaught SyntaxError: Unexpected Token Illegal

I have a local install of Wordpress running & I am suddenly getting these errors in my console:
Uncaught SyntaxError: Unexpected token ILLEGAL
media-upload.php:75Uncaught ReferenceError: jQuery is not defined
media-upload.php:89Uncaught ReferenceError: SWFUpload is not defined
media-upload.php:156Uncaught ReferenceError: jQuery is not defined
load-scripts.php:1Uncaught SyntaxError: Unexpected token ILLEGAL
Non-wordpress site's work fine and I've never had any issues like this before, it seems to be limited to Wordpress.
What I don't understand is that the modal window is being called and loading AJAX content, additionally all the transitions work in the rest of the Wordpress admin area.
Does anyone have any suggestions?
Thanks
I had a similar problem. Disable magic_quotes_gpc, magic_quotes_runtime, magic_quotes_sybase in PHP administration console or php.ini. This feature has been DEPRECATED as of PHP 5.3.0 and REMOVED as of PHP 5.4.0. You can also disable dynamic content compression with IIS administrative console. Then reset your browser cache.
I had this problem also, but clearing the browser, cache (Chrome) with SHIFT+F5 had reloaded the scripts and solved the problem.
Refresh the cache for every page where you encounter the problem.

My site toggles between OK & Error 'ASP 0115'

My ASP website is acting strange: 70% of the time it works normally. 30% it shows this message
Active Server Pages error 'ASP 0115'
Unexpected error
/index.asp
A trappable error (C0000005) occurred
in an external object. The script
cannot continue running.
Never changed anything so what is the problem?
The ASP 0115 error (and the C0000005 error, for that matter) can correspond with a permissions issue. Microsoft has a KB article on troubleshooting the error located here:
http://support.microsoft.com/default.aspx/kb/194190
More information here on MSDN.
Quote from the page regarding your error:
For example, when an ASP 0115 error occurs, the browser and IIS log may display:
error 'ASP 0115' Unexpected
error /[Web Name]/[ASP file
name].asp A trappable error
occurred in an external object. The
script cannot continue running.
When the error displays on the returned ASP page, you know:
The page that caused the problem.
An exception occurred in an external object.

Resources