0

I created a copy of my project for testing. First I duplicated the whole folder and renamed it from "test-foo" to "test-bar".

Then I exported the database and imported it (which was very time consuming because there were many timeouts).

Then I changed the file "app/etc/local.xml" to point to the new database.

However, this is how my site looks now:

enter image description here

It seems like it lost the design or does not point to the correct one?

How can I fix this?

Also If I try to enter the backend, then I get redirected to the original site which I have copied, even though I changed "web/secure/base_url" and "web/unsecure/base_url" to point to the new URL.

I also get The current marker does not contain a unique ("unique") column. (translated from german...) inside Phpmyadmin, on every table of the imported database, and I can't edit anything until I execute e.g. ALTER TABLEcore_config_dataADD UNIQUE (config_id)

5
  • Did you try removing the cache and session directory under magento_root/var? Also check .htaccess on magento root and permission to the magento directory. Commented May 23, 2018 at 15:33
  • @SukumarGorai, Good hints. I cleared the cache but no difference. I think I know the way. The problem is that I accidentially copied the wrong database, I will check and report back.
    – Black
    Commented May 23, 2018 at 15:39
  • Great. Let me know if you still have issue. Commented May 23, 2018 at 15:40
  • Check CSS/JS merge enabled in admin.
    – kunj
    Commented May 23, 2018 at 16:30
  • I think it was either because I copied the wrong database or because of my fix. Fix: I used Notepad++ to search the whole exported database SQL file for the old Domain URL and replaced it with the new one.
    – Black
    Commented May 23, 2018 at 16:59

1 Answer 1

0

I was able to solve it. I think it was either because I copied the wrong database or because of my fix.

Fix: I used Notepad++ to search the whole exported database SQL file for the old Domain URL and replaced it with the new one, then I imported it.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.