Just repeat your migration - it has clearly gone wrong
cd /domains/example.com/http
wget sys.sonassi.com/mage-dbdump.sh
bash mage-dbdump.sh
tar cvfz ../http.tgz . --exclude=var/log --exclude=var/session --exclude=var/cache --exclude=var/*port
Then transfer that file to the new server, extract it
tar xvfz http.tgz
Edit the ./app/etc/local.xml
to reflect the new DB details
Then restore the DB
bash mage-dbdump.sh --restore
There's good documented procedure that's a little more verbose than the above here.
Or automate the process
We've also got an automated script to do quick migrations (without media etc.)
wget sys.sonassi.com/mage-bundle.sh
bash mage-bundle.sh
This will dump the DB and tar up the document root (excluding tmp files, reports, errors, media, archvies, static content etc.) - for a quick migration.
This is really aimed towards doing dev/test migrations (or backups); but you can use this to get a base of the site over; then supplement the missing files with an rsync
from the other machine, eg.
/usr/bin/rsync -par /domains/example.com/http/ [email protected]:/domains/example.com/http/ --delete --exclude=var/log --exclude=var/session --exclude=var/cache --exclude=var/report --exclude=app/etc/local.xml
Clean up your permissions
And always, check and clean up your permissions, replace www-data
with your respective user/group
chown -R www-data:www-data/home/sonassi/public_html
find /home/sonassi/public_html -type d -exec chmod 775 {} \;
find /home/sonassi/public_html -type f -exec chmod 664 {} \;
Or again, read this for a more permanent, sophisticated solution.