Skip to content
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

Internal Server Error 500 - CF9 on Win2k12 x64 #3

Open
tomtheone opened this issue Jul 31, 2016 · 0 comments
Open

Internal Server Error 500 - CF9 on Win2k12 x64 #3

tomtheone opened this issue Jul 31, 2016 · 0 comments

Comments

@tomtheone
Copy link

tomtheone commented Jul 31, 2016

Hi all,

I have installed the cf-google-authenticator on our win2k12 x64 cf9 server.

I received following error message after clicking "Generate" on sample/sample_generate.cfm:


Invalid CFML construct found on line 126 at column 80.

ColdFusion was looking at the following text:
[

The CFML compiler was processing:

A script statement beginning with public on line 126, column 5.

The error occurred in D:\PATH\authenticator\authenticator\GoogleAuthenticator.cfc: line 126
125 : 
126 :     public string function generateKey (required string password, array salt = [])
127 :     {
128 :         if (arrayLen(salt) == 0)

Resources:
Check the ColdFusion documentation to verify that you are using the correct syntax.
Search the Knowledge Base to find a solution to your problem.
Browser     Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.106 Safari/537.36
Remote Address  1.2.3.4
Referrer    http://URL.org/authenticator/sample/sample_generate.cfm
Date/Time   31-Jul-16 03:47 PM
Stack Trace
at cfsample_generate2ecfm178615731.runPage(D:\PATH\authenticator\sample\sample_generate.cfm:26) 

coldfusion.compiler.ParseException: Invalid CFML construct found on line 126 at column 80.

I changed following in authenticator\GoogleAuthenticator.cfc:

124 :    force_empty_salt = [];
125 :
126 :    public string function generateKey (required string password, array salt = force_empty_salt)

And voilà, i received the QR code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant