• Resolved mdegive

    (@mdegive)


    I just installed your plugin and WP reported this:

    WordPress version 6.4.1
    Active theme: Astra (version 4.5.0)
    Current plugin: Give – Donation Plugin (version 3.1.1)
    PHP version 7.4.33
    Error Details ============= An error of type E_ERROR was caused in line 155 of the file /home1/homesfo7/public_html/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php. Error message: Uncaught TypeError: Argument 2 passed to Give\Framework\Support\ValueObjects\Money::fromDecimal() must be of the type string, null given, called in /home1/homesfo7/public_html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php on line 147 and defined in /home1/homesfo7/public_html/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php:155 Stack trace: #0 /home1/homesfo7/public_html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php(147): Give\Framework\Support\ValueObjects\Money::fromDecimal(NULL, NULL) #1 /home1/homesfo7/public_html/wp-content/plugins/give/src/Donations/Models/Donation.php(276): Give\Donations\DataTransferObjects\DonationQueryData::fromObject(Object(stdClass)) #2 /home1/homesfo7/public_html/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(115): Give\Donations\Models\Donation::fromQueryBuilderObject(Object(stdClass)) #3 /home1/homesfo7/public_html/wp-content/plugins/give/src/Framework/Models/ModelQueryBu

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @mdegive.

    Glad you reached out.

    We’ve seen some reports of this issue and they were all related to corrupted donations on the back end. Can you check your donations under donations > donations and check for corrupted donations?

    These donations might not have a form name, a donor, or the donation amount equal to 0. If there are donations like that, you will need to delete them.

    Before taking any steps for troubleshooting or updating, 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/

    After that, let us know if the issue persists.

    Looking forward to helping you get to the bottom of this!

    Thread Starter mdegive

    (@mdegive)

    I have not event implemented the plugin, this happened after install!

    @matheusfd, I’m experiencing the same issue as the OP describes. There are only 2 donations so far, neither appear corrupted. The form does not show up as it did before. Thank you for any assistance.

    Error Details
    =============
    An error of type E_ERROR was caused in line 155 of the file /home/customer/www/*** .com/public_html/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php. Error message: Uncaught TypeError: Argument 2 passed to?Give\Framework\Support\ValueObjects\Money::fromDecimal() must be of the type string, null given, called in /home/customer/www/***.com/public_html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php?on line 148 and defined in /home/customer/www/***.com/public_html/wp-content/plugins/give/src/Framework/Support/ValueObjects/Money.php:155
    Stack trace:
    #0 /home/customer/www/***.com/public_html/wp-content/plugins/give/src/Donations/DataTransferObjects/DonationQueryData.php(148):?Give\Framework\Support\ValueObjects\Money::fromDecimal(NULL, NULL)
    #1 /home/customer/www/***.com/public_html/wp-content/plugins/give/src/Donations/Models/Donation.php(276):?Give\Donations\DataTransferObjects\DonationQueryData::fromObject(Object(stdClass))
    #2 /home/customer/www/***.com/public_html/wp-content/plugins/give/src/Framework/Models/ModelQueryBuilder.php(115):?Give\Donations\Models\Donation::fromQueryBuilderObject(Object

    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, all!

    We’re committed to understanding what happened on your site and resolving any issues. To dig deeper into the matter, we might need further access. Could you please reach out to us via https://givewp.com/contact-us/? Select the option ‘I am responding to a request to contact you,’ and in the message field, refer to the current ticket.

    Looking forward to helping you get to the bottom of this!

    i am also having issues after a payment is made

    there are no donations that equal 0.

    [11-Apr-2024 06:24:27 UTC] PHP Fatal error: Uncaught Give\Framework\Exceptions\Primitives\InvalidArgumentException: ‘firstName’ is required. in /public_html/wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php:321
    Stack trace: 0 /wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php(186): Give\Donors\Repositories\DonorRepository->validateDonor(Object(Give\Donors\Models\Donor)) 1 /wp-content/plugins/give/src/Donors/Repositories/DonorRepositoryProxy.php(63): Give\Donors\Repositories\DonorRepository->update(Object(Give\Donors\Models\Donor)) 2 /wp-content/plugins/give/src/Donors/Models/Donor.php(145): Give\Donors\Repositories\DonorRepositoryProxy->__call(‘update’, Array) 3 /wp-content/plugins/give/src/DonationForms/Actions/GetOrCreateDonor.php(33): Give\Donors\Models\Donor->save() 4 /wp-content/plugins/give/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php(344): Gi in /public_html/wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php on line 321

    [11-Apr-2024 06:30:40 UTC] PHP Fatal error: Uncaught Give\Framework\Exceptions\Primitives\InvalidArgumentException: ‘firstName’ is required. in /public_html/wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php:321
    Stack trace: 0 /wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php(186): Give\Donors\Repositories\DonorRepository->validateDonor(Object(Give\Donors\Models\Donor)) 1 /wp-content/plugins/give/src/Donors/Repositories/DonorRepositoryProxy.php(63): Give\Donors\Repositories\DonorRepository->update(Object(Give\Donors\Models\Donor)) 2 /wp-content/plugins/give/src/Donors/Models/Donor.php(145): Give\Donors\Repositories\DonorRepositoryProxy->__call(‘update’, Array) 3 /wp-content/plugins/give/src/DonationForms/Actions/GetOrCreateDonor.php(33): Give\Donors\Models\Donor->save() 4 /wp-content/plugins/give/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php(344): Gi in /public_html/wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php on line 321

    [11-Apr-2024 06:31:56 UTC] PHP Fatal error: Uncaught Give\Framework\Exceptions\Primitives\InvalidArgumentException: ‘firstName’ is required. in /public_html/wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php:321
    Stack trace: 0 /wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php(186): Give\Donors\Repositories\DonorRepository->validateDonor(Object(Give\Donors\Models\Donor)) 1 /wp-content/plugins/give/src/Donors/Repositories/DonorRepositoryProxy.php(63): Give\Donors\Repositories\DonorRepository->update(Object(Give\Donors\Models\Donor)) 2 /wp-content/plugins/give/src/Donors/Models/Donor.php(145): Give\Donors\Repositories\DonorRepositoryProxy->__call(‘update’, Array) 3 /wp-content/plugins/give/src/DonationForms/Actions/GetOrCreateDonor.php(33): Give\Donors\Models\Donor->save() 4 /wp-content/plugins/give/src/LegacyPaymentGateways/Adapters/LegacyPaymentGatewayAdapter.php(344): Gi in /public_html/wp-content/plugins/give/src/Donors/Repositories/DonorRepository.php on line 321

    when i look in the error area

    { “exception”: { “File”: “DonorRepository.php”, “Line”: 321, “Message”: “‘firstName’ is required.”, “Code”: 0 } }

    how do i combat this

    • This reply was modified 11 months, 2 weeks ago by dougnorfolk.
    • This reply was modified 11 months, 2 weeks ago by dougnorfolk.
Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WordPress caught an error with one of your plugins, Give – Donation Plugin’ is closed to new replies.