isabelrb
asked 7 years ago

Hi, when I post a question I get this error: 
 Trying to get property of non-object in /home/asochin/public_html/wp-content/plugins/dw-question-answer/inc/User.php on line 152

Warning: Cannot modify header information – headers already sent by (output started at /home/asochin/public_html/wp-content/plugins/dw-question-answer/inc/User.php:152) in /home/asochin/public_html/wp-includes/pluggable.php on line 1210
After I go back to the question page the question is posted, but I still get the error page every time I try to post a question.
Please help
Thank you. 

1 Answers
DominicStaff
answered 7 years ago

Please send me username & password of your site for further checking.

isabelrb
replied 7 years ago

Hi, I don’t fell confortable posting that information here, can you give me an email to send you the information. Thank you.

Dominic Staff
replied 7 years ago

You can send me your account via the email: [email protected]

isabelrb
replied 7 years ago

Thank you, I asked the hosting service to update to the latest PHP version, and now it works.

Dominic Staff
replied 7 years ago

If you have any issue or question, please let me know, I will check and help you resolve this issue.

isabelrb
replied 7 years ago

I’m still getting the error but now it’s only with comments, when I post questions or answers it works fine. The comments do get posted, but it still gives me the same error

binutz
replied 7 years ago

I have encountered the same problem with DW Q& A plugin ,after upgrading my wardress to 4.8.1.
. I get the same error on both my localhost install and the live site.

Following is the message that I get:

<hr />

D:\wamp\www\skiaxpro\wp-content\plugins\dw-question-answer\inc\User.php:152) in D:\wamp\www\skiaxpro\wp-includes\pluggable.php on line 1210

Looking for s solution..

binutz
replied 7 years ago

Hi , I found the solution by searching this forum for similar questions! Please check out the following link: :
https://www.designwall.com/question/err-notice-trying-to-get-property-of-non-object-in-user-php/

As per the instruction,found there,I edited the code on – plugins\dw-question-answer\inc\User.php:152. It solved my issue at both live site & localhost.
Hope this helps.

isabelrb
replied 7 years ago

Thank you! that solved it!

Dominic Staff
replied 7 years ago

Thank Binutz for your help. I appreciate it.
If you have any issue or question, please let me know, I will help you resolve it.

Powered by DW Question & Answer Pro