Forum

Thread tagged as: Problem, Field-Types

Static Map loading, not being replaced by dynamic (draggable) map

I have a fresh perch install and am using the Perch public_maps.js file (not overriding it). I have used the standard map field and succesfully set up a Google API Key. No console errors thrown when loading the page with the map on.

The static map loads, but not the nice draggable dynamic map.

Any tips? Thanks!

Perch: 2.8.32, PHP: 5.6.15-1+deb.sury.org~trusty+1, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $, with PDO
Server OS: Linux, fpm-fcgi
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32)
App runtimes: <?php $apps_list = array( 'content', 'categories', );
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/vagrant/Sites/Here-Design_Palatino/palatino/public/perch
PERCH_CORE: /home/vagrant/Sites/Here-Design_Palatino/palatino/public/perch/core
PERCH_RESFILEPATH: /home/vagrant/Sites/Here-Design_Palatino/palatino/public/perch/resources
Image manipulation: GD Imagick
PHP limits: Max upload 100M, Max POST 100M, Memory: 512M, Total max file upload: 100M
F1: 2edba60ed1f613d6dd804feb202456a2
Resource folder writeable: Yes
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/
DOCUMENT_ROOT: /home/vagrant/Sites/Here-Design_Palatino/palatino/public
HTTP_HOST: dev.palatino

Adam Menczykowski

Adam Menczykowski 1 points

  • 4 years ago

Extended report:

Perch: 2.8.32
Production mode: Production (100)
Installed apps: content (2.8.32), assets (2.8.32), categories (2.8.32)
DB driver: PDO
DB tables: perch2_categories (0), perch2_category_counts (0), perch2_category_sets (0), perch2_content_index (139), perch2_content_items (29), perch2_content_regions (5), perch2_navigation (0), perch2_navigation_pages (0), perch2_page_templates (1), perch2_pages (2), perch2_resource_log (72), perch2_resource_tags (0), perch2_resources (45), perch2_resources_to_tags (0), perch2_settings (10), perch2_user_passwords (0), perch2_user_privileges (26), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
    );
Editor plug-ins: markitup, redactor
H1: 1247f6d3cd3166c48a59c41f9004c385
L1: e49313bf7238a235e0f3ecb9da8aad0c
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.32: done
latest_version: 2.8.15
on_sale_version: 2.8.32
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: adammenczykowski@gmail.com
PERCH_EMAIL_FROM_NAME: Adam Menczykowski
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/vagrant/Sites/Here-Design_Palatino/palatino/public/perch
PERCH_CORE: /home/vagrant/Sites/Here-Design_Palatino/palatino/public/perch/core
PERCH_RESFILEPATH: /home/vagrant/Sites/Here-Design_Palatino/palatino/public/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_GMAPS_API_KEY: AIzaSyB0-K4EabO1J3223LQblNbfstkPkbmb04k
PERCH_DB_USERNAME: homestead
PERCH_DB_DATABASE: palatino
PERCH_DB_SERVER: localhost
PERCH_RUNWAY:
PERCH_ERROR_MODE: DIE
PERCH_DATE_LONG: %d %B %Y
PERCH_DATE_SHORT: %d %b %Y
PERCH_TIME_SHORT: %H:%M
PERCH_TIME_LONG: %H:%M:%S
PERCH_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/vagrant/Sites/Here-Design_Palatino/palatino/public/perch/templates
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_RWD:
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.6.15-1+deb.sury.org~trusty+1
Zend: 2.6.0
OS: Linux
SAPI: fpm-fcgi
Safe mode: not detected
MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 3c688b6bbc30d36af3ac34fdd4b7b5b787fe5555 $
MySQL server: 5.6.33-0ubuntu0.14.04.1
Free disk space: 3.66 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bcmath, bz2, calendar, ctype, dba, dom, hash, fileinfo, filter, ftp, gettext, SPL, iconv, mbstring, session, posix, Reflection, standard, shmop, SimpleXML, soap, sockets, Phar, exif, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, xmlreader, xmlwriter, zip, cgi-fcgi, mysqlnd, PDO, apcu, curl, gd, gmp, imagick, imap, json, mailparse, mcrypt, memcached, mssql, mysql, mysqli, pdo_dblib, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, readline, sqlite3, blackfire, mhash, apc, Zend OPcache
GD: Yes
ImageMagick: Yes
PHP max upload size: 100M
PHP max form post size: 100M
PHP memory limit: 512M
Total max uploadable file size: 100M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
APP_ENV: local
USER: vagrant
HOME: /home/vagrant
FCGI_ROLE: RESPONDER
QUERY_STRING: extended
REQUEST_METHOD: GET
SCRIPT_FILENAME: /home/vagrant/Sites/Here-Design_Palatino/palatino/public/perch/core/settings/diagnostics/index.php
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/?extended
DOCUMENT_URI: /perch/core/settings/diagnostics/index.php
DOCUMENT_ROOT: /home/vagrant/Sites/Here-Design_Palatino/palatino/public
SERVER_PROTOCOL: HTTP/1.1
GATEWAY_INTERFACE: CGI/1.1
SERVER_SOFTWARE: nginx/1.8.0
REMOTE_ADDR: 192.168.10.10
REMOTE_PORT: 63809
SERVER_ADDR: 192.168.10.12
SERVER_PORT: 80
SERVER_NAME: dev.palatino
REDIRECT_STATUS: 200
HTTP_HOST: dev.palatino
HTTP_CONNECTION: keep-alive
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.143 Safari/537.36
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_REFERER: https://dev.palatino/perch/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_COOKIE: cmsa=1; _ga=GA1.2.939632281.1476856430; PHPSESSID=ndh921iihauen9cjc78rbcsjd1
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1476981603.8902
REQUEST_TIME: 1476981603

Manually running

CMSMap.UI.refresh();

in the console returns:

js?key=AIzaSyB0-K4EabO1J3223LQblNbfstkPkbmb04k:94 Uncaught TypeError: Cannot read property '__e3_' of undefined(…)
_.z.hasListeners @ js?key=AIzaSyB0-K4EabO1J3223LQblNbfstkPkbmb04k:94
_.z.trigger @ js?key=AIzaSyB0-K4EabO1J3223LQblNbfstkPkbmb04k:95
refresh @ map.js:56
(anonymous function) @ VM16215:1

Which is the response from

https://maps.googleapis.com/maps/api/js?key=AIzaSyB0-K4EabO1J3223LQblNbfstkPkbmb04k
Drew McLellan

Drew McLellan 2638 points
Perch Support

That's not the response I'm getting from that URL. Does the problem still persist?

Same issue here, nothing has changed.

Have a look: https://palatino.youi.design/contact/

Drew McLellan

Drew McLellan 2638 points
Perch Support

Looks like your page is referencing /js/map.js and not the Perch map JavaScript.

Does it work with our JavaScript?

No, unfortunately, it doesn't. I was trying it without custom JS until the end of last night, and it didn't work.

I have just adjusted the config.php on that site so that custom JS is removed, to test it.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you try on a test page isolated from other JavaScript?

Sure, thanks I'll give it a try.