xpages dojo calendar script SyntaxError: missing ; before statement - dojo

Hello I'm receiving the following js error within my xpages app. It is in relation to the calendar widget. Oddly enough this code runs on a server perfectly fine, however when I try accessing the same server, same app through a firewall, that's when I receive the following js error. Unfortunately this is compressed js and I don't know what anything is doing to be able to resolve the issue on my own. Any help would be greatly appreciated.
failed loading /xsp/.ibmxspres/dojoroot-1.6.1/dojo/../dijit/Calendar.js with error: SyntaxError: missing ; before statement
https://newwads.health.state.ny.us/+CSCO+d6756767633A2F2F7565766665696534++/xsp/.ibmxspres/dojoroot-1.6.1/dojo/dojo.js
Line 14
failed loading /xsp/.ibmxspres/dojoroot-1.6.1/dojo/../dijit/Calendar.js with error: SyntaxError: missing ; before statement
toString(uri=
undefined
, _25=
undefined
, cb=
undefined
)dojo.js (line 14)
toString(_21=
"../dijit/Calendar.js"
, _22=
"dijit.Calendar"
, cb=
undefined
)dojo.js (line 14)
toString(_2d=
"dijit.Calendar"
, _2e=
undefined
)dojo.js (line 14)
eval()56 (line 8)
toString(_1d=
"/*\r\n Copyright (c) 2004...jit/form/DateTextBox.js"
)dojo.js (line 14)
toString(uri=
"/xsp/.ibmxspres/dojoroo...jit/form/DateTextBox.js"
, cb=
undefined
)dojo.js (line 14)
toString(uri=
"/xsp/.ibmxspres/dojoroo...jit/form/DateTextBox.js"
, _25=
"dijit.form.DateTextBox"
, cb=
undefined
)dojo.js (line 14)
toString(_21=
"../dijit/form/DateTextBox.js"
, _22=
"dijit.form.DateTextBox"
, cb=
undefined
)dojo.js (line 14)
toString(_2d=
"dijit.form.DateTextBox"
, _2e=
undefined
)dojo.js (line 14)
()testTime.xsp (line 21)
...dium"){return 4;}if(_171.slice&&_171.slice(-2)=="px"){return parseFloat(_171);}w...

Is your proxy messing with the data? Like single-signon or adding code? You could use Fiddler and see what is going on. Also AFAIK the FF WebDeveloper allows to see the loaded JS uncompressed

Related

after installing magnus-ui in expo app getting error "No Space between hexadecimal literal and identifier"

expo go giving me this error
No Space between hexadecimal literal and identifier
No Stack
I am facing same problem here but it just happen in Android, iOS is running with no problem
-- EDIT --
I just found the problem when I tried to run the project on browser.
So these are the steps for you reproduce my aproach:
Run:
expo start
Choose "Run in web browser"
You will face a error in "color" module:
Access the module directory and file:
node_modules/color/index.js
1st problem is in line 66:
change this:
object &= 0xFF_FF_FF;
to this:
object &= 0xFFFFFF;
2nd problem is in the line 258:
change this:
`lum[i] = (chan <= 0.039_28) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;``
to this:
lum[i] = (chan <= 0.03928) ? chan / 12.92 : ((chan + 0.055) / 1.055) ** 2.4;
So this solved my problem just creating a issue here:
https://github.com/Qix-/color/
-- UPDATE --
The right way to fix that is downgrade color plugin from 4.0.0 to latest release, in my case today (07/28) is 3.2.1 so run:
yarn remove color
yarn add color#3.2.1

Errors in October CMS installation via cPanel

I just installed October CMS on my hosting platform via cPanel's Softaculous utility. I do not believe installation method has anything to do with my errors but mentioning it just in case I am wrong.
October CMS Version: 1.0.458
Sever PHP Version: 7.3.3
After installing in the designated directory it is showing "HTTP 500" generic error so I checked the error log. Following error was being shown
"[28-Sep-2019 11:09:04 Etc/GMT] PHP Parse error: syntax error, unexpected '[', expecting ')' in /home/XYZ/public_html/XYZ/vendor/october/rain/src/Support/helpers.php on line 149"
There is absolutely no online resource which describes occurance of such an error and possible solution. So I opened the helper.php to look at line 149. The code on this line was,
$query = str_replace(['%', '?'], ['%%', '%s'], $query);
Now there is nothing seemingly wrong with this line but I thought may be the "str_replace" function is not able to understand the array arguments. So I removed the array arguments and wrote it two times like
$query = str_replace('%', '%%', $query);
$query = str_replace('?', '%s', $query);
Now the error on this line disappears but a new error appears on another line as follows
PHP Parse error: syntax error, unexpected '[' in /home/XYZ/public_html/XYZ/vendor/october/rain/src/Support/helpers.php on line 238
The code on this line is
function trans($id = null, $parameters = [], $domain = 'messages', $locale = null)
Now here I am not sure if removing brackets would make everything alright. Why should such strange errors appears? Can someone help?
Are you 100% sure the PHP version you're using is 7.3.3?
The short array syntax of using [ ... ] instead of array( ... ) was introduced in PHP 5.4 and the errors you are getting are the errors that will happen if you are using an older version of PHP. I'm not sure how cPanel Softaculous works, but perhaps somehow it set you up to use a different version of PHP then you expect.
I would try running phpinfo() to double check your PHP setup.

Karate Version 0.9.0.RC5 is not not running project developed in version 0.8.0.1

Getting Error:
13:59:17.372 [GatlingSystem-akka.actor.default-dispatcher-7] INFO com.intuit.karate - >> lock acquired, begin callonce: read('CLASSPATH:CreateUsers.feature');
13:59:17.372 [GatlingSystem-akka.actor.default-dispatcher-7] ERROR com.intuit.karate.FileUtils - feature relative path resolution failed: Illegal char <:> at index 9: CL
I tried replacing ":" by "=" but it didn't work for me
have you tried it as classpath:, It is case sensitive.
callonce read('classpath:CreateUsers.feature')

How can i get the whole error stack when any error come in vue.js application?

I when to log the error coming in vue.js application . How can i get whole error stack for the error.
filename , In which line and row of file .
The error description
and whole error detail
I am trying the window.onerror but it is not giving file name of the of error log .
Any idea ?

Pig Filter Syntax error, unexpected symbol

inputData = LOAD '$input' AS (line:chararray);
statusLineFilter = FILTER smallData BY (line MATHCES '^.* AppWrite-Dispatcher: Status code: [0-9]+$');
This code, when I run it, yields this error: ERROR org.apache.pig.tools.grunt.Grunt - ERROR 1200: Syntax error, unexpected symbol at or near 'line'
The log file says the exact same thing. I'm at a loss, because the exact same syntax is working in other scripts I've written.
In order to avoid misspelling of key words I recommend you to use an IDE or a Text-Editor like emacs with the pig-mode.el which add syntax highlight ;)