lizh
asked 8 years ago

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! 🙂

2 Answers
Kevin
answered 8 years ago

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.

lizh
replied 8 years ago

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!

lizh
answered 8 years ago

Hi Kevin, 
I just wanted to follow up on this to see if you know how we can correct this error. Thanks!

Kevin
replied 8 years ago

Hi,

Can you provide me your site username and password PRIVATELY? I’ll help you solve it.

Powered by DW Question & Answer Pro