ZenphotoCMS Forum
Undefined variable with latest nightly - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Undefined variable with latest nightly (/thread-4473.html)



Undefined variable with latest nightly - Rain - 2009-01-14

I updated to the latest nightly and I started getting this error:

Notice: Undefined variable: myimagepage in /zen-installation/themes/default/image.php on line 34

Of the code below, line 34 is the 4th, or if ($myimagepage > 1) {

`

`
This is the code I use to show how many images there are in the album and which image the user is viewing.

How could I avoid the error?




Undefined variable with latest nightly - acrylian - 2009-01-14

Where does that variable $myimagepage come from? You need to define that before usage and I don't see that on your example.

So you are trying to do something like "x of y images"? Why don't you just use echo imageNumber() that gets the number of the current image?




Undefined variable with latest nightly - Rain - 2009-01-14

Haha. You know, I don't know. I thank you again, kind sir