We are transitioning over to a new forum platform. Please post new issues there. Existing threads will be dealt with here unless you choose to move them over. Visit the new forum

Forum

Thread tagged as: Problem

Link not being written.

Bit of a weird one this. The link in a textile markitup formatted text block isn't writing out as a link so I'm getting the link text and the link written to the page exactly like this:

“http://www.neilcollinshomes.com/projects.html”:http://www.neilcollinshomes.com/projects.html

My local version works perfectly and is an exact mirror of the live site file wise. Perch is up-to-date.

As an aside, I've done a little experimenting and if I omit the http:// from the link so it's recognised as an internal link it gets written out properly.

When I move the database from my local environment, where everything works perfectly, to the live site it still doesn't get written out properly.

Really confused as it's been working fine.

Any ideas?

Thanks as always,

John.

John Robinson

John Robinson 7 points

  • 4 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

Please can we see:

  • Your Diagnostics Report
  • The template for this content

You should have been asked for these when creating the post as they help us to help you more quickly.

Sure, here's the diagnostics:

Perch: 2.8.13
Production mode: Production (100)
Installed apps: content (2.8.13), assets (2.8.13), categories (2.8.13), perch_blog (4.6), perch_forms (1.8.3)
DB driver: PDO
DB tables: perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users
Users: 1
App runtimes:
<?php
    $apps_list = array(
        'content',
        'perch_blog',
        'perch_forms',
        'categories', 
    );
?>
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Editor plug-ins: markitup
H1: 3132f7ee084c6c5d5b97936e2fbbe074
L1: af2a7060233e73d903b14e9b6637dfba
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.4.9: done
latest_version: 2.8.8
on_sale_version: 2.8.13
headerScheme: light
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 0
content_frontend_edit: 0
logoPath: /perch/resources/1399631464_calibre-metalwork-logo.jpg
update_2.7.10: done
update_2.8.8: done
update_2.8.11: done
perch_blog_update: 5.0
perch_blog_post_url: /latest-news/{postSlug}/
perch_blog_slug_format: %Y-%m-%d-{postTitle}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
perch_blog_comment_notify: 0
update_2.8.12: done
update_2.8.13: done
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: Robinson
PERCH_DB_SERVER: 213.171.200.71
PERCH_DB_DATABASE: Calibremetal
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: john.wilson@calibremetalwork.co.uk
PERCH_EMAIL_FROM_NAME: John Wilson
PERCH_LOGINPATH: /perch
PERCH_PATH: /home/linweb20/c/calibremetalwork.co.uk-1079061855/user/htdocs/perch
PERCH_CORE: /home/linweb20/c/calibremetalwork.co.uk-1079061855/user/htdocs/perch/core
PERCH_RESFILEPATH: /home/linweb20/c/calibremetalwork.co.uk-1079061855/user/htdocs/perch/resources
PERCH_RESPATH: /perch/resources
PERCH_HTML5: 1
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_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /home/linweb20/c/calibremetalwork.co.uk-1079061855/user/htdocs/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_AUTH_PLUGIN:
PERCH_DB_CHARSET: utf8
PERCH_DB_PORT:
PERCH_DB_SOCKET:
PERCH_SESSION_TIMEOUT_MINS: 20
HOSTING SETTINGS

PHP: 5.4.45
Zend: 2.4.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.0.91
MySQL server: 5.1.73-log
Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bz2, calendar, ctype, curl, hash, fileinfo, filter, ftp, gettext, gmp, SPL, iconv, pcntl, session, standard, posix, readline, Reflection, Phar, shmop, SimpleXML, sockets, mbstring, sysvmsg, sysvsem, sysvshm, tokenizer, wddx, xml, cgi-fcgi, bcmath, dba, dom, gd, imap, json, ldap, exif, mcrypt, mssql, mysql, mysqli, odbc, PDO, pdo_dblib, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, pspell, snmp, soap, tidy, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader, Zend Guard Loader
GD: Yes
ImageMagick: No
PHP max upload size: 20M
PHP max form post size: 20M
PHP memory limit: 64M
Total max uploadable file size: 20M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /sbin:/usr/sbin:/bin:/usr/bin
PWD: /var/www/fcgi
PHP_FCGI_MAX_REQUESTS: 100
ORIG_SCRIPT_NAME: /fcgi-bin/php54-cgi
ORIG_PATH_TRANSLATED: /home/linweb20/c/calibremetalwork.co.uk-1079061855/user/htdocs/perch/core/settings/diagnostics/index.php
ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php
ORIG_SCRIPT_FILENAME: /var/www/fcgi/php54-cgi
SCRIPT_NAME: /perch/core/settings/diagnostics/index.php
REQUEST_URI: /perch/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.0
GATEWAY_INTERFACE: CGI/1.1
REDIRECT_URL: /perch/core/settings/diagnostics/index.php
REDIRECT_QUERY_STRING: extended
REMOTE_PORT: 53603
SCRIPT_FILENAME: /home/linweb20/c/calibremetalwork.co.uk-1079061855/user/htdocs/perch/core/settings/diagnostics/index.php
SERVER_ADMIN: root@localhost
DOCUMENT_ROOT: /home/linweb20/c/calibremetalwork.co.uk-1079061855/user/htdocs
REMOTE_ADDR: 88.104.5.102
SERVER_PORT: 80
SERVER_ADDR: 127.0.0.1
SERVER_NAME: www.calibremetalwork.co.uk
SERVER_SOFTWARE: Apache
HTTP_COOKIE: cmsa=1; __utmt=1; __utma=89914633.1034227147.1439904213.1443190818.1443519079.18; __utmb=89914633.165.10.1443519079; __utmc=89914633; __utmz=89914633.1442834288.12.3.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); PHPSESSID=8tu1mqtgubi8hrap1uldfh4g74
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8,it;q=0.6
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_REFERER: http://www.calibremetalwork.co.uk/perch/core/settings/diagnostics/
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/45.0.2454.101 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_CONNECTION: close
HTTP_X_FORWARDED_FOR: 88.104.5.102
HTTP_X_REAL_IP: 88.104.5.102
HTTP_HOST: www.calibremetalwork.co.uk
on: 127.0.0.1
REDIRECT_STATUS: 200
REDIRECT_HANDLER: application/x-httpd-php54
REDIRECT_on: 127.0.0.1
FCGI_ROLE: RESPONDER
PHP_SELF: /perch/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1443525179.9501
REQUEST_TIME: 1443525179

And here's the text field I'm having trouble with in the template

<perch:content id="fullContent" type="textarea" label="Full Content" textile="true" editor="markitup"/>

I think it must be a problem on the live server, locally it works perfectly. Just not sure what to do about it.

Mailto links and internal links (without http://) work fine.

Thanks again, John.

Don't worry about this, switching the text block to markdown fixes the issue so will go with that as a solution.