Hi,
We’re trying to add the categories widget to our sidebar but it shows on error. I’ve attached a screenshot to show you the error code. Any help greatly appreciated! 🙂
Hi lizh,
Thank you for contacting DesignWall! My name is Kevin and I am happy to be of assistance in this matter.
You can go to wp-content/plugins/dw-question-answer/inc/widgets/Category_Question.php
then replace the code at line 24 from
if ( $question_categories ) {
to
if ( $question_categories && !is_wp_error( $question_categories ) && is_array( $question_categories ) ) {
Let me know if there is anything else I can help you with.
Warm Regards,
Kevin.
Hi Kevin,
Sorry for the delay getting back to you. Our tech team just tried this and now receive this error code:
“Object of class WP_Error could not be converted to string on line 28 in file /srv/www/public_html/healthmatchup/wp-content/plugins/dw-question-answer-pro/inc/widgets/Category_Question.php”
Thanks for your help!
Hi Kevin,Â
I just wanted to follow up on this to see if you know how we can correct this error. Thanks!
Hi,
Can you provide me your site username and password PRIVATELY? I’ll help you solve it.
Please login or Register to submit your answer