How to set 404 error handlers for multi-domain web-sites in Typo3


Multiple 404 error handlers for multi-domain web-sites + typo3

Its very important for multiple domain to set diffrent 404 error handlers

you can set following script in your local configuration


$TYPO3_CONF_VARS["FE"]["pageNotFound_handling_statheader"] = 'HTTP/1.1 404 Not Found';

if ($_SERVER['HTTP_HOST'] == 'www.jainishsenjaliya.com') {
     $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'REDIRECT:http://jainishsenjaliya.com/404.html';
}
else {
     $TYPO3_CONF_VARS['FE']['pageNotFound_handling'] = 'REDIRECT:http://m.jainishsenjaliya.com/404.html';
}

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

Advertisements

Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 bytes) in /typo3/sysext/core/Classes/Database/DatabaseConnection.php on line 1038 + TYPO3


Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 83 bytes) in /typo3/sysext/core/Classes/Database/DatabaseConnection.php on line 1038 + TYPO3

Some time we are facing the issue of memory size exhausted in typo3 backend.

We are also facing “Allowed memory size of 134217728 bytes exhausted” issue while we save records in backend module.

Like : Edit page content, Powermail field data, News records or any other field data.

We can set memory limit in php.ini file as well. if we are not able to change on server file then we can also manage it from typo3 configuration.

Following script we have to set in “LocalConfiguration.php” OR you can directly set on the Install Tool set.

$TYPO3_CONF_VARS['SYS']['lockingMode'] = 'disable';

If this is not working for you then you can also set “setMemoryLimit” in your LocalConfiguration file.

$TYPO3_CONF_VARS['SYS']['setMemoryLimit'] = '16M';

Ie that 16 MB must use to run the script. Since it can then sometimes happen that the allocated 16 MB are not enough. so we can set it more from LocalConfiguration file and also manage it from install tool.

i hope it will work for you 🙂

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya

readLLXMLfile error in typo3 extbase extension


While TYPO3 update to TYPO3 6.2 and Pi-Based Extensions throws error of “t3lib_div::readLLXMLfile” which is deprecated in typo3 6.2.xx version

updating TYPO3 from 4.5 to 6.2 version many Pi-Based Extension adjustments a particularly annoying bug has stayed with us.

For me, this error has only be shown if a new content item in the backend should be created.

The error was in the PI1, PI2, … ” … wizcon.php “file and generated a 500 error.

Following error may show in your backend area

( ! ) Fatal error: Call to undefined method TYPO3\CMS\Core\Utility\GeneralUtility::readLLXMLfile() in C:\wamp\www\typo3\jainish\typo3conf\ext\js_contact_form\pi1\class.tx_jscontactform_pi1_wizicon.php on line 72
readLLXMLfile

readLLXMLfile

t3lib_div :: readLLXMLfile is not supported in latest version of typo3. we have to replace those deprecated function to new function

To correct the problem, you have to replace both line.

// OLD CODE
$llFile = t3lib_extMgm::extPath('YOUR_EXTENSION').'locallang.xml';
$LOCAL_LANG = t3lib_div::readLLXMLfile($llFile, $GLOBALS['LANG']->lang);

// New Code 
$llFile = \TYPO3\CMS\Core\Utility\ExtensionManagementUtility::extPath('YOUR_EXTENSION').'locallang.xml';						
$parser = t3lib_div::makeInstance('t3lib_l10n_parser_Llxml');
$LOCAL_LANG = $parser->getParsedData($llFile, $GLOBALS['LANG']->lang);

I hope this will work for you.

If you have any queries, please do not hesitate to contact me at Jainish Senjaliya