Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 1. Correct answers available: 1.


Permlink Replies: 6 - Pages: 1 - Last Post: 3 Nov 23, 00:21 Last Post By: JeffTucker
mrag

Posts: 246
Registered: 26-Jul-2003
Problems with the Contact page
Posted: 31 Oct 23, 20:48
 
Attachment laza2.jpg (70.8 KB)
The first couple of times I didn't have big problems, but this time I outdid myself. On a beginner's level, I'm not clear about Twitter (now X by the way) and Facebook, etc, etc. Poor Rob, he'll have to try and explain all this to me in his wiki.

The attached is the sample input I was playing with, perhaps that generated the following error message.

Meanwhile, here is the Swedish version of the error message I just got:

Stack trace for jAlbum 33.0.11 using skin Plain 2.0.2:

se.datadosen.util.ScriptException: <eval>:14 ReferenceError: "googleApiKey" is not defined in Contact.inc at line number 1
at se.datadosen.util.ScriptException.of(ScriptException.java:59)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:99)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.IncludeNode.doEval(IncludeNode.java:89)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.ast.GroupNode.doEval(GroupNode.java:78)
at se.datadosen.jalbum.ast.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.AST.eval(AST.java:75)
at se.datadosen.jalbum.AlbumBean.processTemplateFile(AlbumBean.java:1665)
at se.datadosen.jalbum.AlbumBean.processTemplateFile(AlbumBean.java:1658)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1940)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3742)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3580)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1189)
Caused by: javax.script.ScriptException: ReferenceError: "googleApiKey" is not defined in <eval> at line number 14
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:463)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:447)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:503)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:67)
... 13 more
Caused by: <eval>:14 ReferenceError: "googleApiKey" is not defined
at org.openjdk.nashorn.internal.runtime.ECMAErrors.error(ECMAErrors.java:57)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:318)
at org.openjdk.nashorn.internal.runtime.ECMAErrors.referenceError(ECMAErrors.java:290)
at org.openjdk.nashorn.internal.objects.Global.__noSuchProperty__(Global.java:1614)
at org.openjdk.nashorn.internal.scripts.Script$182$\^eval\_.:program(<eval>:14)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:513)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:520)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:442)
... 16 more
RobM

Posts: 3,955
Registered: 4-Aug-2006
Re: Problems with the Contact page
Posted: 31 Oct 23, 21:45   in response to: mrag in response to: mrag
 
Sorry Al, this is a skin thingy not a jAlbum thingy, so not something for 'my' wiki ;)
However, if you open contents.inc, from the skin's templates folder and go to line 15 you will see:
(googleApiKey? ('?key=' + googleApiKey) : '') + 

Replace googleApiKey with mapsApiKey
That should make it work - it does for me.
mrag

Posts: 246
Registered: 26-Jul-2003
Re: Problems with the Contact page
Posted: 2 Nov 23, 02:38   in response to: RobM in response to: RobM
 
I believe my problem was I put some text in the "Map location" field and that initiated the error flag. Leaving it blank things went well.

I'm still questioning the links to places like Twitter now X. Too many? And what if a newer more popular one appears? I'm thinking of replacements for X.
RobM

Posts: 3,955
Registered: 4-Aug-2006
Re: Problems with the Contact page
Posted: 2 Nov 23, 10:58   in response to: mrag in response to: mrag
 
Click on the ‘Read from a photo’ button. Navigate to a photo with gps data and select it. Then try making the album. Leaving the field empty doesn’t cause the error.
RobM

Posts: 3,955
Registered: 4-Aug-2006
Re: Problems with the Contact page
Posted: 3 Nov 23, 00:12   in response to: mrag in response to: mrag
Helpful
It seems that this has been fixed now.
mrag

Posts: 246
Registered: 26-Jul-2003
Re: Problems with the Contact page
Posted: 3 Nov 23, 00:15   in response to: mrag in response to: mrag
 
RobM has told me he believes the situation fixed so who am I to question that ;-)
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: Problems with the Contact page
Posted: 3 Nov 23, 00:21   in response to: mrag in response to: mrag
 
mrag wrote:
RobM has told me he believes the situation fixed so who am I to question that ;-)

That's the right attitude!
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums