Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Welcome to Codidact Meta!

Codidact Meta is the meta-discussion site for the Codidact community network and the Codidact software. Whether you have bug reports or feature requests, support questions or rule discussions that touch the whole network – this is the site for you.

Comments on Can't post image

Post

Can't post image

+4
−0

I can't post a new answer when that answer contains an image. Clicking Post Answer makes it turn gray, but it then just sits there. I removed the image from the post, and it worked. See https://photography.codidact.com/questions/276303#answer-276768.

The image uploaded normally, and shows up correctly in the preview. The image reference is:

https://photography.codidact.com/uploads/dwN4jGzDoKpHdsA63tJhodTc

JS enabled?

As far as I know. In this case I was using Edge on Win 10. I just looked thru the settings, and didn't see a setting either way.

Anything show up in your browser console?

What's a browser console?

All I saw was the Post Answer button turned gray, and then nothing happened for maybe a minute. I gave up, hit F5, and aborted the attempt to post.

Browser console

I hit F12, clicked on console, then selected and copied the resulting text. I couldn't find a way to save the content directly. In any case, here it is:

HTML1300: Navigation occurred. edit (1,1)

HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier). GET - https://photography.codidact.com/assets/community/photography.css

HTTP404: NOT FOUND - The server has not found anything matching the requested URI (Uniform Resource Identifier). GET - https://photography.codidact.com/assets/community/photography.js

2HTML1500: Tag cannot be self-closing. Use an explicit closing tag. edit (253,15)

SEC7115: :visited and :link styles can only differ by color. Some styles were not applied to :visited. edit (1,1)

Update, 18 Jul 2020

I went back to the original post and tried to include the image again. When I copied in the text I got from hitting the image button several days ago (I saved it on my system locally), I again saw the image in the preview. This time I manually changed the Markup reference to the image to a HTML reference, and it worked. In hindsight, I should have tried the Markup image reference again, but didn't think of it at the time.

So, either the original problem was fixed, or the problem is limited to Markdown image references, with HTML image references working correctly.

Maybe the image button should generate HTML text instead of Markdown text. This is the second time I ran into a problem with it, and both times now changing to HTML got around the problem. It seems that HTML is inherently more stable, which kindof makes sense since ultimately that's what the browser will be given.

19 Jul 2020

I have a suspicion that this is down to the check for alt text, but without a solid repro it's hard to prove that.

What does this "check for alt text" do? I hope you're not requiring people to include alt text for an image. That's a pain in the butt I don't want to have to go thru. If I post an image, that image is necessary for understanding whatever point I'm making. A short description of the image isn't going to help, else I'd have just used that text in the first place.

If I run into this again, what exactly do you want me to try to help diagnose this?

22 Jul 2020

It happened again just now when trying to write this answer. I clicked the image button, and the markdown text was added to my post. The image showed correctly in the preview. I left the auto-generated markdown text on its own, with a blank line before and after.

Clicking the Post Answer button caused the button to go gray, but everything then just hung. I copied the whole answer text to the clipboard, hit F5 which got out of the answer-writing state altogether, clicked on Answer Question again, and pasted the text. The image again showed correctly in the preview. Then I manually changed the markdown to a HTML IMG tag, clicked Post Answer, and it worked.

So, there is something broken with how the system handles markdown text with an image reference. HTML with the same image reference works correctly.

Using Edge on Win 10.

I can't reproduce the problem. In both Firefox and Edge, I start writing an Answer, upload an image. Add a little more text. Try and save, get the Alt Text warning. Save anyway. It works

I was just thinking that this has something to do with other HTML in the post, but I just checked, and in that particular post I used no other HTML or Markdown. I have meanwhile added to the answer so that it contains one HTML H2 heading, but that wasn't there when I ran into the problem.

It is interesting that I never get the Alt Text warning (I'm fine with that, the site shouldn't be so nanny-ish). That may be a clue. Perhaps something is getting hung trying to show me the Alt Text warning? However, that doesn't explain why it works with HTML IMG tag instead of markup, unless that generates no Alt Text warning.

25 Jul 2020

I just posted a question on meta with an image successfully. Instead of editing the Markdown for the image to HTML, I deleted the mention of alt text in the Markdown. I don't remember exactly what the Markdown looked like as a result of the image button but something like "Image alt text" in brackets. I deleted the "alt text" part, and was able to post the question without any problem. Hopefully this is a clue.

History
Why does this post require attention from curators or moderators?
You might want to add some details to your flag.
Why should this post be closed?

1 comment thread

General comments (10 comments)
General comments
ArtOfCode‭ wrote over 4 years ago

Norepro at the moment - JS enabled? Anything show up in your browser console?

ArtOfCode‭ wrote over 4 years ago

Browser console - hit F12 and pick the Console tab, it's where any useful debugging information will go.

Olin Lathrop‭ wrote over 4 years ago

@ArtOfCode: See addition to question.

ArtOfCode‭ wrote over 4 years ago

I have a suspicion that this is down to the check for alt text, but without a solid repro it's hard to prove that...

manassehkatz‭ wrote over 4 years ago · edited over 4 years ago

alt text is highly recommended and serves multiple purposes, including:

  • provide information to those can't view the image (you'd be amazed how many blind people browse the web),
  • provide a preview for those who don't load images automatically - i.e., so they know whether they should bother to load the images or not on a slow connection), and
  • search engines. It only takes a few seconds to add alt text. It doesn't have to be long - 2 to 5 words will usually get the point across.
Olin Lathrop‭ wrote over 4 years ago · edited over 4 years ago

@mana: Maybe, but it shouldn't be required. Personally, I think the reasons you state aren't worth the bother. The surrounding text usually makes it quite clear what the general contents of the image is. Others can of course disagree, and should be able to add any alt text they like.

manassehkatz‭ wrote over 4 years ago

Well, the question/comments here contain enough text to have filled up "alt text" for dozens of images. You can always get lazy with "Figure 1, see text"

ArtOfCode‭ wrote over 4 years ago

Alt text isn't required at any point. The system catches (or is supposed to...) posts that don't have any and throws a reminder saying "hey you might want to add some", but it will still let you post without.

Olin Lathrop‭ wrote over 4 years ago

@Art: I don't recall ever seeing such a message, so that may be a clue. However, I wouldn't want the site to be a nanny like that.

manassehkatz‭ wrote over 4 years ago

I can't reproduce the problem. In both Firefox and Edge, I start writing an Answer, upload an image. Add a little more text. Try and save, get the Alt Text warning. Save anyway. It works.