Author: christian-koch

WordPress redirect 404 with 301 to your home

04:43 PM by Christian Koch

Filed under wordpress

Last modified Saturday September 12th, 2015

To redirect 404 error pages via 301, permanently moved to your WordPress home page create or edit the 404.php in your WordPress theme:

Google Webmaster Tools: hentry (markup: microformats.org) errors

11:24 AM by Christian Koch

Filed under wordpress

Last modified Saturday September 12th, 2015

In order to remove those errors you can simply extend your functions.php with the following function: This checks if there is a class called hentry in the post classes and if so removes it. If you want to learn more about hentry and microformats visit: http://microformats.org/wiki/hentry

PHP Fatal error: Class ‘tslib_cObj’ not found

03:54 PM by Christian Koch

Filed under php, t3 extension development

Last modified Wednesday September 9th, 2015

when you get the error "PHP Fatal error: Class 'tslib_cObj' not found" go to the file displayed in your error log and replace tslib_cObj with \TYPO3\CMS\Frontend\ContentObject\ContentObjectRenderer

PHP Fatal error: Class ‘t3lib_div’ not found

02:56 PM by Christian Koch

Filed under php, t3 extension development

Last modified Wednesday September 9th, 2015

when you get the error "PHP Fatal error:  Class 't3lib_div' not found" go to the file displayed in your error log and replace t3lib_div with \TYPO3\CMS\Core\Utility\GeneralUtility

PHP Fatal error: Class ‘tslib_pibase’ not found

02:48 PM by Christian Koch

Filed under php, t3 extension development

Last modified Wednesday September 9th, 2015

When you receive this error in TYPO3 6 or 7 go to the error file and replace class whatever extends tslib_pibase, the tslib_pibase with \TYPO3\CMS\Frontend\Plugin\AbstractPlugin

PHP email subject encoding UTF-8

11:38 AM by Christian Koch

Filed under php

Last modified Tuesday September 8th, 2015

To fix the encoding of email subject that you send with PHP wrap your subject in '=?UTF-8?B?' / "?=" and also use the PHP function base64_encode() to encode your original subject. Check out the code sample:

Mac OS X locate bash command

11:06 PM by Christian Koch

Filed under Commands

Last modified Sunday September 6th, 2015

To activate on your Mac OS X the locate bash command

PHP Fatal error: Class ‘t3lib_extMgm’ not found

10:34 PM by Christian Koch

Filed under t3 extension development

Last modified Wednesday September 9th, 2015

replace t3lib_extMgm with \TYPO3\CMS\Core\Utility\ExtensionManagementUtility and done.