• Resolved zigadef

    (@zigadef)


    Hi

    Currently trying to help an organization that has a bit of an issue with your plugin 🙂
    The update is stuck 1 of 2.

    – Cleared the cache
    – Tried /wp-admin/?give-run-migration=create_revenue_table but it gives
    Fatal error: Uncaught Error: Undefined class constant ‘MIGRATION_OPTION’ in /home/{site_name}/public_html/wp-content/plugins/give/src/Framework/Migrations/Actions/ManuallyRunMigration.php:56 when trying to run it. Also downloaded the plugin directly from the site and MigrationsRunner doesn’t have any “enum” values of MIGRATION_OPTION.
    $completedMigrations = get_option( MigrationsRunner::MIGRATION_OPTION );

    MariaDB is on version 10.3.28 and running PHP 7.2

    Any suggestions would be welcome 🙂

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Rick Alday

    (@mrdaro)

    Hi @zigadef,

    Go to Donations -> Tools -> System Info, make sure all GiveWP database tables have a green checkmark next to them. If not, report back which tables are missing.

    Next, go to Donations -> Tools -> Logs, find any Errors that have an “Update error” in the description, and click the eye icon next to it to view the full error message. Past the full error message in your next reply.

    Thanks!

    Plugin Support Rick Alday

    (@mrdaro)

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. Hopefully, you were able to find a solution to your problem!

    If you have further questions, please feel free to open a new topic.

    Thanks.

    We have the same issue. It looks like your Manual Migration runner is still trying to use the legacy way of tracking completed migrations
    update_option( MigrationsRunner::MIGRATION_OPTION, $completedMigrations );

    However, MigrationsRunner::MIGRATION_OPTION is not defined.

    If anyone else needs to fix this, we just commented out all the code in updateMigrationsSetting() so we could make this thing create the missing table.

    Plugin Support Rick Alday

    (@mrdaro)

    The unexpected error means there are issues with your donations. In order to run the update successfully, GiveWP checks 3 things in a donation – 1. A valid donation ID, 2. A valid amount and 3. Donation is assigned to a Donation Form. So, make sure you check all your donation and all the donations passed through this checkpoint.

    You can also check your Logs to find out if any donation is causing the trouble. You can check it in Donations > Tools > Logs.

    You’ll need to fix the problematic donations manually (edit add the missing information) and then run the updater again.

    Plugin Support Rick Alday

    (@mrdaro)

    Do you still need assistance here? Feel free to reopen this ticket if you need further assistance and we’ll happily help you.

    Thanks for using GiveWP! Have a great day.

    Hi Rick,
    Sorry, but the issue is with your code. I thought I explained well exactly what was not working. MigrationsRunner::MIGRATION_OPTION is not defined anywhere.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Update 1 of 2 – Stuck’ is closed to new replies.