A common problem with anyone using Typo3 4.2 and GMENU Layers is that Typo3 creates a temporary js file each time a page is loaded. This ends up leading to your typo3temp folder being filled with thousands of js files. In some cases, with busy websites, we’ve seen the Typo3temp folder filled with as much as 1-2GBs of temporary js files. Clearly a problem, but not such as easy one to fix.

If you, for some reason are still running the 4.2 version of Typo3 here’s how you fix the issue.

The first thing you need to do is delete all those temporary js files from the typo3temp folder. This might be a bit of a nightmare if there are hundreds and thousands of files. In one case I needed to resort to removing the files via ssh using a wildcard and file name from within the typo3temp folder, e.g. rm -f javascript_12* (be very careful using the rm cmd MAKE SURE YOU ARE IN THE TYPO3TEMP FOLDER – no warranty provided by me if you mess up!).

Once that’s done and you’ve taken a complete backup of your website, complete the following steps:

1. Download patch file from http://bugs.typo3.org/view.php?id=12376
2. Upload the patch file to the root of your Typo3 installation (e.g. the directory with index.php and Typo3 folder etc)
3. Log into your SSH account and cd to the root folder
4. Type patch -p0 -i nameofpatchfile.diff
5. Log into FTP and delete all temporary js files from the typo3temp folder

You should now log on to your website and click around a few pages. Then check your Typo3Temp folder again through FTP to see if any js files have been created. You should really only see one (unless you have multiple navigations).

That’s it!

Tags: , , , , , , ,