Forum

Thread tagged as: Problem, Configuration, Addons

Perch Blog Date appearing as text field

When my client edits blog posts in admin, instead of select elements for the publish date, they just see something like:

2014-01-17 10:43:00

Any suggestions

Here's the info from Settings:

Perch: 2.4.9 Production mode: Production (100) Installed apps: content (2.4.9), perch_blog (4.0.3) DB driver: PDO DB tables: perch2_blog_authors, perch2_blog_categories, perch2_blog_comments, perch2_blog_posts, perch2_blog_posts_to_categories, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_content_resources, perch2_navigation, perch2_navigation_pages, perch2_page_templates, perch2_pages, perch2_resources, perch2_scheduled_tasks, perch2_settings, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users Users: 3 App runtimes: <?php include(PERCH_PATH.'/core/apps/content/runtime.php'); include(PERCH_PATH.'/addons/apps/perch_blog/runtime.php'); ?> Scheduled tasks for perch_blog: delete_spam_comments (1440 mins) Editor plug-ins: ckeditor, markitup H1: ceca180a4c1d1af5a341eba838cdaa0d L1: bfc297f67a9d1df958b1b22ff3c8606d headerColour: #ffffff content_singlePageEdit: 1 helpURL: siteURL: https://www.physiokinetic.co.uk hideBranding: 1 content_collapseList: 1 lang: en-gb update_2.2.9: done latest_version: 2.5.3 headerScheme: light dashboard: 0 content_hideNonEditableRegions: 0 logoPath: /perch/resources/logo.png perch_blog_post_url: /blog/post.php?s={postSlug} perch_blog_update: 4.0 perch_blog_slug_format: %Y-%m-%d-{postTitle} perch_blog_akismet_key: dc11b21d25c1 perch_blog_comment_notify: 0 on_sale_version: 2.6 update_2.4.9: done perch_blog_max_spam_days: 1 hide_pwd_reset: 0 content_frontend_edit: 0 PERCH_DEVELOPMENT: 10 PERCH_STAGING: 50 PERCH_PRODUCTION: 100 PERCH_DB_USERNAME: jontarbuck PERCH_DB_SERVER: 213.171.218.249 PERCH_DB_DATABASE: physiokinetic PERCH_DB_PREFIX: perch2_ PERCH_TZ: Europe/London PERCH_EMAIL_FROM: jon.tarbuck@mac.com PERCH_EMAIL_FROM_NAME: Jon Tarbuck PERCH_LOGINPATH: /perch PERCH_PATH: /home/fhlinux147/p/physiokinetic.co.uk/user/htdocs/perch PERCH_CORE: /home/fhlinux147/p/physiokinetic.co.uk/user/htdocs/perch/core PERCH_RESFILEPATH: /home/fhlinux147/p/physiokinetic.co.uk/user/htdocs/perch/resources PERCH_RESPATH: /perch/resources PERCH_HTML5: 1 PERCH_SCHEDULE_SECRET: michael 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/fhlinux147/p/physiokinetic.co.uk/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_AUTH_PLUGIN: PERCH_DB_CHARSET: utf8 PERCH_DB_PORT: PERCH_DB_SOCKET: HOSTING SETTINGS

PHP: 5.2.6 Zend: 2.2.0 OS: Linux SAPI: cgi-fcgi Safe mode: not detected MySQL client: 5.0.95 MySQL server: 5.0.95-log Extensions: libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, session, pcre, SimpleXML, sockets, SPL, shmop, standard, Reflection, pspell, posix, pcntl, mime_magic, json, iconv, hash, gmp, gettext, ftp, filter, exif, date, curl, ctype, calendar, bz2, zlib, openssl, cgi-fcgi, bcmath, dba, dom, gd, imap, ldap, mbstring, mysql, mysqli, ncurses, odbc, PDO, pdo_mysql, PDO_ODBC, pdo_pgsql, pdo_sqlite, pgsql, snmp, soap, xmlreader, xmlrpc, xmlwriter, xsl, ionCube Loader, Zend Optimizer GD: Yes ImageMagick: No PHP max upload size: 20M PHP max form post size: 8M PHP memory limit: 20M Total max uploadable file size: 8M Resource folder writeable: Yes Session timeout: 24 minutes Native JSON: Yes Filter functions: Yes Transliteration functions: No PHP_FCGI_CHILDREN: 10 PATH: /sbin:/usr/sbin:/bin:/usr/bin PWD: /var/www/fcgi PHP_FCGI_MAX_REQUESTS: 100 FCGI_ROLE: RESPONDER DOCUMENT_ROOT: /home/fhlinux147/p/physiokinetic.co.uk/user/htdocs HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8 HTTP_ACCEPT_ENCODING: gzip, deflate HTTP_ACCEPT_LANGUAGE: en-us HTTP_CONNECTION: keep-alive HTTP_COOKIE: cmsa=1; cmssb=1; PHPSESSID=q47eqs97mfnujmhb4m0o1pfl64 HTTP_HOST: www.physiokinetic.co.uk HTTP_REFERER: https://www.physiokinetic.co.uk/perch/core/settings/ HTTP_USER_AGENT: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_2) AppleWebKit/537.75.14 (KHTML, like Gecko) Version/7.0.3 Safari/537.75.14 REDIRECT_REDIRECT_STATUS: 200 REDIRECT_STATUS: 200 REDIRECT_URL: /perch/core/settings/diagnostics/index.php REMOTE_ADDR: 84.19.53.21 REMOTE_PORT: 54092 SCRIPT_FILENAME: /home/fhlinux147/p/physiokinetic.co.uk/user/htdocs/perch/core/settings/diagnostics/index.php SERVER_ADDR: 10.216.12.147 SERVER_ADMIN: webmaster@physiokinetic.co.uk SERVER_NAME: www.physiokinetic.co.uk SERVER_PORT: 80 SERVER_SOFTWARE: Apache GATEWAY_INTERFACE: CGI/1.1 SERVER_PROTOCOL: HTTP/1.1 REQUEST_METHOD: GET REQUEST_URI: /perch/core/settings/diagnostics/ SCRIPT_NAME: /perch/core/settings/diagnostics/index.php ORIG_SCRIPT_FILENAME: /var/www/fcgi/php-cgi ORIG_PATH_INFO: /perch/core/settings/diagnostics/index.php ORIG_PATH_TRANSLATED: /home/fhlinux147/p/physiokinetic.co.uk/user/htdocs/perch/core/settings/diagnostics/index.php ORIG_SCRIPT_NAME: /fcgi-bin/php-cgi PHP_SELF: /perch/core/settings/diagnostics/index.php REQUEST_TIME: 1408359394

Jon Tarbuck

Jon Tarbuck 0 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Do you have type="date" set on the tag in your template?

Yes. I have this in post.html:

<p class="entry-published date">
    <perch:blog id="postDateTime" type="date" label="Date" time="true" format="%d %B %Y" divider-before="Meta information" /> 
    <perch:if exists="authorGivenName">
        by <perch:blog id="authorGivenName" type="hidden" /> <perch:blog id="authorFamilyName" type="hidden" />
    </perch:if>
</p>
Drew McLellan

Drew McLellan 2638 points
Perch Support

When did this start?

Not sure - client had only just reported it.

Drew McLellan

Drew McLellan 2638 points
Perch Support

No other instances of id="postDateTime" in the template?

Nope, no other instances of that.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Ok. Anything else you can tell me? I'm not sure how to help.

Only that it doesn't happen on another site on which I have Perch Blog installed. That site is running Perch 2.3.2, and running Perch Blog 3.8.1. It only has <perch:blog id="postDateTime" format="%d %B %Y" /> in the post.html template, so I wonder if this is worth trying.

Drew McLellan

Drew McLellan 2638 points
Perch Support

Can you show me the entire post.html template?

<div class="hentry">
    <h1>
        <a href="<perch:blog id="postURL" type="hidden" />" rel="bookmark" class="entry-title">
            <perch:blog id="postTitle" type="text" label="Title" required="true" size="xl autowidth" order="1" />
        </a>
    </h1>
    <p class="entry-published date">
        <perch:blog id="postDateTime" type="date" label="Date" time="true" format="%d %B %Y" divider-before="Meta information" /> 
        <perch:if exists="authorGivenName">
            by <perch:blog id="authorGivenName" type="hidden" /> <perch:blog id="authorFamilyName" type="hidden" />
        </perch:if>
    </p>
    <perch:if exists="image">
        <div>
            <img src="<perch:blog id="image" type="image" width="320" height="240" crop="true" label="Image" order="4" />" alt="<perch:blog id="postTitle" />" />
        </div>
    </perch:if>
    <div class="description entry-content">
        <perch:blog id="postDescHTML" type="textarea" label="Post" order="2" editor="markitup" textile="true" size="xxl autowidth" required="true" />
    </div>
</div>

<perch:blog id="excerpt" type="textarea" label="Excerpt" textile="true" order="3" suppress="true" size="s" />
<perch:blog id="image" type="image" width="50" height="50" crop="true" suppress="true" />
Drew McLellan

Drew McLellan 2638 points
Perch Support

I can't see anything wrong there at all.

Hi...

I have this issue, did anyone find out what the problem was?

Rachel Andrew

Rachel Andrew 394 points
Perch Support

Stephen - this issue is a year old. Perch has changed a lot in a year.

You need to create your own thread, with your Diagnostic Report and your template explaining your current issue so we can help.

Fixed... I just removed

<div class="date"><perch:blog id="postDateTime" format="%d %B %Y" /></div>

From my post.html file