Author: christian-koch

WordPress redirect 404 with 301 to your home

04:43 PM by Christian Koch

Filed under wordpress

Last modified 04:43 PM

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 02:21 PM

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 03:54 PM

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 02:57 PM

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 02:52 PM

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 11:44 AM

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 11:09 PM

To activate on your Mac OS X the locate bash command open your bash and insert the following command: It will take a couple of minutes before you can use the locate command, the database for it needs to get created.

PHP Fatal error: Class ‘t3lib_extMgm’ not found

10:34 PM by Christian Koch

Filed under t3 extension development

Last modified 02:41 PM

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