I've gone thru various testing and that is one of them.. this is the error i get on that path.
Fatal error: main() [function.require]: Failed opening required 'gallery/zp-core/template-functions.php' (include_path='.:/usr/lib/php') in /homepages/10/xxxxxx/htdocs/xxxx/test/index2.php on line 10
i've also tried the full server path to folder, and the domain base path .. all without results.
what does '(include_path='.:/usr/lib/php')' mean??
yet the gallery functions perfectly from the gallery install folder.
i'm trying to use the function on other pages in my site that are not in the zenphoto folder.
continuing to try different paths..
with:
define('WEBPATH', '../gallery');
i get:
Warning: Cannot modify header information - headers already sent by (output started at /homepages/10/xxxxxx/htdocs/xxxx/test/index2.php:6) in /homepages/10/xxxxxx/htdocs/xxxx/gallery/zp-core/functions.php on line 1561
Zenphoto Error
MySQL Query ( SELECT zp_images.filename,zp_images.title, zp_albums.folder, zp_images.show, zp_albums.show, zp_albums.password FROM zp_images INNER JOIN zp_albums ON zp_images.albumid = zp_albums.id WHERE zp_albums.folder!="" AND zp_albums.show=1 AND zp_images.show=1 ORDER BY RAND() LIMIT 1 ) Failed. Error: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'show, zp_albums.show, zp_albums.password FROM zp_images I
so far these are not working:
define('WEBPATH', 'gallery');
define('WEBPATH', 'http://mysite.com/gallery');
define('WEBPATH', '../gallery');
define('WEBPATH', '/homepages/10/xxxxxx/htdocs/xxxx/gallery/');
thank you
within the zp-config.php it's got the place for path overrides... i have them commented out(i've also tried with them filled in)
.. but this is the 'folder structure' of the site:
zenphoto folder is in http://mysite.com/gallery
the 'SERVERPATH' to it is /homepages/13/d101687662/htdocs/mysite/gallery
i'm trying to do a test in a folder called 'test' that sit at the root
so that would be http://mysite.com/test
in this folder i have the basic 'plug-in' code in an index.php file that only has the copy and pasted code for using zenphoto as a plugin (this is the 1st post of this topic)
i've tried all of the
define('WEBPATH', 'gallery');
that i could think of ... as listed just above.
i think that all of the information on it.
ok.. just tried a test at the root level of the site with .htaccess disabled and still got an error.
Fatal error: main() [function.require]: Failed opening required '/gallery/zp-core/template-functions.php' (include_path='.:/usr/lib/php') in /homepages/13/d101687662/htdocs/mysite/index3.php on line 11
yes, thank you..
as shown in the above posts:
define('WEBPATH', 'gallery');
and
define('WEBPATH', 'http://mysite.org/gallery');
means that 'zenphoto' is a subfolder of the mainsite renamed to 'gallery'
i would be willing to offer FTP access to the zenphoto dev team to work out this fix. i run a Managed 1&1 Dedicated Server that has given me no problems with any installs including: Joomla(and all of its components,modules,plugins), Wordpress (+plugins), phpCalendar and so on. i think it would be worthwhile for this to be solid and working trouble-free for the future of Zenphoto users. i have posted all of my code and i am a developer too - so by all means this 'zen as plugin' should be working by now if it was bug-free.
Actually that is what I meant, sorry, I didn't notice that detail being confused by the test folder you refered to.
One thing you could try is setting path overrides at the bottom of your zp-config.php file. Some servers need that to run Zenphoto successfully.
You are having some kind of pathing problem on your server. I don't really have any idea why they are not working, though. Zenphoto as a plugin does work. You can see an example here: http://testalbum-2.sbillard.org/.
This case has the calling index.php in the root folder and zenpoto install in the /zenphoto folder. Here is the PHP:
`
Test Index
cool. i did try the zp-config paths very early on - before even writing into this forum, because i knew it was a pathing issue .. but i had no luck.
thanks for the above example!
i am still getting errors but i've taken out enough to be error free and display the images/titles/links.
this is my code now (error free):
`
TEST
OK. will do.
i am interested in the same thing as:
http://www.zenphoto.org/support/topic.php?id=2165&replies=4#post-12797
which is displaying the getImageStatistic on only a certain album and not the entire gallery. has that been implemented into the current nightly build?
acrylian has stated in the topic that it would be, but there is no definite follow up that says it has been.
i just upgraded to the nightly build: zenphoto-2008-05-11-trunk.tar.gz
path to ablum + Warning Division by zero in +server path stuff... and that error remains on all instances of that link on other pages.........................
this is in the normal gallery - not the 'zen as plugin'
the normal gallery was working 100% fine before the upgrade to the nightly build.
i am posting now to the bug tracker.
image statistic: Yes, that feature is already there. The doc (nightly version) is actually directly in the sidebar when you open the main doc page. It's combined as a plugin with album statistic, because of that you might have missed it: http://www.zenphoto.org/documentation/zenphoto/_plugins---image_album_statistics.php.html
You have a really weird server...:-( I have neither any idea what that causes nor am I able to reproduce it with the latest nightly.
Probably some files are not updated correctly. Did you try disabling mod_rewrite or may I dare to suggest a clean reinstall...?