babble icon indicating copy to clipboard operation
babble copied to clipboard

Error right after installation

Open JatGitHub opened this issue 3 years ago • 1 comments

When installing Babble on Wordpress 5.6 NL I get this error (warning)

Warning: Parameter 2 to Babble_Post_Public::the_posts() expected to be a reference, value given in /home/divineful1/domains/divinefulness.info/public_html/wp-includes/class-wp-hook.php on line 287

Please advice

JatGitHub avatar Jan 07 '21 15:01 JatGitHub

After beigh searching for a little bit, i went to class-post-public.php file and edited the line 536 from: public function the_posts( array $posts, WP_Query & $wp_query ) {

to this: public function the_posts( array $posts, WP_Query $wp_query ) {

the "&" is to pass references trough variables.

The error dissapears but in future updates if is not fixed it wil return.

carrasko avatar Jan 14 '21 10:01 carrasko