I´ve just installed SS 2.4.5 on my live-webserver (for the first time - been developing on mamp). The installation went smoothly without any problems. I followed the step-by-step documentary....after adding my custom content (theme, some codes and modules) I imported the database to mySQL and ran a dev/build.
Website is showing (not quite as it should look like but nothing I couldn´t fix) BUT when I try to access the CMS login (admin) page to log in I get the following error (included in a seperate .txt file due to it´s length.
Does anyone have a solution or do I have to reinstall? If so, what could probably have caused this error so I don´t make the same mistake again? Obviously must have something to do with my custom content (which worked fine on MAMP)....
appreciating any help
For some reason the code is trying to get a SiteTree versioned object that doesn't exist. From looking at the backtrace is originates from a template file so it could be a caching issue so try visiting admin/?flush=all rather than admin/ to flush that out.
If you have just installed SS, then I suggest dropping or emptying the database and running dev/build again and see if you have any issues. Make sure dev/build is successful by scrolling all the way to the bottom of the page.
Nevermind...reinstalled and tried again. Works fine until i import my own database. After that the login page gives me the same error as before except that flush all didn´t work this time :-(
So I emptied my database (as you suggested) and did a dev build. Again all went back to normal. Login worked and all. But re-importing my database doesn´t work anymore due to the following cause: