Page 1 of 1

2.2.16 update after migrating new host

Posted: Sat Sep 03, 2022 3:16 am
by pierrepercee
Hello,

I migrate a site to a new host without any difficulty. After migrating i want to update to 2.2.16. (from 2.2.15)
unfortunately during the migration process I indicate the folder in which cmsms is installed but it tells me that it cannot find a cmsms installation. On the other hand, it shows me some files contained in this directory.
I checked the system info, everything seems ok.
I tried a very minimalistic htaccess...
I entered root_url, root_path in my config.php file
I obviously cleared the cache several times and tried with the expanded version....
Note with the classic installer, the style sheet of the installer is not loaded whereas it is with the expanded versions
So I tested the update on my first hosting. It works perfectly. The problem is that I updated a lot of data on the new hosting :-\ (about 7 hours of work)...

Re: 2.2.16 update after migrating new host

Posted: Sat Sep 03, 2022 4:23 am
by DIGI3
It's hard to tell with so little information, but here's a few ideas:
-check the PHP version, and perhaps try a different one (e.g. if it's 8.0, try 7.4)
-make sure mod_security is disabled (you may have to ask the host if it's not on your control panel)
-try a freshen install with the 2.2.15 installer first
-temporarily disable any antivirus software on the server
-check ownership and permissions for all files
-make sure the cache is actually clear (delete files in the file system, rather than just the admin cache clear)

Re: 2.2.16 update after migrating new host

Posted: Sat Sep 03, 2022 11:01 am
by pierrepercee
Hello Digi3,

Thanks.
No mode security...
PHP 7.4 on 2 host
I always clean cache via ftp...

Make a research in database and find absolut path in my template reffering old host : corrected

Do you know how the install directory is tested to know if it contains an old cmsms install ?

Re: 2.2.16 update after migrating new host

Posted: Sat Sep 03, 2022 1:54 pm
by DIGI3
I think it's looking in /lib/version.php but I'm not 100% sure. I've asked JoMorg, will update if he advises otherwise.

Did the 2.2.15 freshen succeed, or same issue?

Re: 2.2.16 update after migrating new host

Posted: Sat Sep 03, 2022 1:57 pm
by pierrepercee
Many thanks,

OK, I found it!
In step 2 of the installation the folders / files searched to find an old installation are:
moduless
version.php
include.php
config.php
moduleinterface.php
moduleinterface.php was missing.

It's nice to finish a migration at 2:00 a.m., but, maybe...

Sorry for my poor brain...

Thanks again Digi3