Upgrade from 7.11.10 to 7.11.15 - No Next button after system check

I am suspecting this is due to the installation of upgrade patch in Module Loader. This is because initially I started the upgrade wizard and did the system check. I remembered seeing the Next button. Then I recall that I need to install the patch first.

After installing the patch, I started the upgrade wizard again. Now, the Next button is missing after system check.

There is no error message in suitecrm.log, php error_log and web server log.

Any Javascript errors in your browser’s error console?

Two warnings. They don’t look relevant to the issue.

Can you try clearing cache/upgrades/temp and starting over?

This is the only file in the folder.

After deleting, the outcome is still the same.

Sounds like an issue with the changes you made, make sure you’ve run permissions and at worse remove the patch and check if it now works

Hhmm file is 0 bytes?

Check also possible errors in upgradeWizard.log

Tue, 16 Jun 2020 10:08:34 +0000 [UpgradeWizard] - setting session variables...
Tue, 16 Jun 2020 10:08:34 +0000 [UpgradeWizard] - -----------------------------------------------------------------------------
Tue, 16 Jun 2020 10:08:34 +0000 [UpgradeWizard] - Upgrade started. At start.php
Tue, 16 Jun 2020 10:08:34 +0000 [UpgradeWizard] - at unlinkUWTempFiles()
Tue, 16 Jun 2020 10:08:34 +0000 [UpgradeWizard] - finished!
Tue, 16 Jun 2020 10:08:34 +0000 [UpgradeWizard] - resetting $_SESSION
Tue, 16 Jun 2020 10:08:36 +0000 [UpgradeWizard] - setting session variables...
Tue, 16 Jun 2020 10:08:36 +0000 [UpgradeWizard] - [At systemCheck.php]
Tue, 16 Jun 2020 10:08:36 +0000 [UpgradeWizard] - Starting file permission check...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Finished file permission check.
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Starting database permissions check...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Checking CREATE TABLE permissions...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Checking INSERT INTO permissions...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Checking UPDATE TABLE permissions...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Checking SELECT permissions...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Checking DELETE FROM permissions...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Checking ALTER TABLE ADD COLUMN permissions...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Checking ALTER TABLE CHANGE COLUMN permissions...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Checking ALTER TABLE DROP COLUMN permissions...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Checking DROP TABLE permissions...
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - No permissions errors found!
Tue, 16 Jun 2020 10:08:38 +0000 [UpgradeWizard] - Finished database permissions check.

The log looks OK. I have also tried setting the permissions for the files and folders again by executing these commands. The outcome is still the same.

      chmod -R 755 .
      chmod -R 775 cache custom modules themes data upload
      chmod 775 config_override.php 2>/dev/null

Is there an easy way to undo the patch installation? Otherwise, I will restore the system from my backup.

I restored the backup. The Next button is back.

I also tried to upgrade without installing the patch. But the upgrade process did not complete and jumped to home page after executing preflight check. Second attempt stopped at a blank page.

So I definitely need the patch for fixing the upgrade process.

What can I do now?!

Make sure you clear cache/upgrades/temp every single attempt you make at the upgrade.

The patch only does one thing: it replaces a bunch of files in modules/UpgradeWizard. if you open the patch file in a ZIP extractor you can see the files there:

image

I don’t know what the bug is, but you could experiment by passing those files along one by one, to see which one causes the bug…

The order in which they get called is:

'index',
'systemCheck',
'preflight',
'commit',
'end',
'cancel',

If you get errors please check php_errors.log for the messages.

If for whatever reason you get the blank page, check if the reload button is spinning, if so leave it be. When the spinning stops or you get an error, if not redirected, press home, admin and try to reenter the upgrade wizard, you may get stuck on loading the page. Leave it to load as when it does you may have successfully completed the upgrade

Replaced index.php --> Next button is still there at system check stage.

Once the systemCheck.php is replaced with the new one, the Next button is gone at system check stage.

Ok, let’s check that

Meanwhile - which OS are you on, is this server using Windows by any chance? And what is your PHP version?

It is hosted on a shared Linux server. PHP version is 7.2

1 Like

I’m afraid I can’t reproduce the bug here. It works fine for me.

I’ve been looking at the code and I can’t see a way for the message “All files writable” to appear, while simultaneously not activating the Next button… :thinking:

I installed a fresh test instance using 7.11.13.

Same thing. Once the systemCheck.php file is replaced with the new one, the Next button is gone at system check stage.

Hi @pgr

Upgraded PHP version from 7.2 to 7.3.

There is a message in PHP error_log now at system check stage.

Do you think this message is relevant to my issue?

No, I don’t think it’s related. That is just a harmless notice, I checked the code and it’s not a problem.

OK, thanks.

I want to revert the changes by replacing with the 6 original php files in modules/UpgradeWizard. I also want to delete this patch.

Any idea how to delete it?

It’s a simple patch, you can replace the 6 files with previous versions. You can get them from one of your backups, or from GitHub, or from a previous SuiteCRM package.