Jump to content

Cannot redeclare class FieldtypeTextLanguage after copying site


Recommended Posts


I get this error after copying a v2.4 site (from /xx to /yy)

Somehow the copy have a reference to the old location. So on the new site (/yy) i get:

Fatal error: Cannot redeclare class FieldtypeTextLanguage in /Applications/MAMP/htdocs/xx/wire/modules/LanguageSupport/FieldtypeTextLanguage.module on line 17

This error message was shown because site is in debug mode ($config->debug = true; in /site/config.php). Error has been logged.


What can I do to make the new copy (/yy) forget about the old location?


- I tried deleting the module cache.

- .htaccess is identical in both cases, there is no reference to /xx

- $config->httpHosts = array('localhost:8888', 'localhost'); // also identical

- deleted the sessions on both /xx and /yy

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...