apalfrey
asked 7 years ago

We’re developing a website for a client who wishes to have a question and answer system.
A user who is not logged in can submit a question absolutely fine. However, when a user is logged in (tested with our admin account), the question still submits, but there are some errors that appear and prevent the page from redirecting to the question. The errors present are;

Notice: Trying to get property of non-object in /home/project/public_html/wp-content/plugins/dw-question-answer/inc/User.php on line 152

Notice: Trying to get property of non-object in /home/project/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/project/public_html/wp-content/plugins/dw-question-answer/inc/User.php:152) in /home/project/public_html/wp-includes/pluggable.php on line 1210

After looking at the code, for some off reason, the issue comes with the $post global, where it doesn’t appear to be an object…
Any help would be appreciated!

1 Answers
DominicStaff
answered 7 years ago

Please send me username & password of your site for further checking. We have checked on our demo and see that it working fine. 

apalfrey
replied 7 years ago

Sent the login details to [email protected] along with some elaboration of what we are using on the dev site.

apalfrey
replied 7 years ago

The same seems to also happen when commenting on a question or answer, but not when answering a question…

More errors occur while editing an answer, but not when editing a question or a comment;
<pre><b>Notice</b>: A non well formed numeric value encountered in <b>/home/nxo/public_html/wp-content/plugins/dw-question-answer/inc/Handle.php>/b> on line <b>577</b>

<b>Notice</b>: A non well formed numeric value encountered in <b>/home/nxo/public_html/wp-content/plugins/dw-question-answer/inc/Handle.php</b> on line <b>577</b>

<b>Warning</b>: Cannot modify header information – headers already sent by (output started at /home/nxo/public_html/wp-content/plugins/dw-question-answer/inc/Handle.php:577) in <b>/home/nxo/public_html/wp-includes/pluggable.php</b> on line <b>1210>/b></pre>

Dominic Staff
replied 7 years ago

I will check the inbox and we will help you check your issue.

apalfrey
replied 7 years ago

Hello, I was wondering if you were able to figure out what was going on?

Dominic Staff
replied 7 years ago

Please accept my apology for the delay in getting back to you.
I have checked the email and I can not find your email with the username & Password of your site. I think you should check and send me your username & Password for further checking, I will help you resolve it as soon as possible.

apalfrey
replied 7 years ago

Hi Dominic, I’ve forwarded the email to you again at [email protected]

Dominic Staff
replied 7 years ago

I will check it now.

Powered by DW Question & Answer Pro