Forum

Thread tagged as: Problem, Blog

Slugs Character issues

Hi Guys,

I have noticed a bug today with a site I have just launched in relation to the Blog and Slugs. So the title of the article is
Taiyo Yuden leads with first 470µF high value multilayer capacitors reducing board space

Which generates this slug
/news/2015/11/taiyo-yuden-leads-with-first-470µf-high-value-multilayer-capacitors-reducing-board-space

However, this is throwing a 404 error.

I am thinking it is to do with the µ character? although not tested.

Thanks, Terry

Terry Upton

Terry Upton 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Does the rewrite rule you're using to match the slug accommodate characters in that range? That would cause it not to match.

As for why it's not being stripped in the first place - do you have transliteration functions installed? It should be in your diagnostics report.

My newssug is

'newsslug'          => '[1-2][0-9]{3}\/[0-9]{2}\/[a-z0-9\-]+',

So perhaps not any ideas what I would need to add to include it?

As for the diagnostics;

Transliteration functions: Yes
Perch Runway: 2.8.29
Production mode: Production (100)
Installed apps: content (2.8.29), assets (2.8.29), categories (2.8.29), perch_blog (5.0), collection_1 (2.8.29)
DB driver: PDO
DB tables: perch2_backup_plans (0), perch2_backup_resources (0), perch2_backup_runs (0), perch2_blog_authors (2), perch2_blog_comments (0), perch2_blog_index (2509), perch2_blog_posts (63), perch2_blog_posts_to_tags (147), perch2_blog_sections (1), perch2_blog_tags (138), perch2_blogs (1), perch2_categories (7), perch2_category_counts (6), perch2_category_sets (2), perch2_collection_index (133), perch2_collection_items (26), perch2_collection_revisions (7), perch2_collections (1), perch2_content_index (1487), perch2_content_items (510), perch2_content_regions (63), perch2_navigation (2), perch2_navigation_pages (10), perch2_page_routes (5), perch2_page_templates (15), perch2_pages (21), perch2_resource_log (2411), perch2_resource_tags (95), perch2_resources (1145), perch2_resources_to_tags (190), perch2_settings (24), perch2_user_passwords (0), perch2_user_privileges (36), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (1)
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content',
        'categories',
        'perch_blog'
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: fe1fd9787fc7df941d5d809d5bb84189
L1: f29dff8e361e1df3f96604a257d81ad1
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #fc5d20
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 1
content_collapseList: 0
lang: en-gb
update_2.8.29: done
latest_version: 2.8.15
on_sale_version: 2.8.29
headerScheme: dark
dashboard: 1
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
logoPath: /cms/resources/logo-amasci-perch-orange.png
perch_blog_update: 5.0.1
perch_blog_post_url: /news/{postSlug}
perch_blog_site_name: Dengrove
perch_blog_slug_format: %Y/%m/{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
update_runway_2.8.29: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: root
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: dengrove
PERCH_DB_PREFIX: perch2_
PERCH_SITEPATH: /Users/amasci/Dropbox/Amasci/Websites/Dengrove V3/dengrove.com
PERCH_SCHEDULE_SECRET: yBfnbB84rLUAZiJDErdzNy
PERCH_EMAIL_FROM: info@amasci.co.uk
PERCH_EMAIL_FROM_NAME: Terry Upton
PERCH_LOGINPATH: /cms
PERCH_PATH: /Users/amasci/Dropbox/Amasci/Websites/Dengrove V3/dengrove.com/cms
PERCH_CORE: /Users/amasci/Dropbox/Amasci/Websites/Dengrove V3/dengrove.com/cms/core
PERCH_RESFILEPATH: /Users/amasci/Dropbox/Amasci/Websites/Dengrove V3/dengrove.com/cms/resources
PERCH_RESPATH: /cms/resources
PERCH_TZ: UTC
PERCH_HTML5: 1
PERCH_IMAGE_LIB: imagick
PERCH_RUNWAY: 1
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: /Users/amasci/Dropbox/Amasci/Websites/Dengrove V3/dengrove.com/cms/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.4.42
Zend: 2.4.0
OS: Darwin
SAPI: apache2handler
Safe mode: not detected
MySQL client: mysqlnd 5.0.10 - 20111026 - $Id: c85105d7c6f7d70d609bb4c000257868a40840ab $
MySQL server: 5.5.42
Free disk space: 357.97 GB
Extensions: Core, date, ereg, 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, mysqli, PDO, pdo_mysql, pdo_sqlite, Phar, posix, Reflection, mysql, SimpleXML, soap, sockets, exif, tokenizer, wddx, xml, xmlreader, xmlwriter, xsl, zip, apache2handler, imap, gettext, mcrypt, yaz, pgsql, pdo_pgsql, imagick
GD: Yes
ImageMagick: Yes
PHP max upload size: 132M
PHP max form post size: 500M
PHP memory limit: 500M
Total max uploadable file size: 132M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: Yes
HTTP_HOST: dengrove.loc
HTTP_CONNECTION: keep-alive
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/50.0.2661.102 Safari/537.36
HTTP_REFERER: https://dengrove.loc/cms/core/settings/diagnostics/
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_ACCEPT_LANGUAGE: en-GB,en-US;q=0.8,en;q=0.6
HTTP_COOKIE: cmssb=0; _ga=GA1.2.206461434.1464788941; cmsa=1; PHPSESSID=f76e11a7236ef53a5f141b3131478b0b
PATH: /usr/bin:/bin:/usr/sbin:/sbin
SERVER_SOFTWARE: Apache
SERVER_NAME: dengrove.loc
SERVER_ADDR: ::1
SERVER_PORT: 80
REMOTE_ADDR: ::1
DOCUMENT_ROOT: /Users/amasci/Dropbox/Amasci/Websites/Dengrove V3/dengrove.com
SERVER_ADMIN: you@example.com
SCRIPT_FILENAME: /Users/amasci/Dropbox/Amasci/Websites/Dengrove V3/dengrove.com/cms/core/settings/diagnostics/index.php
REMOTE_PORT: 53548
GATEWAY_INTERFACE: CGI/1.1
SERVER_PROTOCOL: HTTP/1.1
REQUEST_METHOD: GET
QUERY_STRING: extended
REQUEST_URI: /cms/core/settings/diagnostics/?extended
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
PHP_SELF: /cms/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1464797134.39
REQUEST_TIME: 1464797134
argc: 1
Drew McLellan

Drew McLellan 2638 points
Perch Support

Oh it's Runway, cool.

a-z won't match µ as it's not in the range. If you replace the a-z with \w ('word' character) does that help?

Afraid not :-(

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok, let me run some tests and see what I can come up with.

Thanks Drew.