Trouble migrating to new host

Hi!

I'm new to litecart but i know php quite well. 

I'm about to migrate one of my customers from his old host to a new machine. 

The version is LiteCart 2.1.6.

The site almost works but i get these errors:

Warning: Destination is not writable: /var/www/xxx/public_html/cache/88d5bf3fda194989c7369a6f140d501c8415417c_24x24_c.png. in ~/includes/controllers/ctrl_image.inc.php (Line 696)

The folder is writable and owned by correct user. Persmissions is 
drwxrwxrwx  2 www-data www-data   24576 Jul  4 17:23 cache
So it is writable and 777.

Also, error reporting is turned off, but still this errors get outputted on the site. How to turn error reporting off?

I'm also getting this errors but i guess they are related?


file_put_contents(/var/www/xxx/public_html/data/blacklist.txt): failed to open stream: Permission denied in
~/includes/library/lib_security.inc.php (Line 187)```

And

```Platform database version (2.1.4) does not match platform version (2.1.6) in
~/includes/library/lib_settings.inc.php
on line
21```

Anyone know what might be the issue?

Hey!

Not an expert, but are you sure you are connecting to the correct database? From the last error, it seems you are using a database from LiteCart 2.1.4, is that maybe the problem? 

Also, for me it always worked best to set up a new LiteCart installation on the new host, and include all the necessary templates and custom changes, testing everything before deploying. Migrating as-is always produced unforeseen errors for me, and took up more time than installing fresh and deploying individual changes step by step.

Just my two cents

Thank you for your reply! Yea, i had to set everything up on a new install.

This thread has been closed due to long inactivity. Posting to it is not possible.
View code on GitHub