Upgrade error Undefined index: process-migration.php

Forum dedicated to Mods for HESK created by Mike Koch

Moderator: mkoch227

Post Reply
martijn
Posts: 7
Joined: Sat Dec 16, 2017 9:14 am

Upgrade error Undefined index: process-migration.php

Post by martijn »

Mods for HESK version: 3.2.5
HESK version: 2.7.5

Wen I upgrade to 3.2.5 I get this error:
An error occurred! (Error Code: NaN)
"An error occurred: Undefined index: XXXXX/public_html\/install\/ajax\/process-migration.php on 16"

An error occurred! (Error Code: NaN)
"An error occurred: Undefined index: in XXXXX/public_html\/install\/ajax\/process-migration.php on 16"

How can I solve this problem?

It is een upgrade from 2.7.1 to 2.7.5 and 3.0.0 to 3.2.5
On the same server under another domain name is another HESK script that runs well on the latest versions.
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Upgrade error Undefined index: process-migration.php

Post by mkoch227 »

If you open your browser's dev console (F12 on Chrome, make sure you select the "Console" tab), and then run the installer, what output does the console provide?
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
martijn
Posts: 7
Joined: Sat Dec 16, 2017 9:14 am

Re: Upgrade error Undefined index: process-migration.php

Post by martijn »

This is the error I get, can you please help me?

Image
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Upgrade error Undefined index: process-migration.php

Post by mkoch227 »

Very strange indeed. Please do the following:
  1. Download a modified /install/index.php file at https://mods-for-hesk.com/extras/index.zip.
  2. Extract the file in the zip to your helpdesk's /install directory (replace the index.php file that already exists)
  3. Navigate to https://<path to your helpdesk>/install
  4. Provide the debug information that is present underneath "By continuing, you agree to the terms of the MIT License.". The debug text starts with "Starting to retrieve version information."
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
martijn
Posts: 7
Joined: Sat Dec 16, 2017 9:14 am

Re: Upgrade error Undefined index: process-migration.php

Post by martijn »

This I get:

Starting to retrieve version information.
Found the settings table. Checking if a migration number is present.
Migration number not present. Getting value from currently installed Mods for HESK version
Found version: 3.0.0 RC 1. Using migration number:
mkoch227
Posts: 666
Joined: Wed Jul 04, 2012 3:37 pm

Re: Upgrade error Undefined index: process-migration.php

Post by mkoch227 »

Aaaah, that's the problem. I didn't take beta / RC versions of Mods for HESK into account when creating the installer :oops:

I've updated the index.php file at https://mods-for-hesk.com/extras/index.zip. Re-download that file and copy it over. When going to the install page, it should now say this:
Starting to retrieve version information.
Found the settings table. Checking if a migration number is present.
Migration number not present. Getting value from currently installed Mods for HESK version
Found version: 3.0.0 RC 1. Using migration number: 131
If it still doesn't return a proper migration number, let me know.

(also note that this change only fixes 3.0.0 RC 1. If anyone is running 3.0.0 beta 1, this change will not solve your issue. A future Mods for HESK release will permanently fix this issue)
Mike, Lead Developer of Image HESK: A surprisingly simple, user-friendly and FREE help desk software with integrated knowledgebase.
martijn
Posts: 7
Joined: Sat Dec 16, 2017 9:14 am

Re: Upgrade error Undefined index: process-migration.php

Post by martijn »

This solution works fine. The upgrade was successful.
Thank you very much!
Post Reply