TYPO3 CMS 8.7 Jquery errors after moving site

391 Views Asked by At

Recently I've moved one of my development sites into production. The following steps were taken.

  • Complete backup of both versions (4.5 & 8.7)
  • Removal of old version
  • Uploading new TYPO3 developed version
  • Updating database connection in the LocalConfiguration file

After doing all this and enabling the install tool I am able to login to my install tool but not into the backed. Both the install tool and the backend are giving the following error.

Uncaught SyntaxError: Invalid or unexpected token on Jquery. Various other errors also appear because of this. Included below is a screenshot for completion.

enter image description here

No file transfers failed and I am unable to login to the backend. I haven't done anyhthing to the database apart from setting it up

2

There are 2 best solutions below

0
David On

It's possible that file-compression was activated for JS- and CSS files which doesn't match the settings on the new server. If you click in the browser-console on a file-link you get some output like this:

debug of compressed file in browser-console

You can adjust the compression-level in install-tool but can see the value in the file typo3conf/localconf.php (for TYPO3 4.x) or typo3conf/LocalConfiguration.php (for TYPO3 8). It might currently look like this:

$TYPO3_CONF_VARS['BE']['compressionLevel'] = '9';

and you can adjust it just to 0:

$TYPO3_CONF_VARS['BE']['compressionLevel'] = '0';

In the install-tool of TYPO3 4.5 the option looks like this:

compressionLevel in install-tool

0
George Balan On

The problems comes from the setup.ts or config file. Comment / uncomment these lines until it will work. Is usually the compression of js that is the problem:

#config.concatenateCss = 1
#config.compressCss = 1
#config.concatenateJs = 1
#config.compressJs =1