• Resolved Alagillina

    (@mi4mama9)


    Hi

    A few days ago, I pushed my staging site to production using WP Staging. The only thing I didn’t want to overwrite was the GiveWP plugin, as I had set it up directly in production and had already received some donations. Nothing major: just two donors (who are us, the administrators) and a total of five donations.

    Unfortunately, I wasn’t able to exclude it successfully. The solution suggested by WP Staging support was to export the donation data, reinstall the plugin from scratch, and then import the data. Of course, I would also have to reconfigure the entire plugin, but that was the least of my concerns.

    I exported the CSV files for payments, donors, earnings, and the JSON file for settings. I tried importing the CSV payments file multiple times, but unfortunately, I was never able to display the donations correctly.

    Now, in my admin I have a hybrid situation where:

    • I can see the profiles of the two donors and the total donated amount,
    • But I can’t see the five previous donations that I attempted to import.

    I also made a new test donation, and in the Donations section, I can only see that one – the same applies to my Donor Dashboard.

    What can I do?

    Additionally, WordPress sent me a critical error notification with the following details:

    WordPress has a built-in feature that detects when a plugin or theme causes a critical error on your site and notifies you with this automatic email.

    In this case, WordPress has encountered an error with one of your plugins, Give – Donation Plugin.

    First, visit your website and check if there are any visible issues. Then, go to the page where the error was detected (/wp-admin/edit.php?post_type=give_forms&page=give-payment-history&view=view-payment-details&id=2451) and verify if there are any visible problems.

    You may also contact your hosting provider to request further investigation into the issue.

    If your site is broken and you cannot access your dashboard normally, WordPress now has a special “Recovery Mode”, allowing you to log in safely to check what is wrong:

    🔗 Enter Recovery Mode

    For security reasons, this link will expire in 1 day. Don’t worry—if the error occurs again after the link expires, WordPress will send you a new one. [ Recover link deleted ]

    If you need assistance troubleshooting this issue, you might be asked for the following details:

    • WordPress Version: 6.7.2
    • Active Theme: OceanWP (version 4.0.6)
    • Current Plugin: Give – Donation Plugin (version 3.22.1)
    • PHP Version: 8.0.30
    • Dettagli dell’errore
      ====================
      Un errore di E_ERROR è stato causato nella linea 155 del file /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php. Messaggio di errore: Uncaught TypeError: Give\Framework\Support\ValueObjects\Money::fromDecimal(): Argument #2 ($currency) must be of type string, null given, called in /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php on line 159 and defined in /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php:155
      Stack trace:
      #0 /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php(159): Give\Framework\Support\ValueObjects\Money::fromDecimal()
      #1 /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/src/Donations/Models/Donation.php(281): Give\Donations\DataTransferObjects\DonationQueryData::fromObject()
      #2 /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(130): Give\Donations\Models\Donation::fromQueryBuilderObject()
      #3 /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(86): Give\Framework\Models\ModelQueryBuilder->getRowAsModel()
      #4 /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/src/Donations/Repositories/DonationRepository.php(66): Give\Framework\Models\ModelQueryBuilder->get()
      #5 /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/src/Donations/Models/Donation.php(118): Give\Donations\Repositories\DonationRepository->getById()
      #6 /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/includes/admin/payments/view-payment-details.php(67): Give\Donations\Models\Donation::find()
      #7 /web/htdocs/www.alagilleitalia.org/home/wp-content/plugins/give/includes/admin/payments/payments-history.php(28): require_once('...')
      #8 /web/htdocs/www.alagilleitalia.org/home/wp-includes/class-wp-hook.php(324): give_payment_history_page()
      #9 /web/htdocs/www.alagilleitalia.org/home/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
      #10 /web/htdocs/www.alagilleitalia.org/home/wp-includes/plugin.php(517): WP_Hook->do_action()
      #11 /web/htdocs/www.alagilleitalia.org/home/wp-admin/admin.php(259): do_action()
      #12 /web/htdocs/www.alagilleitalia.org/home/wp-admin/edit.php(10): require_once('...')
      #13 {main}
        thrown
    • This topic was modified 1 year, 3 months ago by Jan Dembowski. Reason: Formatting

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Robin Joshua Del Mundo

    (@robindelmundo)

    Hi @mi4mama9 ,

    Glad you reached out! Happy to help.

    GiveWP has instructions for migrating those into your new website.

    I’d like to make a quick note: Before taking any steps, I highly recommend taking a good backup of the site you can confidently restore from. Having a backup of your site is essential to a solid workflow, and will allow you to restore to a previous version of the site if you run into any issues. You can read more about our top recommendations for taking a backup here: https://givewp.com/backup-for-faster-troubleshooting/.

    Then, GiveWP has some documentation here: https://givewp.com/documentation/resources/site-redesigns-without-donation-data-loss/.

    Essentially: you need to move your site files and database at the same time. It’s extremely difficult to move just GiveWP data because it is tied into a few different spots in the database.

    We recommend that method because our import and export tools are not designed to import/export donations from/to another website. It’s designed to be historical so that you can download the donations and check them on Excel, for example.

    With that said, the critical error that you experienced might also be related to the importing that you did before, as it looks like a donation amount is missing for some donations. To summarize, GiveWP Export/Import tools were not designed for data migrations, but you can use them to export/import one-time donations. 

    Please let me know if you have further questions.

    I’m always happy to help!

    Plugin Support Robin Joshua Del Mundo

    (@robindelmundo)

    Hi @mi4mama9 ,

    It’s been a while since we’ve heard back, and I know troubleshooting needs a little extra time. I’m marking this as resolved for now, but if you still have questions, you can send them along right here, and I’ll be happy to hop back in.

    Have a great day!

    Thread Starter Alagillina

    (@mi4mama9)

    So, I wasn’t able to completely resolve the issue. I figured out why the donations weren’t displaying by using the legacy view and discovering that some rows from the imported files contained null or zero values, which likely made it difficult to display them in the other mode. So, I deleted those rows, and now the other donations are visible.

    In the end, I decided to leave everything as it is since, fortunately, all the missing donations were self-donations from us, and there were only five.

    In the donor view, I can see the total amounts (both old and new), but I can’t see the individual donations made before the import date.

    Thanks

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘import donations missing’ is closed to new replies.