Tag Archives: Typo3

Typo3 Add a Google Breadcrumb Rich Card

If you like to improve the search experience of you website you may want to add a rich card. One of these rich cards are the breadcrumbs. First, you need to decide which format you like: microdata or JSON-LD.

These snippets will generate a microdata that you can also use as your standard breadcrumb:

lib.richcard_breadcrumb {
 special = rootline
 special.range = 1 | 7
 wrap = <ol itemscope itemtype="http://schema.org/BreadcrumbList"> | </ol>

 1 = TMENU
 1 {
   NO.ATagParams = itemprop="item"
   NO.allWrap =<li itemprop="itemListElement" itemscope itemtype="http://schema.org/ListItem">|</li>
   NO.stdWrap.wrap = <span itemprop="name">|</span>
   NO.after.cObject = COA
   NO.after.cObject {
    5 = TEXT
    5.dataWrap = <meta itemprop="position" content="{register:count_MENUOBJ}|" />
   }
 }
}

If you do not want to show a breadcrumb or like the JSON-LD more just use this code:

lib.richcard_breadcrumb = HMENU
lib.richcard_breadcrumb {
 special = rootline
 special.range = 1 | 7 
 wrap = { "@context": "http://schema.org", "@type": "BreadcrumbList", "itemListElement": | ] }
 1 = TMENU
 1 { 
  NO.allWrap = [ || ,| 
  NO.doNotLinkIt = 1
  NO.stdWrap.wrap = { "@type": "ListItem", "item": { | }
  NO.stdWrap.cObject = COA
  NO.stdWrap.cObject {
   10 = TEXT
   10 {
    stdWrap.typolink.parameter.field = uid
    stdWrap.typolink.forceAbsoluteUrl = 1
    stdWrap.typolink.returnLast = url
    htmlSpecialChars = 1
    wrap = "@id": "|",
   }
   20 = TEXT
   20 {
    field = title
    wrap = "name": "|"
   } 
  } 
  NO.after.cObject = COA
  NO.after.cObject {
   5 = TEXT
   5.dataWrap = ,"position": {register:count_MENUOBJ} | }
  }
 } 
}

 

Typo3 Problems with image gm convert and umlauts

If you have a problem when uploading images with umlauts in the file name you first stop may will be to check the config.local_all setting. The setting should match some value of the locale -a command of the server. Mose of the time it’s something like en_US.uft8 or de_DE.utf8.
But if you still getting errors like

/usr/local/bin/gm convert: Unable to open file ([image file name]) [No such file or directory].

You should also set systemLocale of the Typo3 configuration. The most simple way to do this is to use the Installation Tool/All Configuration:

$TYPO3_CONF_VARS['SYS']['systemLocale'] = 'de_DE.utf-8';

Typo3 cli_dispatch.phpsh scheduler Exception ‚localconf.php is not found!‘

After a system update or something else it may happen you get an Exception of your Typo3 Installation. It’s not always the main site but can also could be your „cron“ scripts (cli_dispatch.phpsh)

Fatal error: Uncaught exception 'Exception' with message 'localconf.php is not found!' in ../t3lib/config_default.php:707
Stack trace:
#0 ../typo3/sysext/cms/tslib/index_ts.php(128): require()
#1 ../index.php(84): require('...')
#2 {main} thrown in ../t3lib/config_default.php on line 707


or

Fatal error: Uncaught exception 'Exception' with message 'localconf.php is not found!' in ../t3lib/config_default.php:707
Stack trace:
#0 .../typo3/init.php(206): require()
#1 .../typo3/index.php(63): require('...')
#2 {main} thrown in .../t3lib/config_default.php on line 707

Of course the line numbers could be different 😉
So …. what’s the problem? It so simple that you just forget how you solved it the last time. „Last time? I don’t remember that there was a last time!?“. But you did!
Just check the php.ini and ensure that safe_mode = Off is set. Furthermore check the open_basedir setting. Ensure that (when used at all) all needed directories are set.