Forum

Thread tagged as: Problem

Social and Meta Options being overridden

Hi,

I've set Social and Meta options for one of my blog posts (Image, Author, Description, Title), but every time I share to Facebook, the Author is replaced by the meta:author in the code, and the image is replaced by a seemingly random image from the homepage of the site (same image every time) - any ideas?

I've attached my diagnostics report, just in case you ask for it.

Perch: 2.8.31
Production mode: Production (100)
Installed apps: content (2.8.31), assets (2.8.31), categories (2.8.31), perch_shop_paypal (1.2.3), perch_forms (1.8.3), perch_blog (5.0), perch_comments (1.2), perch_members (1.5), perch_twitter (3.5.1)
DB driver: PDO
DB tables: perch2_blog_authors (5), perch2_blog_comments (2), perch2_blog_index (512), perch2_blog_posts (11), perch2_blog_posts_to_tags (22), perch2_blog_sections (1), perch2_blog_tags (14), perch2_blogs (1), perch2_categories (1), perch2_category_counts (0), perch2_category_sets (3), perch2_comments (10), perch2_comments_votes (0), perch2_content_index (4269), perch2_content_items (1228), perch2_content_regions (324), perch2_courses (1), perch2_forms (2), perch2_forms_responses (14), perch2_members (0), perch2_members_forms (1), perch2_members_member_tags (0), perch2_members_sessions (1), perch2_members_tags (0), perch2_navigation (4), perch2_navigation_pages (45), perch2_page_templates (21), perch2_pages (78), perch2_resource_log (4005), perch2_resource_tags (6), perch2_resources (788), perch2_resources_to_tags (6), perch2_settings (37), perch2_shop_categories (11), perch2_shop_courses (4), perch2_shop_log (4), perch2_shop_orders (3), perch2_shop_product_options (0), perch2_shop_products (4), perch2_shop_products_to_categories (0), perch2_shop_products_to_courses (0), perch2_twitter_scheduled_tweets (0), perch2_twitter_settings (1), perch2_twitter_tweets (956), perch2_user_passwords (0), perch2_user_privileges (81), perch2_user_role_privileges (16), perch2_user_roles (2), perch2_users (9)
Users: 9
App runtimes:
<?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
        'perch_members',
        'perch_twitter',
        'perch_forms',
        'perch_comments',
        'perch_shop_paypal'
    );
Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)
Scheduled tasks for perch_comments: delete_spam_comments (1440 mins)
Scheduled tasks for perch_twitter: post_tweets (1 mins), update_tweets (30 mins)
Editor plug-ins: markitup
H1: ef3923fbeb3bbfc5c7d69e48b72db948
L1: decc131a5977ddd7a8d783c56351db03
F1: 2edba60ed1f613d6dd804feb202456a2
headerColour: #ffffff
content_singlePageEdit: 1
helpURL:
siteURL: /
hideBranding: 0
content_collapseList: 1
lang: en-gb
update_2.8.25: done
latest_version: 2.8.15
on_sale_version: 2.8.31
headerScheme: light
perch_blog_site_name:
perch_blog_post_url: /news/post.php?s={postSlug}
perch_blog_slug_format: {postTitle}-{postID}
perch_blog_akismet_key:
perch_blog_max_spam_days: 0
dashboard: 0
hide_pwd_reset: 0
content_hideNonEditableRegions: 1
content_frontend_edit: 0
perch_blog_comment_notify: 1
perch_blog_update: 5.0.1
perch_members_update: 1.4
perch_twitter_update: 3.5
perch_members_login_page: /members/login.php?r={returnURL}
update_2.8.31: done
perch_shop_update: 1.0.6
perch_comments_akismet_key:
perch_comments_max_spam_days: 0
perch_shop_price_tax_mode: exc
perch_shop_site_url: https://
perch_shop_product_url: /training-and-courses/product.php?s={productSlug}
perch_shop_default_currency:
perch_shop_reporting_currency:
perch_shop_invoice_number_format: Invoice%d
perch_shop_display_oos: 1
perch_shop_paypal_email: info@activegloucestershire.org
PERCH_DEVELOPMENT: 10
PERCH_STAGING: 50
PERCH_PRODUCTION: 100
PERCH_DB_USERNAME: activeglos_live
PERCH_DB_SERVER: localhost
PERCH_DB_DATABASE: admin_activeglos_live
PERCH_DB_PREFIX: perch2_
PERCH_TZ: UTC
PERCH_EMAIL_FROM: info@activegloucestershire.org
PERCH_EMAIL_FROM_NAME: Active Gloucestershire
PERCH_LOGINPATH: /cms
PERCH_PATH: /var/www/vhosts/activegloucestershire.org/httpdocs/cms
PERCH_CORE: /var/www/vhosts/activegloucestershire.org/httpdocs/cms/core
PERCH_RESFILEPATH: /var/www/vhosts/activegloucestershire.org/httpdocs/cms/resources
PERCH_RESPATH: /cms/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_RUNWAY_ROUTED:
PERCH_STRONG_PASSWORDS:
PERCH_DEBUG:
PERCH_PREVIEW_ARG: preview
PERCH_TEMPLATE_PATH: /var/www/vhosts/activegloucestershire.org/httpdocs/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
PERCH_APPS_EDITOR_PLUGIN: markitup
PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile
HOSTING SETTINGS

PHP: 5.4.13
Zend: 2.4.0
OS: Linux
SAPI: cgi-fcgi
Safe mode: not detected
MySQL client: 5.5.30
MySQL server: 5.5.30
Free disk space: 3.83 GB
Extensions: Core, date, ereg, libxml, openssl, pcre, zlib, bz2, calendar, ctype, hash, filter, ftp, gettext, gmp, SPL, iconv, pcntl, readline, Reflection, session, standard, shmop, SimpleXML, sockets, mbstring, tokenizer, xml, cgi-fcgi, curl, dom, fileinfo, gd, imagick, imap, json, ldap, exif, mcrypt, mysql, mysqli, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_sqlite, Phar, snmp, sqlite3, wddx, xmlreader, xmlrpc, xmlwriter, xsl, zip, mhash, ionCube Loader
GD: Yes
ImageMagick: Yes
PHP max upload size: 128M
PHP max form post size: 8M
PHP memory limit: 128M
Total max uploadable file size: 8M
Resource folder writeable: Yes
Session timeout: 24 minutes
Native JSON: Yes
Filter functions: Yes
Transliteration functions: No
PATH: /sbin:/usr/sbin:/bin:/usr/bin
PP_CUSTOM_PHP_INI: /var/www/vhosts/system/activegloucestershire.org/etc/php.ini
PP_CUSTOM_PHP_CGI_INDEX: fastcgi
SCRIPT_NAME: /cms/core/settings/diagnostics/index.php
REQUEST_URI: /cms/core/settings/diagnostics/?extended
QUERY_STRING: extended
REQUEST_METHOD: GET
SERVER_PROTOCOL: HTTP/1.0
GATEWAY_INTERFACE: CGI/1.1
REMOTE_PORT: 60963
SCRIPT_FILENAME: /var/www/vhosts/activegloucestershire.org/httpdocs/cms/core/settings/diagnostics/index.php
SERVER_ADMIN: jamesh@thirdfloordesign.co.uk
DOCUMENT_ROOT: /var/www/vhosts/activegloucestershire.org/httpdocs
REMOTE_ADDR: 82.35.54.156
SERVER_PORT: 80
SERVER_ADDR: 205.186.165.244
SERVER_NAME: www.activegloucestershire.org
SERVER_SOFTWARE: Apache
SERVER_SIGNATURE: <address>Apache Server at www.activegloucestershire.org Port 80</address>
HTTP_COOKIE: __utma=1.28334944.1465223411.1465223411.1465223411.1; __utmz=1.1465223411.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); __utma=1.28334944.1465223411.1465223411.1465223411.1; __utmz=1.1465223411.1.1.utmcsr=google|utmccn=(organic)|utmcmd=organic|utmctr=(not%20provided); _ga=GA1.2.28334944.1465223411; cmsa=1; __atuvc=2%7C31%2C1%7C32%2C11%7C33%2C0%7C34%2C2%7C35; __atuvs=57c824c4dd89b9ad001; PHPSESSID=hkmvb3925r3jic9u7uv1h88na0
HTTP_ACCEPT_LANGUAGE: en-US,en;q=0.8
HTTP_ACCEPT_ENCODING: gzip, deflate, sdch
HTTP_REFERER: https://www.activegloucestershire.org/cms/core/settings/diagnostics/
HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8
HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36
HTTP_UPGRADE_INSECURE_REQUESTS: 1
HTTP_CONNECTION: close
HTTP_X_ACCEL_INTERNAL: /internal-nginx-static-location
HTTP_X_FORWARDED_FOR: 82.35.54.156
HTTP_X_REAL_IP: 82.35.54.156
HTTP_HOST: www.activegloucestershire.org
UNIQUE_ID: V8gmh826pfQAADhlJs4AAAAC
FCGI_ROLE: RESPONDER
PHP_SELF: /cms/core/settings/diagnostics/index.php
REQUEST_TIME_FLOAT: 1472734855.1347
REQUEST_TIME: 1472734855

Thanks!

Harry Ray

Harry Ray 0 points

  • 5 years ago
Rachel Andrew

Rachel Andrew 394 points
Perch Support

If you View Source, do you have what you expect in the source?

Nope - I have an empty og:author and an empty image string.

Rachel Andrew

Rachel Andrew 394 points
Perch Support

OK, so you need to figure out why those are empty. What is in the template to populate those?

I'm trying to use the Social & Meta Options section to populate them.

When the page is shared on Facebook, the Open Graph data that goes through includes the meta name for the page, as opposed to the og:author field for the blog. Also, the 'Image when shared' field doesn't make a difference to the post; it stays empty once the page is shared and defaults to a seemingly random image from the site (which is the same every time).

Drew McLellan

Drew McLellan 2638 points
Perch Support

What do you see in the source of the page?

I've worked on the site a little since this thread started, so now I'm seeing the below:

<meta property="og:site_name" content="" />
    <meta property="og:url" content="https://ag.thirdfloordigital.net/news/test-post-11-8-8" />
    <meta property="og:title" content="Test Post 11 8" />
    <meta property="og:description" content="testing" />
    <meta property="og:image" content="https://ag.thirdfloordigital.net/cms/resources/matt-barr-sm-2-w1200.jpg" />
    <meta property="og:type" content="article" />
    <meta property="article:author" content="" />

    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:site" content="" />
    <meta name="twitter:title" content="Test Post 11 8" />
    <meta name="twitter:description" content="testing" />
    <meta property="twitter:image" content="https://ag.thirdfloordigital.net/cms/resources/matt-barr-sm-2-w1200.jpg" />
    <meta name="twitter:url" content="https://ag.thirdfloordigital.net/news/test-post-11-8-8" /></head>

The og:image field is populated, however it's not using that image for the Facebook share. The article:author field is still empty.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show us the template you're using for those?

Hi guys,

I got in touch with AddThis, who are the guys we're using for our sharing functionality, and got the issue resolved.

For anyone wondering - the solution for us was to remove

<link rel="canonical" href="/" />

as it was overriding our on-page metadata.