Sado San
asked 8 years ago

Hello there i just got this message.

Fatal error: Can’t use function return value in write context in /home/—/public_html/wp-content/plugins/dw-reactions-pro/inc/class.main.php on line 188

Please help me

1 Answers
DominicStaff
answered 8 years ago

I have checked and I think it some issue with your theme, In your case, you can try the following solution:
Open the class.main.php file and find the line 188.
Replace the following code:

$count = empty( get_post_meta( $post_id, 'dw_reaction_' . $reaction ) ) ? count( get_post_meta( $post_id, 'dw_reaction_' . $reaction ) ) : 0;

With new code:

$count1 = get_post_meta( $post_id, 'dw_reaction_' . $reaction );
$count = empty( $count1 ) ? count( get_post_meta( $post_id, 'dw_reaction_' . $reaction ) ) : 0;

Hope this helps

Powered by DW Question & Answer Pro