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