Quantcast
Channel: WordPress.org Forums » [Flutterwave Payments] Reviews
Viewing all articles
Browse latest Browse all 2

Error on PHP 8 (2 stars)

$
0
0

Replies: 0

Rating: 2 stars

The plugin stopped working on PHP 8. It gave this error:

Uncaught TypeError: count(): Argument #1 ($value) must be of type Countable|array, string given in /…./…./…/wp-content/plugins/rave-payment-forms/includes/rave-shortcode.php

In PHP8.0, it’s compulsory to define types on Count.
count((array)$XYZVariable);

Bearing that in mind, I fixed that by editing:

Line 120
'extra_count' => count((array)$extra_fields), // I added (array)

Line 136
if(count((array)$extra_fields) != 0){ // I added (array)

Flutterwave team, please update the plugin as soon as possible.


Viewing all articles
Browse latest Browse all 2

Trending Articles