Forum

Thread tagged as: Problem, Error

Perch 3 map location

Unable to find any address via the map section in perch 3. The submit button (find) has no effects. Is it a known bug ?

DEVAUX Nicolas

DEVAUX Nicolas 0 points

  • 4 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

No, it's not a known bug. Where's your diagnostic report?

Perch: 3.0.5
Production mode: Production (100)
Installed apps: content (3.0.5), assets (3.0.5), categories (3.0.5), perch_blog (5.5.1), perch_forms (1.9)
DB driver: PDO
DB tables: perch3_blog_authors (1), perch3_blog_comments (0), perch3_blog_index (21), perch3_blog_posts (1), perch3_blog_posts_to_tags (0), perch3_blog_sections (1), perch3_blog_tags (0), perch3_blogs (1), perch3_categories (0), perch3_category_counts (0), perch3_category_sets (1), perch3_content_index (281), perch3_content_items (51), perch3_content_regions (9), perch3_menu_items (10), perch3_navigation (0), perch3_navigation_pages (0), perch3_page_templates (0), perch3_pages (4), perch3_resource_log (33), perch3_resource_tags (0), perch3_resources (3), perch3_resources_to_tags (0), perch3_settings (14), perch3_user_passwords (0), perch3_user_privileges (36), perch3_user_role_privileges (2), perch3_user_roles (2), perch3_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = [
      "perch_blog",
    "perch_forms"
    ];
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins:
H1: f652c38c5214b1e9dc472c43a0b5ce7b
L1: f137063c5f5a3e54c72909c0e9b8557c
F1: 0c66c2e1f82f9e0b7617b2cb8270f2c7
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
installedAt: 3.0.4
update_3.0.4: done
latest_version:
on_sale_version: 3.0.5
perch_blog_update: 5.0.1
perch_blog_post_url: /blog/post.php?s={postSlug}
update_3.0.5: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: ######
PERCH_DB_SERVER: #######
PERCH_DB_DATABASE: #######
PERCH_DB_PREFIX: perch3_
PERCH_TZ: Europe/Paris
PERCH_EMAIL_FROM: ######
PERCH_EMAIL_FROM_NAME: #########
PERCH_LOGINPATH: /perch
PERCH_PATH: /Users/nicolasdevaux/Documents/dev/nicodev3/en-cours/ophelie/perch
PERCH_CORE: /Users/nicolasdevaux/Documents/dev/nicodev3/en-cours/ophelie/perch/core
PERCH_RESFILEPATH: /Users/nicolasdevaux/Documents/dev/nicodev3/en-cours/ophelie/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
PERCH_GMAPS_API_KEY: AIzaSyDAOfY1zVWyGTa6cOUovsbY02Q9ub7gJ7s
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_ASSET_VERSION: 224e435c1fb02ad968ab
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /Users/nicolasdevaux/Documents/dev/nicodev3/en-cours/ophelie/perch/templates
PERCH_TEMPLATE_FILTERS:
PERCH_DEFAULT_DOC: index.php
PERCH_DEFAULT_EXT: .php
PERCH_PRODUCTION_MODE: 100
PERCH_XHTML_MARKUP:
PERCH_RWD: 1
PERCH_HTML_ENTITIES:
PERCH_SSL:
PERCH_STRIPSLASHES:
PERCH_PROGRESSIVE_FLUSH: 1
PERCH_PARANOID:
PERCH_FORCE_SECURE_COOKIES:
PERCH_DEFAULT_BUCKET: default
PERCH_TRANSLATION_ASSIST:
PERCH_PASSWORD_MIN_LENGTH: 6
PERCH_MAX_FAILED_LOGINS: 10
PERCH_AUTH_LOCKOUT_DURATION: 1 HOUR
PERCH_VERIFY_UPLOADS:
PERCH_PRIV_ASSIST:
PERCH_CUSTOM_EDITOR_CONFIGS:
PERCH_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: markdown
Hosting settings

PHP: 7.1.1
Zend: 3.1.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.12-dev - 20150407 - $Id: b396954eeb2d1d9ed7902b8bae237b287f21ad9e $
MySQL server: 5.6.35
Free disk space: 276,23 GB
Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, hash, fileinfo, filter, ftp, gd, SPL, iconv, intl, json, ldap, mbstring, session, standard, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysqli, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, apache2handler, imap, gettext, mcrypt, pgsql, pdo_pgsql, imagick, igbinary, memcached
GD: Yes
ImageMagick: Yes
PHP max upload size: 32M
PHP max form post size: 32M
PHP memory limit: 128M
Total max uploadable file size: 32M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
HTTP_COOKIE: PHPSESSID=e06268392bca2d8d00cf1bde9c859ba2; cmsa=1; io=j5pD2JomUr7jN7kyAAB9
HTTP_ACCEPT_LANGUAGE: fr-FR,fr;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2
HTTP_ACCEPT_ENCODING: identity
HTTP_REFERER: //ophelie:3000:3000/perch/core/settings/diagnostics/
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3115.0 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CONNECTION: close
HTTP_HOST: ophelie
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SOFTWARE: Apache
SERVER_NAME: ophelie
SERVER_ADDR: 127.0.0.1
SERVER_PORT: 80
REMOTE_ADDR: 127.0.0.1
DOCUMENT_ROOT: /Users/nicolasdevaux/Documents/dev/nicodev3/en-cours/ophelie
SERVER_ADMIN: you@example.com
SCRIPT_FILENAME: /Users/nicolasdevaux/Documents/dev/nicodev3/en-cours/ophelie/perch/core/settings/diagnostics/index.php
REMOTE_PORT: 53161
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /perch/core/settings/diagnostics/?extended
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1496326300,47
REQUEST_TIME: 1496326300
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you get any messages in your browser console?

yes, a JS error..

GET https://maps.google.com/maps/api/staticmap?key=AIzaSyDAOfY1zVWyGTa6cOUovsbY02Q9ub7gJ7s&center=51.48989293328396,-0.15892349243166182&size=640x360&scale=2&zoom=14&maptype=map&markers=color:red|color:red|51.48941345459401,-0.16204833984375 403 (Forbidden)
Drew McLellan

Drew McLellan 2638 points
Perch Support

Make sure you've enabled static maps for that API key.

Actived static maps API key, no more JS error in console but location is still not found. See https://d.pr/i/DTge7G

Drew McLellan

Drew McLellan 2638 points
Perch Support

It certainly works with the same address for me here.

Ok, figured out what was wrong. Had to activate geocoding API :-)

Maybe the docs should mention it :-)

Thanks