Quantcast
Channel: Zenphoto forum
Viewing all 444 articles
Browse latest View live

"MySQL server has gone away" issue

$
0
0

Hi there...
My Zenphoto site has started throwing the following error...

Fatal error: MySQLi Error: ( SELECT * FROM [prefix]news WHERE date<="2017-12-31 08:59:49" AND show="1" AND expiredate<="2017-12-31 08:59:49" AND expiredate!="0000-00-00 00:00:00" AND expiredate IS NOT NULL ) failed. MySQLi returned the error MySQL server has gone away in /mounted-storage/home117a/sub005/sc62105-HHGW/www/mywebsitename/zp-core/functions-db-MySQLi.php on line 78

I get similar when trying to login to admin.

When i go to mywebsite/zp-core/setup.php I get the message

 You must restore the setup files from the 1.4.12 [c1d7e8900b] release.

What may be the cause and how do I do this?
Many thanks
Mark


Zenphoto's Hash

$
0
0

Hello,
I need to know which hash algorithm uses zenphoto to encrypt passwords (ex. MD5, SHA-1, etc...).
Thanks a lot!

how works custom images order?

$
0
0

hi

in some albums, I set custom images order, and I use random as custom fields.
on some albums, on each refresh I have a new random order but on on some other albums, I have only one random order that remains on each refresh.

the 1st case seems to be for "normal" albums, and the 2nd case seems to be on dynamic albums.

can you explain how works that custom images order, especially on random custom fields?

Embedded Youtube Videos no longer displaying on mobile devices

$
0
0

I have been using the "Basic" theme in conjunction with the "class-textobject" plugin to display videos that are hosted on Youtube. The text files and identically named jpeg thumbnail shots are put in a folder on my server and ZenPhoto has worked well creating an album of YouTube videos that will play embedded, where an image would normally display when clicking on the thumbnail.

I use the following code in a text file which references a YouTube video: <iframe width="560" height="315" src="https://www.youtube.com/embed/sNS-eQjn3WA?list=PLlcsMap1KHlX1ajPlhK8f_DH1ffxXdc-P" frameborder="0" allowfullscreen></iframe>

This has worked fine for a number of years, but now the videos do not play on mobile devices, Android or IOS. Works fine on a PC using Chrome or FF. On mobile I just get the spinning buffering symbol but the YouTube video does not load.

I recently upgraded to an HTTPS server and I am wondering if this introduced the problem. Any one with ideas about what would have broken this?

Dynamic "All images" album

$
0
0

After successfully setting up my zenphoto/zenpage website, I'd like to have a dynamic album that contains all images. A blank album tag, however, does not do the job.

Any suggestions will be greatly appreciated.
Hermann

option "recent images"

$
0
0

Hi,

I would like delete the option "recent image" on zen mobile theme.
When i click on my gallery i want to show directly the gallery, not "recent images".......

Also, how can i do to delete the part Archive ?

Thank you

jb

SRC= to DATA-SRC= converter for lazy loading thumbnails

$
0
0

Hello!
Trying to introduce lazy loading feature on theme's album.php for heavy weighted thumbnails. There are a lot of scripts on the net, helping this approach. Examples: b-lazy responsivelyLazy ...
b-lazy uses following html:

<img class="b-lazy"
         src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="
         data-src="images/image.jpg" 
         alt="alt-text"
    />
responsivelyLazy:
<img class="responsively-lazy"
         src="images/image.jpg
                 srcset="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==" 
         data-srcset="images/400.jpg 400w, images/400.webp 400w, images/600.jpg 600w, images/1000.jpg 1000w"
         alt="alt-text"
    />
Both replacing attribute src with data-src or srcset and data-srcset for lazy needs. How do i use these scripts with ZP functions like printImageThumb()? Here is the example of lazyload converter for WordPress but howto implement it into Zenphoto?

Existing Photo Folder Setup

$
0
0

Hi,

Happy to be re-directed to the appropriate thread, but I really honestly can't find it.

I'm trying to set my existing photos direcctory on my NAS as the zenphoto 'album'.

My directory structure is:

Photo directory = '/volume1/One Drive/SORTED PHOTOS'
Zenphoto directory = /volume1/web/zenphoto

I have tired to change the zenphoto.cfg.php file in zp-data but it gives me a 'Error: The “albums” directory (//volume1/One Drive/SORTED PHOTOS/) cannot be found. message from:

myip/zenphoto/index.php?fromlogout

I'm sure this is simple but I'm struggling - any quick help / redirection is much appreciated.

Thanks a bunch,
Warren


1.4.14: Edits are not stored in DB

$
0
0

Hi @ all.

Recently I installed ZPC on a local machine, running with DebianEdu "Stretch".
The overview information in the backend complains only that "Locale setting has failed", no spam filter and "no mail handler configured".

The problem I am facing is, that I am not able to save edits in the database when e.g.:
I modified
picture titles or descriptions,
album titles or descriptions.
I press "Apply", and Browser says: "Changes applied"
but the earlier filled fields are empty now.

When editing
Options - Gallery - Gallery title or description,
I click "Apply" and the browser says: "Applied", but then the formerly filled fields are empty again.

Any ideas?

Thanks.

quota manager

$
0
0

http://www.zenphoto.org/news/quota_manager/

Is it with this extension possible to adjust the quota for every single group and next to that for every individual user?
The description says: "You can change the quota for individual users on the Admin tab."
But I am not able to find it in ZP1.4.14.

Within the BE I can reach:
Options - Plugin - quota_manager - change options
and there it offers
- Allow ZIP
- default quota.

What do I miss?

General Data Protection Regulation (GDPR, resp. DSGVO)

$
0
0

Are there any features planned regarding GDPR for ZPC?

pre-cache script

$
0
0

hey guys, I just wanted to let you know i've created a zenphoto pre-cache script that will iterate across all gallery images and discover what cached thumbnails and whatnot are missing, and generate them. it is suitable to run in cron once an initial run has been completed. https://github.com/benklop/zenphoto-precache if you want to take a look. so far it seems to work pretty well.

Howto suppress "Display Errors"

$
0
0

In TYPO3 I have the option "how errors are handled" in the browser/frontend.

In the config file I would add following line:
$TYPO3_CONF_VARS['SYS']['displayErrors'] =
and the value: 'what I need';

Where can I adjust this with ZPC?

$conf['security_ack']

$
0
0

What is security_ack?
What is it for?
Can't find any docu about that.

open_basedir restriction in effect. File(/tmp/...) is not within the allowed path(s)

$
0
0

I have following entries in the error.log

[Fri Jan 19 20:10:12 2018] [error] [client myIP] PHP Warning:
filesize() [function.filesize]: open_basedir
restriction in effect. File(/tmp/phpE4uQRA) is not within the allowed path(s):
(/var/www/) in /var/www/www.example.com/zenphoto/zp-core/zp-
extensions/quota_manager.php on line 225, referer:
http://example.com/zenphoto/zp-core/admin-upload.php

[Fri Jan 19 20:10:12 2018] [error] [client myIP] PHP Warning:
move_uploaded_file() [function.move-
uploaded-file
]: open_basedir restriction in effect. File(/tmp/phpE4uQRA)
is not within the allowed path(s): (/var/www/) in
/var/www/www.example.com/zenphoto/zp-core/zp-
extensions/uploader_http/uploader.php on line 97, referer:
http://example.com/zenphoto/zp-core/admin-upload.php

[Fri Jan 19 20:10:12 2018] [error] [client myIP] PHP Warning: Cannot
modify header information - headers already sent by (output started at
/var/www/www.example.com/zenphoto/zp-core/zp-
extensions/quota_manager.php:225) in
/var/www/www.example.com/zenphoto/zp-core/zp-
extensions/uploader_http/uploader.php on line 120, referer:
http://example.com/zenphoto/zp-core/admin-upload.php

Is it possible that you "re-program" ZPC in that way that ZPC does not ask for access outside the webroot.
Like eg. /var/www/www.example.com/zenphoto/tmp/


Subforum for themes and extensions

$
0
0

Would it be possible to create subforums for single themes and extensions?

In this case I would ask for http://www.zenphoto.org/news/new-theme-libratus-/
and that all topics regarding this theme would be available there.

It is currently time consuming to walk with forum search - in order to find articles and topics regarding single themes or extensions.

Better image caching by browsers

$
0
0

I have a custom front end to Zenphoto and am trying to figure out the best way to get browsers and CDNs to permanently cache Zenphoto images.

This is important for me because I use a CDN to distribute the images to countries around the world. Right now the CDN can't cache images for very long at all, and going back to my Zenphoto instance significantly slows down the perceived load times for end users in distant locations. Also, CDNs use HTTP/2, which pipelines all those itty bitty thumbnails through a single HTTP connection, which makes it significantly faster. Most shared hosting services such as the type Zenphoto installations often run on do NOT support HTTP/2.

My Zenphoto web server can't serve the sized Zenphoto images with a far future expires header right now because any image could change at any moment (that's why I use Zenphoto, thanks!)

A common pattern to solve this is to request images using a URL that changes when the actual image changes. For example:

My <img src> URLs currently look like this:
mydomain.com/zenphoto/cache/my_album/my_photo_1024.jpg

I want them to look like this:
mydomain.com/zenphoto/cache/my_album/my_photo_1024.jpg?t=SOME_TIMESTAMP

... where SOME_TIMESTAMP is the timestamp of when the sized image or thumbnail was generated.

I don't see a way to get this through the API... am I missing something? I could go hunt for the file's last modified date on disk, but I'd much rather stay within the Zenphoto framework.

Thanks!

Forum + external scripts/sources

$
0
0

Is it possible to replace external resources - which are currently integrated with the forum - against internal solutions?

It's fantastic that you've replaced GoogleAnalytics with Piwik and that the project is hosted within the EU
http://www.zenphoto.org/news/site-migration-finally-finished/
and it would be also great if you could get rid of googleapsis.com

I wouldn't expect forum users to get nervous if the forum would be a bit slower then... It's super fast anyway.

Album vs. dynamic album

$
0
0

I know what an album is. :)
But I don't understand the approach of an dynamic album.

When and where is it wise to prefer an dynamic album over an real album?

Howto: User-group + sub-album management

$
0
0

Howto set up the user and group rights of following scenario?

Goal is to have user(s) assigned to their "home album" and belonging sub-albums - but they are not allowed to modify the "head-album".
Their "home album" is already a sub or sub-sub album or even deeper of the "head-album".
And these users are allowed to do what ever they wish within their "home album" and sub-albums, but they are not allowed to play in the head album and other any other sub-album of this head album.

Example:
We have "family A" with dad + mum + kid1 + kid2

There is as "head-album" eg

"private_albums"
as sub albums we have

  • "family_album_A"
  • "family_album_B"
  • "family_album_C
    "
    Within "family_album_A" are sub-albums such as

Holiday 1
Holiday 2
Holiday 3

and

kid1
kid2

On the server it would look like
/albums/private_albums/family_album_A/
/albums/private_albums/family_album_A/holiday_1
/albums/private_albums/family_album_A/holiday_2
/albums/private_albums/family_album_A/holiday_3
/albums/private_albums/family_album_A/kid1/
/albums/private_albums/family_album_A/kid2/

both kids must be assigned to their "home albums" only - which is kid1 or kid2
There they must have all rights while they are not allowed to mess around in all other folders.
In the BE - group settings the admin will set image storage quota for them.

The parents must must have an own group where they have access and all rights inside the family home album and subalbums. eg. /albums/private_albums/family_album_A/*
For this group I also need to adjust the quota storage.

And the best would be, that I have general group settings for all families (A, B, C) so if we change the quota there, it has effect on all family parents or family kids.

Hopefully I was able to transport the message :)

Viewing all 444 articles
Browse latest View live




Latest Images