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


Permlink Replies: 6 - Pages: 1 - Last Post: 22 Jan 26, 22:11 Last Post By: JeffTucker Threads: [ Previous | Next ]
PaphosLife

Posts: 4
Registered: 21-Jan-2026
Problem creating a new skin based on PhotoBlogger
Posted: 22 Jan 26, 17:31
 
  Click to reply to this thread Reply
Hi, I have just bought a copy of jAlbum and find it very nice to use. I wanted to add password protection via .php to the PhotoBlogger output. I realise I will have to change the output files from index.html to index.php and generate copy of the PhotoBlogger skin to work on.

However, if I create new skin using PhotoBlogger as a base, then try to apply it to my gallery without any modifications, I get the following error. Please advise!

An unexpected error occurred. Please see detailed description below:
 
java.lang.RuntimeException: java.lang.ClassNotFoundException: paphos.ConstrainRatioFilter
	at org.openjdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:523)
	at org.openjdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:415)
	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.AlbumBean.processExpression(AlbumBean.java:3586)
	at se.datadosen.jalbum.AlbumBean.processScript(AlbumBean.java:3508)
	at se.datadosen.jalbum.AlbumBean.prepareMakeAlbum(AlbumBean.java:4190)
	at se.datadosen.jalbum.AlbumBean.prepareMakeAlbum(AlbumBean.java:4022)
	at se.datadosen.jalbum.AlbumBean.makeAlbum(AlbumBean.java:3816)
	at se.datadosen.jalbum.AlbumBean.smartMakeAlbum(AlbumBean.java:3739)
	at se.datadosen.jalbum.JAlbumFrame$7.run(JAlbumFrame.java:1217)
Caused by: java.lang.ClassNotFoundException: paphos.ConstrainRatioFilter
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.Class.forName0(Native Method)
	at java.base/java.lang.Class.forName(Unknown Source)
	at java.base/java.lang.Class.forName(Unknown Source)
	at org.openjdk.nashorn.internal.runtime.Context.findClass(Context.java:1020)
	at org.openjdk.nashorn.internal.objects.NativeJava.simpleType(NativeJava.java:543)
	at org.openjdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:325)
	at org.openjdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:317)
	at org.openjdk.nashorn.internal.objects.NativeJava.type(NativeJava.java:313)
	at org.openjdk.nashorn.internal.scripts.Script$2315$init.:program(C:\Users\User\AppData\Roaming\JAlbum\skins\Paphos\init.js:18)
	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)
	... 10 more
 
 
JeffTucker

Posts: 8,199
Registered: 31-Jan-2006
Re: Problem creating a new skin based on PhotoBlogger
Posted: 22 Jan 26, 18:32   in response to: PaphosLife in response to: PaphosLife
 
  Click to reply to this thread Reply
Not sure about the error you're running into, but it doesn't surprise me - a lot of skins contain code that points to skin classes and methods by name, so if you're now using a skin with a different name, various resources can't be found.

But you may not need to go to this extreme. You can change the file extension on the output under Settings > Advanced > Naming, so the PHP is taken care of.

And most skins have a place to insert your own custom code on the pages. In PhotoBlogger, for example, take a look at PhotoBlogger > Advanced > Custom code > <HEAD> and JavaScript.
PaphosLife

Posts: 4
Registered: 21-Jan-2026
Re: Problem creating a new skin based on PhotoBlogger
Posted: 22 Jan 26, 18:48   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Hi,

I did consider that but the software gave me a warning that it would all be overwritten next time I created the album. Can I just ignore that then?

Thanks for the prompt reply.
JeffTucker

Posts: 8,199
Registered: 31-Jan-2006
Re: Problem creating a new skin based on PhotoBlogger
Posted: 22 Jan 26, 18:50   in response to: PaphosLife in response to: PaphosLife
 
  Click to reply to this thread Reply
PaphosLife wrote:
I did consider that but the software gave me a warning that it would all be overwritten next time I created the album. Can I just ignore that then?

Custom code entered on the panel I pointed to is saved with the project. It is not overwritten when a new version of the skin is installed.

If you manually edit the skin template files, on the other hand, that kind of customization will, indeed, be wiped out.

I'm just suggesting that you may not need to do that.
PaphosLife

Posts: 4
Registered: 21-Jan-2026
Re: Problem creating a new skin based on PhotoBlogger
Posted: 22 Jan 26, 19:24   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
Well the least I can do is try it your way with some minimal extra lines of php and see if they survive an album update.
PaphosLife

Posts: 4
Registered: 21-Jan-2026
Re: Problem creating a new skin based on PhotoBlogger
Posted: 22 Jan 26, 21:57   in response to: PaphosLife in response to: PaphosLife
 
  Click to reply to this thread Reply
Ah I looked at that, and it only lets me add HTML. I need to be able to add php code.
JeffTucker

Posts: 8,199
Registered: 31-Jan-2006
Re: Problem creating a new skin based on PhotoBlogger
Posted: 22 Jan 26, 22:11   in response to: PaphosLife in response to: PaphosLife
 
  Click to reply to this thread Reply
It takes whatever code you enter, and inserts it into the finished album pages. It doesn't try to "interpret" the code. You could even enter "Lorem Ipsum" text there, and it would plant it in the <head> section of the page.
Legend
Forum admins
Helpful Answer
Correct Answer

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