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


Permlink Replies: 8 - Pages: 1 - Last Post: 28 Jul 25, 16:26 Last Post By: EnkiLee Threads: [ Previous | Next ]
EnkiLee

Posts: 18
Registered: 1-Dec-2013
Error creating new album
Posted: 26 Jul 25, 22:18
 
  Click to reply to this thread Reply
Changed my hardware:
  • Made a backup of my album
  • Installed jAlbum on new computer
  • Restored my Album
  • Fixed some lost files (replaced them with new htt-file)
  • Tried to create the album

-> didn't work:What to do?

Stack trace for jAlbum 37.7.3 using skin Story 6.2.1:

se.datadosen.util.ScriptException: <eval>:67 ReferenceError: "foursquare_id" 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:1693)
at se.datadosen.jalbum.AlbumBean.processTemplateFile(AlbumBean.java:1686)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1972)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3736)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3572)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1207)
Caused by: javax.script.ScriptException: ReferenceError: "foursquare_id" is not defined in <eval> at line number 67
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(NashornScriptEngine.java:436)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:420)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine$1.eval(NashornScriptEngine.java:476)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:67)
... 13 more
Caused by: <eval>:67 ReferenceError: "foursquare_id" 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:1604)
at org.openjdk.nashorn.internal.scripts.Script$170$\^eval\_.:program(<eval>:67)
at org.openjdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:646)
at org.openjdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:506)
at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:519)
at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:415)
... 16 more
JeffTucker

Posts: 8,104
Registered: 31-Jan-2006
Re: Error creating new album
Posted: 26 Jul 25, 22:23   in response to: EnkiLee in response to: EnkiLee
 
  Click to reply to this thread Reply
"Fixed some lost files." This is what's known as a "clue." ;)

It appears that you're trying to use a Contact.htt file from a previous skin version, which often doesn't work. Try removing the old pages, and adding a new contact page, and see if the error persists.
EnkiLee

Posts: 18
Registered: 1-Dec-2013
Re: Error creating new album
Posted: 27 Jul 25, 12:10   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
That's what i tried.

After importing the album, jAlbum reportet three missing files. It was possible to build the album, but obviously the information of the missing files was not there.

All three files have been part of the albums main navigation, in the page, where the three .htt files have been, additionally they were show as buttons, not as content.

I deleted the three missing .htt-files and added them again, from the new jAlbum (downloaded yesterday from the website).

As soon as i add the contact-include, the album generation crashes with a hint, that there might be a problem with the stroy skin.

The other files now appear as content, not as button as before. Additionally the links have vanished from the main menu.

Edited by: EnkiLee on 27 Jul 2025, 12:11
RobM

Posts: 3,953
Registered: 4-Aug-2006
Re: Error creating new album
Posted: 27 Jul 25, 13:18   in response to: EnkiLee in response to: EnkiLee
 
  Click to reply to this thread Reply
Templates like contact.htt are added to projects as links to the template in the skin’s folder. The thumbnail should have a curved ‘link’ icon near the bottom of the thumbnail. Unless you have a very old project or have converted the link to a copy the contact.htt should not need to be added again.

If you have had to add the contact.inc file that indicates a broken downloaded skin.
EnkiLee

Posts: 18
Registered: 1-Dec-2013
Re: Error creating new album
Posted: 27 Jul 25, 14:23   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
I reinstalled the skin (it was isntalled together with the new installation of jAlbum) and restarted jAlbum. The error still occurs (java exception above, find screenshot attached).

The template has the curved link icon, as you described.
RobM

Posts: 3,953
Registered: 4-Aug-2006
Re: Error creating new album
Posted: 27 Jul 25, 15:29   in response to: EnkiLee in response to: EnkiLee
 
  Click to reply to this thread Reply
Just looked at story skin’s contact.htt file and two lines have been remarked out:
 /*JTextField foursquare_id = new JTextField(16);
JTextField google_id = new JTextField(16);
*/
But the related code in contact.inc is still there
 if (foursquare_id) {
out.println('\t\t\t\t\t<div class="foursquare"><strong>Foursquare</strong><a href="http://foursquare.com/' + foursquare_id + '" rel="noopener" target="_blank" class="button icon-foursquare"> https://foursquare.com/' + foursquare_id + '</a></div>');
}
if (google_id) {
	out.println('\t\t\t\t\t<div class="google"><strong>Google +</strong><a href="https://plus.google.com/u/0/' + google_id + '/posts" rel="noopener" target="_blank" class="button icon-google-plus"> https://plus.google.com/u/0/' + google_id + '/posts</a></div>');
}
That is why the project fails.
Laza

Posts: 1,631
Registered: 6-Sep-2005
Re: Error creating new album
Posted: 27 Jul 25, 15:40   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
I've tested the Contact page after this change, but it seems the fantom variable was still available in my test project. I will fix this and release an update soon. Thanks for calling my attention to it!
RobM

Posts: 3,953
Registered: 4-Aug-2006
Re: Error creating new album
Posted: 27 Jul 25, 22:19   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Quick fix.
EnkiLee, 6.2.2 released.
EnkiLee

Posts: 18
Registered: 1-Dec-2013
Re: Error creating new album
Posted: 28 Jul 25, 16:26   in response to: RobM in response to: RobM
 
  Click to reply to this thread Reply
Great, now fixed!

Thank You!
Legend
Forum admins
Helpful Answer
Correct Answer

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