Piwigo / piwigo-openstreetmap

OpenStreetMap integration for Piwigo
http://piwigo.org/ext/extension_view.php?eid=701
GNU General Public License v3.0
35 stars 35 forks source link

Map not loading in admin_photo.php #174

Open HRN65 opened 4 years ago

HRN65 commented 4 years ago

Plugin seems to work fine, except from no map in admin_photo.php:

Mixed Content: The page at '' was loaded over HTTPS, but requested an insecure stylesheet ''. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure stylesheet 'http://mysite.com/photo/plugins/piwigo-openstreetmap/fontello/css/osm.css'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure stylesheet 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/leaflet.css'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure stylesheet 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/leaflet-search.min.css'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure stylesheet 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/Leaflet.EditInOSM.css'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure stylesheet 'http://mysite.com/photo/plugins/piwigo-openstreetmap/fontello/css/osm.css'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure stylesheet 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/leaflet.css'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure stylesheet 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/leaflet-search.min.css'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure stylesheet 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/Leaflet.EditInOSM.css'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure script 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/leaflet.js'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure script 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/leaflet-search.min.js'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure script 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/leaflet-providers.js'. This request has been blocked; the content must be served over HTTPS.

Mixed Content: The page at 'https://mysite.com/photo/admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881' was loaded over HTTPS, but requested an insecure script 'http://mysite.com/photo/plugins/piwigo-openstreetmap/leaflet/Leaflet.EditInOSM.js'. This request has been blocked; the content must be served over HTTPS.

Uncaught ReferenceError: L is not defined at admin.php?page=plugin&section=piwigo-openstreetmap/admin/admin_photo.php&image_id=881:236

Thanks for any advice

HRN65 commented 4 years ago

Fixed by replacing line 180 in admin_photo.php with: 'OSM_PATH' => embellish_url(get_gallery_home_url().OSM_PATH),