ZenphotoCMS Forum
Index.php just showing a completely white blank page - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: Themes (https://forum.zenphoto.org/forum-5.html)
+--- Thread: Index.php just showing a completely white blank page (/thread-11655.html)



Index.php just showing a completely white blank page - laingalistair - 23-02-2014

Hi,

Just trying to setup my first theme. I have the following barebones template http://pastebin.com/0VvX9fYH. All I'm getting is a a white blank page. I've looked in the debug.log and apached error log and nothing seems to suggest an error occur. I also tried copying the index.php example found here http://www.zenphoto.org/news/theming-tutorial and that also returns a blank page.

I do have album.php and image.php in my theme folder.

Am I doing something wrong?




Index.php just showing a completely white blank page - acrylian - 23-02-2014

Well, the theming tutorial index.php cannot directly be used. You should look at the demo plugin on GitHub which is linked at the end of the tutorial. The code examples in the tutorial are less commented than those (we need to replace that sometime soon).

A blank page without an error is hard to help. Can be anything from wrong permissions via wrong htaccess to php fatal errors.




Index.php just showing a completely white blank page - laingalistair - 27-02-2014

Hi Acrylian,

I looked at those files on Git Hub they arent commented at all.

I seem to be having this problem now for all my themes even the default ones. I wondered if it was maybe the permission.

Main theme folder


drwxrwxrwx+ thelaings thelaings 4096 Feb 23 19:13 themes

default theme folder


drwxrwxr-x+ thelaings thelaings 4096 Feb 22 18:55 default

default themes index file


-rw-rw-r--+ thelaings thelaings 2646 Jan 23 23:02 index.php

my custom themes folder (sleekness)


drwxrwxr-x+ thelaings thelaings 4096 Feb 27 20:01 sleekness

My custom themes index file


-rw-rw-r--+ 1 thelaings thelaings 1402 Feb 24 10:57 index.php




Index.php just showing a completely white blank page - acrylian - 27-02-2014

Well, the index.php page not because it is pretty straight forward and the functions are documented on the functions documentation.

Again, we cannot answer if it is permissions without an proper error. Info how they should be at best here: http://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders