Error after submitting a question while logged in
-
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 1210After 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!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Error after submitting a question while logged in’ is closed to new replies.