Posted: May 26, 2016 at 1:15 pm
|
Hello, I’m in the process of testing an update from EE3 to EE4 on a local development environment and I’ve run into an issue during data migration. I made sure my EE3 version was the latest prior to starting the migration and am following the steps give here: https://eventespresso.com/wiki/how-to-upgrade-event-espresso/. I received the error on the first step of the migration. The error I’ve receive is: Unknown fatal error occurred: The error '' occurred updating the status of the migration. This is a FATAL ERROR, but the error is preventing the system from remembering that. Please contact event espresso support. The migration log shows the following before the error: Migrated 10 records successfully during Events Migrated 10 records successfully during Events Migrated 10 records successfully during Events Migrated 10 records successfully during Events Migrated 10 records successfully during Events Migrated 10 records successfully during Events Migrated 10 records successfully during Events Migrated 10 records successfully during Events Migrated 1 records successfully during Events Migrated 38 records successfully during Gateways Migrated 9 records successfully during Shortcodes Migrated 50 records successfully during Shortcodes Migrated 50 records successfully during Shortcodes Migrated 50 records successfully during Shortcodes Migrated 50 records successfully during Shortcodes Migrated 50 records successfully during Shortcodes Migrated 50 records successfully during Shortcodes Migrated 50 records successfully during Shortcodes Migrated 55 records successfully during Organization Options/Config Please let me know if there is additional information I can provide that will help in resolving this issue and what my next step should be. Thanks, |
Hi AJ, You can check the server’s error logs to see if the actual fatal error was captured. Beyond that, the generally helpful things to do in this case are: 1) You deactivate all other plugins before re-starting the migration. |
|
|
Hey Josh, I’ve followed you recommendations, made sure other plugins are disabled and allocated additional memory to WP and I am still getting the same result. I’ve emailed (support@eventespresso.com) the resulting “report” generated by EE from a different email address referencing this ticket. Did you get it? It was sent on May 27th. I also tried pasting it here but I guess it’s too large and wouldn’t submit. In addition I am not seeing any errors that are related to the migration in the debug.log. Thanks, |
Hi AJ, I’ve had a look through your log files and unfortunately they don’t show anything useful. Debug.log sometimes doesn’t catch all errors thrown so I would recommend checking within the servers error log. Usually within and error_log, error.log or a similar file within the root directory of your site. Looking within your report it looks like your error log should be within (Side note, I would recommend against posting logs such as these on the forum as its public. There’s nothing particularly sensitive in the logs, but it will reveal information about your server setup which is best kept hidden) You could also try setting the migration step size to a low value to confirm if this is a memory issue. Add something like:
To your wp-config.php file and see if the migration causes a fatal error. Note this will make the migration take a LOT longer as its stepping through smaller amounts of data each time. (You can change it back to 50 or remove the above after the first stage migration has completed and before you start the next) |
|
|
Thanks Tony for the reply, I’m seeing the following in my debug.log file now: [06-Jun-2016 21:28:37 UTC] PHP Notice: Undefined variable: guid in /srv/www/xxxxxxx/htdocs/wp-content/plugins/event-espresso-core-reg/core/data_migration_scripts/4_1_0_stages/EE_DMS_4_1_0_events.dmsstage.php on line 215 I do not see any entries in php_errors.log. Thanks, |
Those errors were not included within the previous debug.log I’ll check in with our developers on this and see what feedback they can provide. Was this a clean migration or did you continue on from the previous attempt? Has Event Espresso been modified at all on that site? If you remove the current version of EE, download the latest version from your account page, install that through: Event Espresso -> Plugins -> Add new -> Upload Plugin Then retry the migration and confirm if any errors are thrown. |
|
|
Hey Tony, the EE4 files on this install have not been modified. It was a clean migration started from a backup taken prior to the install of EE4. The EE3 version that this site is being migrated from does have some customizations. Those customizations are in a custom plugin which was disabled prior to starting the migration. Thanks, |
Hi AJ, Did the customizations for EE3 alter any of the database tables used by EE3? |
|
|
Hey Josh, I don’t believe so. The customizations on this site are all dealing with promo codes so shouldn’t get involved with the event data. Thanks for looking into this, |
Just to confirm AJ, did you try tony’s suggestion? To add If so, could you please re-send the system status info (go to WP dashboard -> Event espresso -> maintenance -> System Status, and copy the textfield’s contents and send them to support@eventespresso.com again). It might now contain some more useful information in it. (FYI looking at the code, the warning |
|
|
Hello Michael, Thanks for taking a look at this. I’ve emailed the Crash Report as requested. I did try Tony’s suggestions and have also set the migration size to 10 as requested. Thanks, |
Thanks got it AJ. So it seems the migrations are somehow dying when migrating the 85 – 95th events from EE3. Also, the warning you mentioned earlier indicated it was somehow unable to insert some events. Is there anything out of the ordinary with events 85-95? Do they have large images? Or are some columns’ values unusually large? If you were to instead set |
|
|
Hey Michael, I set the EE_MIGRATION_STEP_SIZE to 1 and re-ran the migration via the method you recommended It fails pretty much right away. I don’t see an event number to reference and have emailed the crash report to the support address again. Looking at the events_detail table I don’t see any events with ids 85 to 95. it skips from 77 to 188 but maybe you mean the 85th – 95th event and not revering to the event id? Unfortunately this site is on my local system and not accessible to the outside world. I could do a screen share. I’m on Pacific Time. Thanks, |
Hi AJ, If you can send a dump of the database tables that have |
|
|
Hey Josh, I’ve exported and sent in the requested tables to the support address. –AJ |
Hey AJ I loaded the database you sent me into my localhost setup too and tried running the migrations. I haven’t finished the migrations yet, but I got well past where you were that had the fatal errors (you didn’t finish migrating events, I have). |
|
|
Hey Michael thanks for your efforts here. I have stopped all EE plugins except for core and retried the migration. I’m still getting the Unknown fatal error. I’ve sent in the latest crash report. I will try migrating in another environment and see what happens there. Thanks, |
|
Hello Michael, I continue to get the error in the other environment as well. Thanks, |
|
Just following up on this I’m still unable to complete this migration… I would like to get this resolved. Thanks, |
Ya sorry AJ, it’s tricky because it’s working fine for me. I did notice you have venues with an apostrophe in their name so maybe that’s exposed a bug. I’ll publish a branch with a fix related to that you can try soon |
|
Hey AJ here’s a branch that resolves two of the errors I saw while running a migraiton on the dataset you provided: https://github.com/eventespresso/event-espresso-core/tree/BUG-9839-fatal-error-and-other-errors-migrating-from-ee3. Unfortunately I’m not reproducing the fatal error so I’m not too confident it resolves it for you. But could you re-attempt your migration using this branch? (If it still fails, do you have a public test site you can try running the migrations on too? Maybe try the migrations there too. If it fails on that other server, then you can grant us access to help debug it; if it works on that other server, then it must be an issue with your particular setup) |
|
|
Hi Michael, I understand the challenges of not being able to reproduce the issue. I’ve tried with the branch you suggested and I’m still getting the same results. I do have a public site you can have access to and have emailed in the address and creds to the support address. Unfortunately I can’t give you access to cpanel or MySQL so it maybe a little limiting. Thanks, |
It is fairly limiting to only have admin access to the site. Is there a way you can send temporary FTP access to the plugins directory for that site? |
|
|
Hey Josh, I have forwarded some additional creds to the support address that grants FTP access to the root of the install. –AJ |
Hey AJ the FTP user you sent us only has permission to read a file named “.ftpquota” and that’s it. Is it an easy fix to grant it more permissions (specifically to view and edit the WordPress files for the site in question)? –update: nevermind, I think I’ve found the problem, and using ye old barbaric WP plugin editor is ok
|
|
aha- I think I found it. Somehow the events that aren’t getting saved to the DB have some unrecongized character (it appears as |
|
ok I got the problem fixed and migrations running ok. It seems we need to run the data through Anyways, you can change |
|
Bah, I just temporarily hacked the code and got it to go faster. The migrations are done on that site so you can give it a whirl. We’re going to also internally test the fix and then put it in the next available release. (I may also open a WordPress core ticket about this too, because IMO if there are invalid characters when making an insertion, it should just remove the invalid characters and continue the insertion, not abandon the insertion and give no explanation). You no don’t need to use this branch of EE4 anymore, you can use the normal master version from now on. And we no longer need FTP or WordPress Dashboard access. Anything else needing to be resolved?
|
|
|
Hey Michael, Thanks for getting to the bottom of this. I think the unrecognized characters came about during the transfer and migration of the database onto the testing platform. I’ll see if I can sort this out as I’ll need to make sure I’m not going to run into this issue when I migrate the live site data. And will want to run the migration myself to make sure there aren’t unexpected issues. Thank you for all of you assistance. |
|
Hello Michael and the rest of the EE support staff, I wasn’t satisfied with the result of just having my EE data transferred so I kept digging for the root cause and I wanted to share my findings incase someone else has the same issue. Turns out on the live site there was a DB_CHARSET defined in the wp-config.php, but it wasn’t on either of the test sites.
Defining it the same on the test site cleared up my issues. Thanks again for taking the time to work with me on this. |
Thank you for posting your findings AJ. We have a ticket to to handle these issues during the migration so I have added the above to that ticket. Please let us know if you have any further problems 🙂 |
|
The support post ‘Unknown fatal error on EE3 to EE4 migration’ is closed to new replies.
Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.