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


Permlink Replies: 14 - Pages: 1 - Last Post: 1 Feb 25, 07:07 Last Post By: Laza
ktheqvist

Posts: 5
Registered: 28-Mar-2013
Error related to Tiger skin has occured
Posted: 29 Jan 25, 09:15
 
  Click to reply to this thread Reply
I got an error message when I tried to "Make Album" for a photo gallery that I had last modified on 21.12.2020. I had now just got an update on the Tiger skin and also on Jalbum. The Tiger skin was Ricepaper.

The web site is https://www.rhodogarden.com/Making_a_large_pond/index.html.

Stack trace for jAlbum 37.0.2 using skin Tiger 6.4.1:

se.datadosen.util.ScriptException: C:\Users\krist\AppData\Roaming\JAlbum\skins\Tiger\lib\util.js:5687 ReferenceError: "ex" is not defined in common.css 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.ASTNode.eval(ASTNode.java:50)
at se.datadosen.jalbum.AST.eval(AST.java:68)
at se.datadosen.jalbum.AlbumBean.processTemplateFile(AlbumBean.java:1607)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1845)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3712)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3549)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1196)
Caused by: javax.script.ScriptException: ReferenceError: "ex" is not defined in C:\Users\krist\AppData\Roaming\JAlbum\skins\Tiger\lib\util.js at line number 5687
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)
... 9 more
Caused by: C:\Users\krist\AppData\Roaming\JAlbum\skins\Tiger\lib\util.js:5687 ReferenceError: "ex" 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$Recompilation$52$144901AZA$util.deleteFolder(C:\Users\krist\AppData\Roaming\JAlbum\skins\Tiger\lib\util.js:5687)
at org.openjdk.nashorn.internal.scripts.Script$Recompilation$48$146231A$util.syncGoogleFonts(C:\Users\krist\AppData\Roaming\JAlbum\skins\Tiger\lib\util.js:5729)
at org.openjdk.nashorn.internal.scripts.Script$28$\^eval\_.:program(<eval>:128)
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)
... 12 more

Edited by: ktheqvist on 29 Jan 2025, 10:34
Laza

Posts: 1,456
Registered: 6-Sep-2005
Re: Error related to Tiger skin has occured
Posted: 29 Jan 25, 12:48   in response to: ktheqvist in response to: ktheqvist
 
  Click to reply to this thread Reply
This error occurs when the skin tries to delete a folder, but that's impossible, so it tries to write out the error message. Hopefully, it does not happen frequently. Did it also stop the Make process?
ktheqvist

Posts: 5
Registered: 28-Mar-2013
Re: Error related to Tiger skin has occured
Posted: 29 Jan 25, 13:29   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
It does it everytime when I try to make an album.
If I change the style from Ricepaper to another style, for example Wood, it makes the album.

I made two albums on 26.1.2025 and I did not have this problem. Now even the same albums that worked three days ago get stuck with the error message. Could the new version of Tiger that I loaded today be the reason?

I have the output file defined as same as the input file. I have used this in all my tens of albums.
The only drawback has been that I need to exclude folderimage, folderthumb and shareimage from the shown images.
JeffTucker

Posts: 8,056
Registered: 31-Jan-2006
Re: Error related to Tiger skin has occured
Posted: 29 Jan 25, 13:36   in response to: ktheqvist in response to: ktheqvist
 
  Click to reply to this thread Reply
Attachment warning.png (5.7 KB)
ktheqvist wrote:
I have the output file defined as same as the input file. I have used this in all my tens of albums.

The jAlbum core provides the attached warning about doing that. This is not an idle warning, and you should pay attention to it. ;)
Laza

Posts: 1,456
Registered: 6-Sep-2005
Re: Error related to Tiger skin has occured
Posted: 29 Jan 25, 15:13   in response to: ktheqvist in response to: ktheqvist
 
  Click to reply to this thread Reply
Man, I can't tell you how bad this practice is. I know the core idea was to spare space. For sure, this technique can spare 0.01% of a 1TB disk, perhaps worth a few hours of fiddling. Anyway, I'm releasing an update soon.
ktheqvist

Posts: 5
Registered: 28-Mar-2013
Re: Error related to Tiger skin has occured
Posted: 29 Jan 25, 16:55   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
I have used Jalbum more than 20 years, since 2004. I have always used the output directory same as the image directory without any problems in the albums. (Sorry, I used wrongly in my previous posting the names "output file" and "input file".)

Several years ago, after an update to Jalbum there came the warning that the directories should not be same. However, it was too late to fix all my previous albums, and also because many skins that I had used did not function anymore with Jalbum.
This annoyed me, but luckily I found that Tiger skin worked perfectly for me, despite the warning.

This is the first time ever that I get a non-working skin with Tiger, and that is on the Ricepaper style after an update to Tiger.
JeffTucker

Posts: 8,056
Registered: 31-Jan-2006
Re: Error related to Tiger skin has occured
Posted: 29 Jan 25, 17:14   in response to: ktheqvist in response to: ktheqvist
 
  Click to reply to this thread Reply
ktheqvist wrote:
This is the first time ever that I get a non-working skin with Tiger, and that is on the Ricepaper style after an update to Tiger.

Even with your dangerous image/output settings, and using Tiger/Ricepaper, I'm not seeing any errors when making an album, so I'm not sure what's going on, there. Perhaps some combination of settings?
Laza

Posts: 1,456
Registered: 6-Sep-2005
Re: Error related to Tiger skin has occured
Posted: 29 Jan 25, 17:17   in response to: ktheqvist in response to: ktheqvist
 
  Click to reply to this thread Reply
Attachment util.js (179.8 KB)
This option was initially used to create master/slave albums. But using it even with simple albums was risky, as the input and output files got mixed this way, making it risky to remove files.

We could add a tool to separate such albums into an input and an output.

I have attached the fixed util.js file you should replace in the skin directory (Ctrl-Shift-S) / lib folder.
JeffTucker

Posts: 8,056
Registered: 31-Jan-2006
Re: Error related to Tiger skin has occured
Posted: 29 Jan 25, 17:22   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Laza wrote:
This option was initially used to create master/slave albums. But using it even with simple albums was risky, as the input and output files got mixed this way, making it risky to remove files.

And if a project includes any videos...

ktheqvist

Posts: 5
Registered: 28-Mar-2013
Re: Error related to Tiger skin has occured
Posted: 29 Jan 25, 18:58   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Thank you!
That helped. Now I could make the album with the Ricepaper style. :)
Merlin2504

Posts: 327
Registered: 25-Jul-2016
Re: Error related to Tiger skin has occured
Posted: 30 Jan 25, 09:26   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Laza wrote:
I have attached the fixed util.js file you should replace in the skin directory (Ctrl-Shift-S) / lib folder.
Laza wrote:

Ich habe diesen Fehler auch.
Habe die Datei ausgetauscht. Der Fehler besteht weiterhin.


2. Ihr schreibt hier noch etwas von Ordner, was falsch sein könnte? Was ist damit gemeint?

Bei mir gibt es schon immer diese Einstellung, wenn das gemeint ist.
Also getrennte Eingangs- und Ausgangsordner.
Ist das so richtig?

Gruß Klaus

Laza

Posts: 1,456
Registered: 6-Sep-2005
Re: Error related to Tiger skin has occured
Posted: 30 Jan 25, 11:38   in response to: Merlin2504 in response to: Merlin2504
 
  Click to reply to this thread Reply
Klaus, I have already updated the skin. I hope that's fine now.
Merlin2504

Posts: 327
Registered: 25-Jul-2016
Re: Error related to Tiger skin has occured
Posted: 30 Jan 25, 19:02   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Danke
Merlin2504

Posts: 327
Registered: 25-Jul-2016
Re: Error related to Tiger skin has occured
Posted: 31 Jan 25, 18:24   in response to: Merlin2504 in response to: Merlin2504
 
  Click to reply to this thread Reply
Bist du schon dazugekommen, den Tooltipp, analog Skin Tiger einzubauen?
Laza

Posts: 1,456
Registered: 6-Sep-2005
Re: Error related to Tiger skin has occured
Posted: 1 Feb 25, 07:07   in response to: Merlin2504 in response to: Merlin2504
 
  Click to reply to this thread Reply
It's not clear what you're asking, but here's what's in the update notes:
Changed:
  • Added search help tooltip for the search box when moved to the Hero area, and made it stay longer (6s) at both places
Legend
Forum admins
Helpful Answer
Correct Answer

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