CRM upgrade page doesn't load

Hi,

every time i try and load the upgrade wizard page in our CRM - it never loads and eventually goes to internal server error. I have checked the permissions and have ran them with no luck. I have done the prerequisites as per the upgrade page on the suite website. No errors show on the page.

Version 7.9.7
Sugar Version 6.5.25 (Build 344)

below is the upgrade wizard log:
Thu, 01 Mar 2018 13:04:50 +0000 [UpgradeWizard] - setting session variables…
Thu, 01 Mar 2018 13:05:09 +0000 [UpgradeWizard] - [At end.php]
Thu, 01 Mar 2018 13:05:09 +0000 [UpgradeWizard] - About to repair the database.
Thu, 01 Mar 2018 13:05:24 +0000 [UpgradeWizard] - database repaired
Thu, 01 Mar 2018 13:05:24 +0000 [UpgradeWizard] - Start Rebuilding the config file again
Thu, 01 Mar 2018 13:05:24 +0000 [UpgradeWizard] - Finish Rebuilding the config file again
Thu, 01 Mar 2018 13:05:24 +0000 [UpgradeWizard] - Begin upgrade_connectors
Thu, 01 Mar 2018 13:05:24 +0000 [UpgradeWizard] - End upgrade_connectors

What do you have in php_errors.log at the time of the failed upgrade?

You can try deleting (or just renaming, to be safer) the “upload/upgrades” directory, and then start again.

APologies for the delay - here is the only two errors from the PHP log.

[12-Jun-2018 14:53:21 Europe/London] PHP Notice: Undefined index: current_db_version in /var/sites/c/xxxx/public_html/modules/UpgradeWizard/end.php on line 198
[12-Jun-2018 14:53:21 Europe/London] PHP Notice: Undefined index: current_db_version in /var/sites/c/xxxx/public_html/modules/UpgradeWizard/end.php on line 208

I have also tried renaming the upgrades package yet it still doesn’t work.

Sorry, you renamed the upgrade package? Or the upload/upgrades directory? This second thing is what you should do.

What do you have inside the file sugar_version.php on the root of your SutieCRM installation? Is that file accessible by the web server (check permissions)?

EDIT: also delete “cache/upgrades” folder and retry.

My apologies I editied the upload/upgrades directory… I will now try renaming the cache/upgrades folder.

As a temp fix I have added the below code for end.php file. Permissions are all good.

$_SESSION['current_db_version'] = '6.5.25';

I will let you know how I get on renaming the folders again.

I renamed this folder cache/upgrades and upload/upgrades… however still no luck. Nothing in the php log about the upgrade.

Can you put more generous values in your php.ini for

memory_limit
max_upload_size
max_execution_time