I've deleted the old zenphoto (files and database) and intalled the newest one.
outside zenphoto I have printlatestimages function and because of that:
<?
define('WEBPATH', './galeria2');
require_once(WEBPATH . "/zp-core/template-functions.php");
require_once(WEBPATH . "/zp-core/zp-extensions/image_album_statistics.php");
?>
and it shows error (outsied zenphoto):
Zenphoto has detected a change in your installation.
Zenphoto 1.4.3.4[10988] has been copied over an unknown release.
Please reinstall the following setup files from the 1.4.3.4 [10988] release:
zp-core/setup.php
zp-core/setup/setup-functions.php
zp-core/setup/setup-option-defaults.php
zp-core/setup/setup-primitive.php
zp-core/setup/setup-sqlform.php
zp-core/setup/setup.css
zp-core/setup/setup_permissions_changer.php
zp-core/setup/setup_set-mod_rewrite.php
zp-core/setup/setup_themeOptions.php
The change detected is critical. You must run setup for your site to function.
Comments
So just do what the message tells you.
define('WEBPATH', './galeria2');
require_once(WEBPATH . "/zp-core/template-functions.php");
require_once(WEBPATH . "/zp-core/zp-extensions/image_album_statistics.php");
there is this error about different version
http://www.zenphoto.org/news/zenphoto-as-a-plug-in-using-zenphoto-functions-from-outside-zenphoto