Where do the questions show up?

(My first attempt using Q&A…:wink:

(Related to this forum post: https://premium.wpmudev.org/forums/topic/qa-503-error-when-trying-to-add-an-answer-from-the-back-end )

Logged in as Editor.

Created a new question from Dashboard.

After saving, went to visit the entry at the given URL: http://crescentridgehomeowners.com/questions/what-is-an-hoa-home-owners-association/ but that page is blank.

But this page shows the question: http://crescentridgehomeowners.com/questions/

What’s wrong?

  • PC
    • WPMU DEV Initiate

    Heya Cliff,

    Both the links seem to be working fine. Please see attached scrn shots and notice the address in both of them

    if you see

    http://crescentridgehomeowners.com/questions/what-is-an-hoa-home-owners-association/

    It would open the question body and will give an option to answer the question.

    On the other hand,

    if you open

    http://crescentridgehomeowners.com/questions/

    It will give you the list of all the questions and if you click on a specific question, it will take you to the page on which you will be able to answer the question.

    In this case, the question is What is an HOA (Home Owners Association)? and if you click on that it will take you to http://crescentridgehomeowners.com/questions/what-is-an-hoa-home-owners-association/

    I hope I made it clear for you.

    Pleas mark resolved if you got the point.

    Cheers,

    PC

  • Clifford P
    • The Bug Hunter

    I like your screen shots. :slight_smile:

    Here’s what I saw: http://ScrnSht.com/sevgba

    (from Chrome)

    I opened in IE9 without being logged into the site and saw this: http://ScrnSht.com/bszxel (no arrows up or down)

    (following all in Chrome…:wink:

    I cleared Chrome cache and didn’t see a change.

    I signed out of the user that posted the Q&A question and it displayed properly, like your screen shot.

    I signed back in as the user that posted the question and refreshed the page (Ctrl + F5) and the question disappeared again.

    I signed in as a different user (Administrator) and could see the question.

    I signed in as a different user (Subscriber/Member) and could see the question.

    So it’s like the plugin won’t let you view your own question…

    Anyone else able to replicate this behavior?

  • PC
    • WPMU DEV Initiate

    @joe : I tried to view it quite a few times and also using different browsers. tried to replicate the situation in my own Q&A install on one of my under development websites, alas! I could not replicate the behavior :slight_frown:

    Need expert comment now !

    Rdgs,

    PC

  • Clifford P
    • The Bug Hunter

    Tried something else…

    I logged in as Administrator, posted a new question via Dashboard back-end, and viewed the question. It shows up there and I can answer my own question.

    So this isn’t the same as the other Editor account issue I posted initially.

    Logged out as Admin, logged in as that same Editor, posted a new question via back-end, clicked to view, and AGAIN it’s not displaying.

    Logged out as Editor, logged in as Subscriber (not allowed to post q’s) and went to visit the newly created question (#3) by the Editor ( http://crescentridgehomeowners.com/questions/question-testing/ ) and it’s blank (like the Editor) but allows me to “Click here to be notified of followup answers via e-mail”.

    Same thing happens when I view q#2 (posted by Admin) and q#1 (posted by Editor).

    Although, as Subscriber, I can view all 3 q’s here: http://crescentridgehomeowners.com/questions/

  • Clifford P
    • The Bug Hunter

    I think I figured it out…

    In Questions -> Settings, “Editor” role was set to no options (none checked) – screen shot: http://ScrnSht.com/yuziif

    By default, Administrator can do everything (all boxes checked). Subscriber can “view questions” and “view answers”. Visitor can do Subscriber and also “ask questions” and “add answers”.

    All other roles are assigned NO capabilities (including “Editor”:wink:

    I view this as an error in the plugin…

    In accordance with WordPress default roles and capabilities levels, if Subscriber can do “x”, Editor should be able to do “x” and “y”. And Editor should be able to do “x”, “y”, and “z”.

    Reference for WP User Levels: http://codex.wordpress.org/Roles_and_Capabilities#User_Levels

    P.S. Another fix that needs to be made: If I check boxes, my changes should either auto-save or not let me use the drop-down box without a warning that my newly checked/unchecked boxes will not be saved. Grrr.

    P.P.S. I deactivated and deleted the plugin. Then I re-installed via WPMU DEV updates plugin. All of my questions and options had been restored. For the sake of testing (like now), this is nice. But in terms of plugin awesomeness, shouldn’t all the database entries tied to the plugin be deleted upon plugin deletion too (or, better yet, offer an option to keep or delete)?

    Thank you.

  • aecnu
    • WP Unicorn

    Greetings Clifford,

    Thank you for your feedback and finally getting to the bottom of the malfunction of not having permission-ed the editor to role.

    The part you mentioned concerning user roles is a guideline, but obviously due to the many plugins available to change user roles and customize them the way a user wants do you seriously think they follow those rules? I think not. Evidence is in the fact that the roles you just persmission-ed which allows for many combinations of role allowance, where do the guidelines talk specifically about that?

    In regards to the database deletion option, that has many catches to it to include installations with Multi DB installed or the likes?

    In standard installs this may work, but in MultiSite installations I can see massive problems happening even without Multi DB.

    On a side note, I take it you have now updated to the newest version 1.1.7?

    Cheers, Joe

  • Clifford P
    • The Bug Hunter

    I have the newest version.

    The Codex defines Roles/Capabilities/Levels and I would think that:

    1) The plugin would be pre-configured to follow that structure/permissions by level

    or

    2) The plugin “intro tour” or “setup steps” or whatever would make it very clear that those settings are currently blank and you should set them up.

    You do it however you want, but I didn’t want to waste any more of my time or anyone else’s on something simple like I didn’t realize WP defaults weren’t setup already (plus, since I’ve had so many other shortcomings in WPMU DEV themes and plugins, I assumed something was just wrong).

    Thanks for helping get to the bottom of it.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.