I am moving an OC3 based site from a CentOS 7 Virtual host to a Ubuntu 22.04 vhost. The old site uses PHP7.3. I have enabled PHP7.4 on the new host since I read that there might be incompatibility with PHP8.1 (the default)
I understand that the basic steps are
- Copy the public_html/ and storage/ files over
- mysqldump and restore database
- adjust public_html/config.php and public_html/admin/config.php
- clear the cache
First of all, the new site spills a bunch of errors
Code: Select all
Unknown: mysqli::real_escape_string(): Passing null to parameter #1 ($string) of type string is deprecated in /var/www/canusbshop.com/public_html/system/library/db/mysqli.php on line 45Unknown: The Twig_Autoloader class is deprecated since version 1.21 and will be removed in 2.0. Use Composer instead. in /var/www/canusbshop.com/public_html/system/library/template/Twig/Autoloader.php on line 12Unknown: Using Twig_Autoloader is deprecated since version 1.21. Use Composer instead. in /var/www/canusbshop.com/public_html/system/library/template/Twig/Autoloader.php on line 30Unknown: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/canusbshop.com/public_html/system/library/template/Twig/Lexer.php on line 176Unknown: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/canusbshop.com/public_html/system/library/template/Twig/Lexer.php on line 180Unknown: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in /var/www/canusbshop.com/public_html/system/library/template/Twig/Lexer.php on line 200Unknown: preg_match(): Passing null to parameter #4 ($flags) of type int is deprecated in
I think it's a cache problem. Can someone think of other places that I need to fix?
You can also email me at richard @imagecraft.com. Thanks