Member
Member
invision   2008-10-01, 18:48
#1

Hi,

I have my WordPress install working sweetly and my ZenPhoto is working great too.
I had a Random Thumbnail working well too, until I moved it to our new server and it's gone a bit mad
It will still display the thumb when I visit the 'test.php' page.
It uses the code:
`

`
but when I include the test.php page in my WP 'header.php' and visit www.testsite.co.uk/zenphoto/, I get errors:

Warning: require_once(/zenphoto/zp-core/template-functions.php) [function.require-once]: failed to open stream: No such file or directory in /home/bla/bla/bla.co.uk/user/htdocs/test.php on line 4

My 'test.php' is in the root, under htdocs
My 'header.php' is under htdocs/wp-content/themes/default
My 'template-functions.php'(which has the printRandomImages function) is under htdocs/zenphoto/zp-core/template-functions.php

What am I doing wrong?

  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.