GiveWP should not break Bulk Actions
complete
d
devilsan
As an admin, I want to bulk-edit my posts. However, when I try to do it, I get the following error:
Fatal error: Uncaught TypeError: abs(): Argument #1 ($num) must be of type int|float, array given in /public_html/wp-content/plugins/give/src/FormBuilder/Routes/EditFormRoute.php:22
This post was marked as
complete
Danny Burdiez
What can I do to recover from this? I used the Bulk Edit with PHP 8.2
I now receive a lot of errors like the one below:
"Deprecated: Return type of MyCLabs\Enum\Enum::jsonSerialize() should either be compatible with JsonSerializable::jsonSerialize(): mixed, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /var/www/wordpress/wp-content/plugins/give/vendor/myclabs/php-enum/src/Enum.php on line 246"
Or 502 Errors with Debug disabled.
This post was marked as
in progress
Angela Bowman
This is a PHP 8 issue. Rolling the site back to PHP 7.4 will resolve it.
J
James MacArthur
Can we get an update on this?
Angela Bowman
James MacArthuri - I did testing on a site. It is a PHP 8 and above issue. If you roll the site back to PHP 7.4, the issue is resolved. I have reported to support team via https://wordpress.org/support/topic/givewp-causes-fatal-error-when-using-bulk-edit-of-pages-posts/
The support team considers this an "edge case", but I tried to convey that bulk editing posts/pages is definitely not "edge" but normal WordPress activity.