Hello,
I have just installed zenphoto and I would like start using it.
The problem is that I want to upload tiff files.
Best Regards.
MyAGzenphoto
Enable the class-anyfile plugin and allow the related suffix. Additionally the class-webdocs plugin also supports tiffs.
Note: Zenphoto does only support proper web image files which are generally jpg, gif and png only. So you will need a so called sidecar file (search for "video thumb" on the user guide) in that format accompaning those tiff files if using above plugns
If your server has Imagick installed for image processing you might maybe be able to use tiffs, too. But note that browser might not be able to display them at all. So the any-file way is the best.
Hello,
Thanks for your answer.
How can I Enable the class-anyfile. which config file do I have to edit ?
Best Regards.
MyAGzenphoto
Hello,
Thanks for your answer.
Do you mean class-anyfile is a plugin.
How to install it ?
where can I download it ?
Best Regards.
MyAGzenphoto
Again, there is a backend where you can enabe plugins.This plugin is officially included which you can see on our site's plugin's section.
Each plugin on the backend has an info button which generally gives rough instructions how to use it. This is a plugin you just need to enable, on others you may have to edit the theme used to use its functions. This is also documented on the user guide.
Please take some time to read on the user guide and get a bit familiar with Zenphoto in general
Hello,
I agree with you, I will start reading the user guide.
About the backend, I guess you can access it at the following URL:
"http://zenphoto.private.vki.eu/zenphoto/zp-core/admin.php"
I could access it till yesterday but what happens now ,is that I get the login prompt and I give zenphotouser as the user
then the Password is filled by firefox because I have saved it during my first connexion. Although, all I get is a blank page
I thing I have to initialize the password. How can I do it ?
Best Regards.
MyAGzenphoto
If you get a blank page you need to review your server PHP error log. It can be lots of things.
If you need to reset your password and nothing is working or you didn't set a mail adress, you need to delete in the database. Please also review the user guide on this.
Thanks for your fast answer.
I am going to check the PHP error logs. Maybe I will learn what the problem is from the logs.
Hello,
From now, I can finally load tiff files.
I could enable the class-anyfile on the backend.
Thanks a lot for your advices.
Best Regards.
MyAGzenphoto
Hello,
Still problems with tiff files.
Now, when I browse I can see the tiff files in the list but when I click on upload, I get the following message:
Upload Error
You have attempted to upload one or more files which are not Zenphoto supported file types
Best Regards.
MyAGzenphoto
Hello,
I have checked the any-file plugin and it is configured correctly.
Here is my log file:
{1221:Mon, 23 Oct 2017 11:15:46 GMT} Zenphoto v1.4.11[26c78176cfb8d752e9e7bda4e65d69fc84b714a3]
NOTICE: Trying to get property of non-object in /var/www/html/zenphoto/zp-core/admin-globals.php on line 36
require_once called from admin-plugins.php [9]
{1224:Mon, 23 Oct 2017 11:45:01 GMT}
NOTICE: Undefined variable: stats_albums in /var/www/html/zenphoto/zp-core/utilities/gallery_statistics.php on line 231
printBarGraph called from gallery_statistics.php [646]
{1224:Mon, 23 Oct 2017 11:45:01 GMT}
WARNING: Invalid argument supplied for foreach() in /var/www/html/zenphoto/zp-core/utilities/gallery_statistics.php on line 268
printBarGraph called from gallery_statistics.php [646]
{1220:Mon, 23 Oct 2017 11:45:31 GMT}
NOTICE: Trying to get property of non-object in /var/www/html/zenphoto/zp-core/admin-globals.php on line 36
require_once called from admin-plugins.php [9]
{1082:Mon, 23 Oct 2017 14:24:26 GMT}
WARNING: require_once(/var/www/html/zenphoto/zp-core/../../zp-core/classes.php): failed to open stream: No such file or directory in /var/www/html/zenphoto/zp-core/lib-auth.php on line 44
require_once called from require_once (lib-auth.php [44])
from require_once (auth_zp.php [14])
from require_once (load_objectClasses.php [42])
from require_once (functions.php [33])
from require_once (admin-functions.php [8])
from require_once (admin-globals.php [15])
from admin.php [11]
{1083:Mon, 23 Oct 2017 14:26:04 GMT}
WARNING: require_once(/var/www/html/zenphoto/zp-core/../../zp-core/classes.php): failed to open stream: No such file or directory in /var/www/html/zenphoto/zp-core/lib-auth.php on line 44
require_once called from require_once (lib-auth.php [44])
from require_once (auth_zp.php [14])
from require_once (load_objectClasses.php [42])
from require_once (functions.php [33])
from require_once (admin-functions.php [8])
from require_once (admin-globals.php [15])
from admin.php [11]
{1085:Mon, 23 Oct 2017 14:26:18 GMT}
WARNING: require_once(/var/www/html/zenphoto/zp-core/../../zp-core/classes.php): failed to open stream: No such file or directory in /var/www/html/zenphoto/zp-core/lib-auth.php on line 44
require_once called from require_once (lib-auth.php [44])
from require_once (auth_zp.php [14])
from require_once (load_objectClasses.php [42])
from require_once (functions.php [33])
from require_once (admin-functions.php [8])
from require_once (admin-globals.php [15])
from admin.php [11]
{1093:Wed, 25 Oct 2017 08:21:55 GMT}
NOTICE: Trying to get property of non-object in /var/www/html/zenphoto/zp-core/admin-globals.php on line 36
There are some issues that are from the other 3rd party plugin I think.
That is the Zenphoto log, also review the PHP server error log as that might have things Zenphoto's log doesn't.
I just tried the anyfile class plugin with a .tif and it worked as expected.
Also please upgrade to the current release which is 1.4.14.
Hello,
Do you mean I should upgrade zenphoto or the ZenLdapLogin plugin ?
My current version is: Zenphoto version 1.4.11
Best Regards.
MyAGzenphoto
Hello,
How can I upgrade from the backend ?
Best Regards.
MyAGzenphoto
Hello,
I have just upgaded to zenphoto-1.4.14 and I could enable the class-anyfile on the backend. Again the same error message.
Here is whatis happening in the log file:
{1395:Mon, 30 Oct 2017 15:23:58 GMT} Zenphoto v1.4.14[f5b47da52feacae4e5e081b977e60ee0b2fe1bc5]
WARNING: file_put_contents(/var/www/html/zenphoto/robots.txt): failed to open stream: Permission denied in /var/www/html/zenphoto/zp-core/setup/index.php on line 1550
file_put_contents called from index.php [1550]
{1395:Mon, 30 Oct 2017 15:23:58 GMT}
WARNING: fileperms(): stat failed for /var/www/html/zenphoto/cache_html/ in /var/www/html/zenphoto/zp-core/setup/setup-functions.php on line 214
fileperms called from folderCheck (setup-functions.php [214])
from index.php [1595]
{1395:Mon, 30 Oct 2017 15:25:41 GMT}
WARNING: file_put_contents(/var/www/html/zenphoto/robots.txt): failed to open stream: Permission denied in /var/www/html/zenphoto/zp-core/setup/index.php on line 1550
file_put_contents called from index.php [1550]
{1492:Mon, 30 Oct 2017 15:27:24 GMT}
WARNING: file_put_contents(/var/www/html/zenphoto/robots.txt): failed to open stream: Permission denied in /var/www/html/zenphoto/zp-core/setup/index.php on line 1550
file_put_contents called from index.php [1550]
{1498:Mon, 30 Oct 2017 15:28:00 GMT}
WARNING: file_put_contents(/var/www/html/zenphoto/robots.txt): failed to open stream: Permission denied in /var/www/html/zenphoto/zp-core/setup/index.php on line 1550
file_put_contents called from index.php [1550]
{1497:Mon, 30 Oct 2017 15:30:45 GMT}
WARNING: file_put_contents(/var/www/html/zenphoto/robots.txt): failed to open stream: Permission denied in /var/www/html/zenphoto/zp-core/setup/index.php on line 1550
file_put_contents called from index.php [1550]
{1499:Mon, 30 Oct 2017 15:32:05 GMT}
WARNING: file_put_contents(/var/www/html/zenphoto/robots.txt): failed to open stream: Permission denied in /var/www/html/zenphoto/zp-core/setup/index.php on line 1550
file_put_contents called from index.php [1550]
It's not the same error. This means that file/folder permissions are not set correctly so they could not be set correclty when running setup.
You will have to do this manually. Please see here: http://www.zenphoto.org/news/permissions-for-zenphoto-files-and-folders/