First thing that comes to mind is that the image have no geo meta data.
As on the other topic. The hanging up is releted to the image processing for sure that overloaded your server. Upload fewer images as the time to lower that.
If you have hundreds of images with geo data the album map will create lots of markers and go through all. That can cause some delay.
Also base rule: If you have trouble first thing to do is review the debug log. If there isn't anything review the server PHP log.
It is not doing it everywhere... Only certain albums.
First error I get is:
{2427663:Mon, 08 Mar 2021 23:45:33 GMT}
NOTICE: Trying to access array offset on value of type bool in /var/www/cms.waltrips.com/themes/zpbase/image.php on line 52
include called from include (index.php [130])
from index.php [56]
{2427663:Mon, 08 Mar 2021 23:45:33 GMT}
NOTICE: Trying to access array offset on value of type bool in /var/www/cms.waltrips.com/themes/zpbase/image.php on line 52
include called from include (index.php [130])
from index.php [56]
{2427663:Mon, 08 Mar 2021 23:45:34 GMT}
NOTICE: Trying to access array offset on value of type null in /var/www/cms.waltrips.com/zp-core/zp-extensions/openstreetmap.php on line 772
openStreetMap->printMap called from printOpenStreetMap (openstreetmap.php [1056])
from include (image.php [80])
from include (index.php [130])
from index.php [56]
{2427663:Mon, 08 Mar 2021 23:45:34 GMT}
NOTICE: Trying to access array offset on value of type null in /var/www/cms.waltrips.com/zp-core/zp-extensions/openstreetmap.php on line 772
openStreetMap->printMap called from printOpenStreetMap (openstreetmap.php [1056])
from include (image.php [80])
from include (index.php [130])
from index.php [56]
from apache log I get:
[Mon Mar 08 18:44:49.125090 2021] [php7:notice] [pid 2427662] [client 192.168.1.104:59772] PHP Notice: Trying to access array offset on value of type bool in /var/www/cms.waltrips.com/themes/zpbase/image.php on line 52, referer: http://cms.waltrips.com/index.php?album=Breksville-Reservation
[Mon Mar 08 18:44:49.125191 2021] [php7:notice] [pid 2427662] [client 192.168.1.104:59772] PHP Notice: Trying to access array offset on value of type bool in /var/www/cms.waltrips.com/themes/zpbase/image.php on line 52, referer: http://cms.waltrips.com/index.php?album=Breksville-Reservation
[Mon Mar 08 18:44:49.207715 2021] [php7:notice] [pid 2427662] [client 192.168.1.104:59772] PHP Notice: Trying to access array offset on value of type null in /var/www/cms.waltrips.com/zp-core/zp-extensions/openstreetmap.php on line 772, referer: http://cms.waltrips.com/index.php?album=Breksville-Reservation
[Mon Mar 08 18:44:49.207879 2021] [php7:notice] [pid 2427662] [client 192.168.1.104:59772] PHP Notice: Trying to access array offset on value of type null in /var/www/cms.waltrips.com/zp-core/zp-extensions/openstreetmap.php on line 772, referer: http://cms.waltrips.com/index.php?album=Breksville-Reservation
[Mon Mar 08 18:45:33.880223 2021] [php7:notice] [pid 2427663] [client 192.168.1.104:59792] PHP Notice: Trying to access array offset on value of type bool in /var/www/cms.waltrips.com/themes/zpbase/image.php on line 52, referer: http://cms.waltrips.com/index.php?album=Breksville-Reservation
[Mon Mar 08 18:45:33.880334 2021] [php7:notice] [pid 2427663] [client 192.168.1.104:59792] PHP Notice: Trying to access array offset on value of type bool in /var/www/cms.waltrips.com/themes/zpbase/image.php on line 52, referer: http://cms.waltrips.com/index.php?album=Breksville-Reservation
[Mon Mar 08 18:45:34.004687 2021] [php7:notice] [pid 2427663] [client 192.168.1.104:59792] PHP Notice: Trying to access array offset on value of type null in /var/www/cms.waltrips.com/zp-core/zp-extensions/openstreetmap.php on line 772, referer: http://cms.waltrips.com/index.php?album=Breksville-Reservation
[Mon Mar 08 18:45:34.004826 2021] [php7:notice] [pid 2427663] [client 192.168.1.104:59792] PHP Notice: Trying to access array offset on value of type null in /var/www/cms.waltrips.com/zp-core/zp-extensions/openstreetmap.php on line 772, referer: http://cms.waltrips.com/index.php?album=Breksville-Reservation
I think I have found something?
I did some analysis on the photos...
The camera has GPS and is supposed to write it to the photo.
Many pics have GPS info, and it looks like those display. However, some have a '0' value for latitude and longtitude... those do not display, but there is a blank square where it would go.
When I compare to the pictures from camera without GPS, there is no blank box.
My guess is that if openstreetmaps see GPS defined, it trys to use the data with no validation. If it is not defined, it does not try
Bug?
The Apache logs have the same info as the zenphoto logs. The first two errors are a problem with zpbase and/or the multiple_layout plugin. The logs do not provide enough information to say what exactly is the problem. Best guess is that there is no album layout for the album and the theme does not correctly deal with that case.
The openstreetmap error is likely a problem with the image geocoordinates. The line number indicated does not match up with any possible array indexing in the released version of openstreetmap, so are you running current releases? have you made any modifications?
What is line 772 in openstreatmap.php?
I backed I out of any changed i made... this is straight up zpbase. Just dowbloaded lated zpbase from git. ZP is 1.57
The blank block on the images in the album is for photos that should have gps info but do not (maybe GPS was inaccessible).
Oldee photos with no gps info at all dont have this issue.
I will test more comparing old photo exif with tje new photos.
I will also find out what is on the line you asked about.
My suspiscion is that the openstreetmap needa a little more checking. It deternines that the pic has gps data but cannot deal when the data is bad
We will look at hte two lines. A constant problem with EXIF etc data was in the past that not all cameras follow the same "standard" as this is not a "fixed" standard for some reason. Perhaps we might require one of the images to reproduce the issue.
zpBase is not actively maintained or extened, we just look to fix bugs if they surface.
Btw, you should also always try the master from GitHub (not on a production site) to see if issue meanwhile have been fixed. Surely not in this case but in general.
do you mean zp_openstreetmap
There is no zp_openstreetmap. The plugin is named openstreepmap.php.
zpbase did not flix the blank openstretmap issue
I didn't fix anything for zpBase regarding OSM as there is nothing to fix with the theme. I did (hopefully) fix the layout notice you posted above.
Looking at the exif data, on the pictures. I the ones that display withthe blank panel below the image are missing there GPS info. the ones with GPS info display just fine. My fguess is that we were walking in gullys and ravines and there was no cell or GPS connection.
However the theme or OpenStreetMap is determining that there should be GPS data is where I think the issue probably is. It is deciding that there should be GPS data, and then barfs when the data is no good (null, etc).
My albums with Nikon D60 on same gallery work just fine. No GPS data in the pictures, and no openstreemap stiff shows up at all
Do I need to download the ZP_OpenStreetmap? is that what you means by OSM? (there is a bunch of stuff under "OSM" by that name"
A plugin like this consists of a file and optionally a folder of the same name. That Is the plugin.
https://www.zenphoto.org/news/using-plugins-and-third-party-features/
The fixed plugin does determine if there is gps data and it also checks if the center property is empty.
Unless you can tell what values trigger the issue here I cannot really help.
The theme has nothing to do with this.