3

I encountered this today: Reference - What does this error mean in PHP?

I found it as I reviewed for reopening an admittedly poor question: can't upload image in PHP to mysql

This question was marked as a duplicate of the list-of-erorrs reference question as well as another question explaining how to log errors, presumably because the poster had not included the actual error message in their post.

I know I'm not the biggest SO user but I don't see how that is:

  • Useful
  • Not douchy

I find two problems here, the first is just with regards to the particular closed question. Closing it as a duplicate of a question describing how to log errors is not accurate, as that is not what it is asking. If the poster needs to include an error message, preferably tell them that, or at least close it in another way. ESPECIALLY if the poster is a new SO user.

My second issue: is a programming novice really supposed to look through this, find their error, go the 'answer' explaining that error, and then attempt to understand the general cases where that error happens well enough to apply them to their particular solution?

Why is this a list of "answers" instead of individual questions that could themselves be marked as duplicates?

What actually should have happened here?

5
  • 1
    First of all, is the question answerable as of current writing? Are the dupes considered helpful? If it's not answerable without guessing much, and the current dupes are considered helpful (my guts say yes), then I think it's justified, since otherwise the question would be closed as a more vague "unclear" or "debugging problem", so there's no different on the result.
    – Andrew T.
    Commented Oct 18, 2018 at 2:41
  • 3
    You'll have to focus on cause and effect to get somewhere. The cause was a "it doesn't work" question, the effect was links to posts that show how to add the required error checking and how to interpret those errors. You want a different kind of effect, tell us what should have happened. Commented Oct 18, 2018 at 7:21
  • @braiam The linked duplicate has no mention to the problem mentioned in this question, so it implies that closing unclear as duplicate is wrong - correct?
    – user202729
    Commented Oct 20, 2018 at 2:16
  • @user202729 it asks what to do with unclear question. This question asks what should have happened with an unclear question. If you remove the time sensitive from the later to ask "what should happen", both questions ask the same thing.
    – Braiam
    Commented Oct 20, 2018 at 12:30
  • Ok it's a little ridiculous this question suffered the same fate, being closed as duplicate of something more general that doesn't answer the specific issue. But anyways... what is the answer? The linked question doesn't actually mention closing as duplicate at all. Does that mean that the original post in question shouldn't have been closed as a duplicate?
    – Dave
    Commented Oct 26, 2018 at 1:02

1 Answer 1

4

Close it the other way would be unclear what you're asking or No MCVE. Because I don't see how useful it will be to answer that question given the lack of details about errors or debug info. No future visitor will benefit from it as they will not find that particular question in their search. At best they stumble upon it.

The question you linked to is incomplete and don't include any errors that code produces or an debug attempt.

Of course is closing and linking to a carefully curated and maintained canonical the right action. It is extremely helpful for that specific user that seem to be new to that language (and SO). It is a win-win.

13
  • 7
    How is it helpful? The user just sees that someone closed their question as a duplicate of something that it is not a duplicate of, and is confused. At best, if they understand the "hint" the closer is giving, it is passive-aggressive. I think it would be a lot better to link to the 'How to Ask' page, either manually or by one of the closing types that automatically adds that link to the question.
    – Dave
    Commented Oct 18, 2018 at 5:28
  • 1
    We can't solve their confusion. They have been handed the info they need to work out the problem on their own. Moderating a post is not passive-aggressive. If they want help no matter what they should visit a forum.
    – rene
    Commented Oct 18, 2018 at 5:32
  • 5
    Remember, duplicates are not only useful for the asker, but for the future readers. In what way someone that has the same vague question would find that monstrosity helpful?
    – Braiam
    Commented Oct 18, 2018 at 6:18
  • @Braiam I don't judge the quality of that PHP canonical because I can't and won't. If you ask me that whole PHP should be blacklisted but I'm only a by-stander and I'm sure the PHP tag followers have enough knowledge around to make that judgement call and/or come up with something that better suits these kind of needs. I'm only answering the meta question.
    – rene
    Commented Oct 18, 2018 at 6:23
  • You don't need to evaluate the quality of php question, because... it's not a question. It's a list.
    – Braiam
    Commented Oct 18, 2018 at 22:24
  • @Braiam Of course if they have the same vague question, they need to log errors to find out their exact cause, because the cause is almost surely different.
    – user202729
    Commented Oct 19, 2018 at 3:20
  • @Dave Would leaving a comment saying "Your question is too vague. You need to give more information, first turn on logging and see if there is any error message. See more details at <...>" useful?
    – user202729
    Commented Oct 19, 2018 at 3:21
  • @user202729 then close it as unclear. Duplicate implies that the answer to that question is in the other question, but if you can't even answer the question you are closing, how can you say what the answer is?
    – Braiam
    Commented Oct 19, 2018 at 14:23
  • @user202729 that doesn't need voting to close.
    – Braiam
    Commented Oct 19, 2018 at 15:13
  • @Braiam Uh, my point is, your suggestion (VTC as unclear and leave no comment, if I understood correctly) is less useful than the current way (VTC as duplicate).
    – user202729
    Commented Oct 19, 2018 at 15:22
  • @user202729 useful in what sense? An vague question linking to a list isn't in my book. If you want to help the OP to make their question answerable, just comment what the question lacks. Voting to close an unclear question is what should be done in any case.
    – Braiam
    Commented Oct 19, 2018 at 16:26
  • @Braiam So tl;dr you think that it's better to VTC as unclear and comment with a link to the "how to debug" question instead of VTC as duplicate. Post it (as an alternative answer?) and see how the community votes.
    – user202729
    Commented Oct 19, 2018 at 17:08
  • @user202729 no, I don't think it's better. It's The Right Thing™ to do. That's what the help center says we should use comments and close votes for. Also, that answer wouldn't answer this question.
    – Braiam
    Commented Oct 19, 2018 at 18:38

Not the answer you're looking for? Browse other questions tagged .