This question is answered.


Permlink Replies: 4 - Pages: 1 - Last Post: 5 Aug 22, 09:22 Last Post By: ReBaFoto Threads: [ Previous | Next ]
ReBaFoto

Posts: 11
Registered: 10-May-2005
Strange new error
Posted: 4 Aug 22, 14:12
 
  Click to reply to this thread Reply
Until yesterday everything worked very well. But today it stops working when I want to make the album. I reinstalled the skin without success. I reinstalled jAlbum, again without success.

Here's the report:
Stack trace for jAlbum 28.1.5 using skin Story 2.18.2:

se.datadosen.util.ScriptException: <eval>:149 ReferenceError: "pageHook" is not defined in page-header.inc at line number 1
at se.datadosen.util.ScriptException.of(ScriptException.java:59)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.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.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:1652)
at se.datadosen.jalbum.AlbumBean.processTemplateFile(AlbumBean.java:1645)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:1903)
at se.datadosen.jalbum.AlbumBean.makeAlbumForFolder(AlbumBean.java:2009)
at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3262)
at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3154)
at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1170)
Caused by: javax.script.ScriptException: ReferenceError: "pageHook" is not defined in <eval> at line number 149
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.throwAsScriptException(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.api.scripting.NashornScriptEngine$3.eval(Unknown Source)
at java.scripting/javax.script.CompiledScript.eval(Unknown Source)
at se.datadosen.jalbum.ast.ScriptletNode.doEval(ScriptletNode.java:60)
... 14 more
Caused by: <eval>:149 ReferenceError: "pageHook" is not defined
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.error(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.referenceError(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ECMAErrors.referenceError(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.objects.Global.__noSuchProperty__(Unknown Source)
at jdk.scripting.nashorn.scripts/jdk.nashorn.internal.scripts.Script$115$\^eval\_.:program(<eval>:149)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptFunction.invoke(Unknown Source)
at jdk.scripting.nashorn/jdk.nashorn.internal.runtime.ScriptRuntime.apply(Unknown Source)
... 18 more

BTW, I used the Story version 2.12 until yesterday because I like it better than 2.18.2. But it doesen't work with either of these anymore.

I did not change anything on my computer.

Could you please help me to fix this? Thanks in advance!
Reto
ReBaFoto

Posts: 11
Registered: 10-May-2005
Re: Strange new error
Posted: 4 Aug 22, 15:09   in response to: ReBaFoto in response to: ReBaFoto
 
  Click to reply to this thread Reply
The last folder I added yesterday caused the problem. Something in it was apparently corrupted. After deleting this folder, everything works properly again. So I will rebuild this folder from scratch. Thank you, you can ignoire this error report.

Cheers,
Reto
JeffTucker

Posts: 8,324
Registered: 31-Jan-2006
Re: Strange new error
Posted: 4 Aug 22, 15:11   in response to: ReBaFoto in response to: ReBaFoto
Helpful
  Click to reply to this thread Reply
I was just about to suggest something like that. I built a test album, using your settings, and had no problems, so it had to be something that was recently added. Post back if you encounter it again - the skin might need to do some error-checking to avoid whatever the problem was.
Laza

Posts: 2,061
Registered: 6-Sep-2005
Re: Strange new error
Posted: 5 Aug 22, 08:22   in response to: ReBaFoto in response to: ReBaFoto
Correct
  Click to reply to this thread Reply
pageHook is assigned to every custom page, based on their original names. E.g. if you rename Contact.htt to something else, the pageHook should still remain "contact" in order for the proper CSS rules can be associated.
ReBaFoto

Posts: 11
Registered: 10-May-2005
Re: Strange new error
Posted: 5 Aug 22, 09:22   in response to: ReBaFoto in response to: ReBaFoto
 
  Click to reply to this thread Reply
Thank you, Jeff and Laza!
Legend
Forum admins
Helpful Answer
Correct Answer

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