• Resolved Angela Bowman

    (@askwpgirl)


    GiveWP plugin throws a fatal error when using Bulk Edit to change any bulk edit options such as Publish Status or Allow/Do Not Allow comments. De-activating GiveWP allows Bulk Edit functions to work normally.

    Using WordPress 6.4.3 and GiveWP ?3.3.1.

    To reproduce, try to bulk edit several pages or posts.


    PHP Fatal error: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, array given

    #0 /www/wp-content/plugins/give/src/FormBuilder/Routes/EditFormRoute.php(22): abs()
    #1 [internal function]: Give\FormBuilder\Routes\EditFormRoute->__invoke()
    #2 /www/wp-content/plugins/give/src/Helpers/Hooks.php(43): call_user_func_array()
    #3 /www/wp-includes/class-wp-hook.php(324): Give\Helpers\Hooks::Give\Helpers\{closure}()
    #4 /www/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters()
    #5 /www/wp-includes/plugin.php(517): WP_Hook->do_action()
    #6 /www/wp-admin/admin.php(175): do_action()
    #7 /www/wp-admin/edit.php(10): require_once('...')
    #8 {main}
Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Angela Bowman

    (@askwpgirl)

    Clarification: when using bulk edit on ANY post type, such as pages or posts. Must disable GiveWP to use any WordPress bulk edit function.

    This happened on a new install of WordPress. Happy to test further. Quick Edit works fine.

    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @askwpgirl.

    Glad you reached out.

    We’ve investigated it and we found that you’ve uncovered an edge-case issue with our GiveWP plugin.

    I’ve escalated this to our development team so they can work on a fix. You can follow up on the progress of the fix here: https://feedback.givewp.com/bug-reports/p/givewp-should-not-break-bulk-actions.

    We are actively tracking user issues to make sure our dev team is aware of them and can get them fixed. You can use the link to check in for updates or to provide additional details of your own.

    Give the post above a look, and let me know if you would like me to add any additional details. I want to ensure your need is as accurately reflected as possible, and I’m happy to include an internal note to our teams with any specific information you would like them to have.

    While we work on a fix, feel free to message us if you have further questions or need any additional assistance!

    Thread Starter Angela Bowman

    (@askwpgirl)

    This is not an edge case issue. I did some more testing and found this is a PHP 8 issue. Is GiveWP not supporting PHP 8 yet?

    I can reliable reproduce on any site running PHP 8.x and only GiveWP plugin. It works fine with PHP 7.4.

    Here is a Loom: https://www.loom.com/share/ffb4696f9ea7449295396b3369897de7?sid=8698bed8-f6d8-4c45-9da4-6b71c499baa4

    I would not put this off as an edge case. Bulk editing posts and pages is a normal WordPress activity and Give should not be throwing PHP errors when that is done.

    Plugin Support Matheus Martins

    (@matheusfd)

    Hi, @askwpgirl. Thanks for this. I’ll loop in the dev team to take a look at the PHP compatibility, too.

    Have a great day! ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘GiveWP causes fatal error when using Bulk Edit of pages/posts’ is closed to new replies.