• Resolved abraxis

    (@abraxis)


    Since upgrading to 5.0.3, I can upload images to the Media Library, but when I try to insert images into new posts, a blank placeholder for the image shows up along with the cryptic message “this image has an empty alt attribute”.

    How do I get my images to show back up?

Viewing 13 replies - 1 through 13 (of 13 total)
  • @abraxis I am personally not yet familiar with how WordPress 5.0.3 handles images, but have you tried accessing the image in the media library, adding information into the alt tag field for that image, then adding the image to a post?

    Nor sure if WordPress added some error messaging for accessibility issues.

    Are you using any kind of image compression plugin? What version of php are you running?

    Thread Starter abraxis

    (@abraxis)

    No image compression plug in. My install is stock. Prior to this problem it was easy to upload pix and write entries.

    When I click on the Media Library and then select a blank square (which is supposed to be the pic that was uploaded, “Attachment Details” shows no photo.

    BUT

    When I click on “Edit Image”, the pic shows up and I can make changes. Then when I click “Save”, it goes back to the “Attachment Details” and is blank again. This began after I updated to 5.0.3.

    here’s how the page turned out. https://walking-ixus.net/blog/?p=1405

    Strange. Have you contacted your hosting company for support here? There may be some caching issue of your host has caching on their side.

    Also, if you’re using JetPack, disable lazy load and the image CDN and see if that’s the issue.

    I am experiencing exactly the same thing. Only when I am using postname as permalink. Oddly, if I upload picture taking from the device (photo on iphone) or screenshot on pc — it works.

    I am using a Windows server. I wasn’t able to get pretty permalinks to work without install the microsoft urlrewrite module.

    Any known causes or fixes?

    I figured it out!

    First, to get permalinks to work on Windows with the 5.03 version of WordPress, you have to install the URL Rewrite module from Microsoft.

    Then, you have to change the web.config file in the root wordpress directory with this within side the <rules></rules>

    <rule name="Imported Rule 1" stopProcessing="true">
                <match url="^index\.php$" ignoreCase="false"/>
                <action type="None"/>
            </rule>
    
            <rule name="Redirect Image to HTTP" stopProcessing="true">
                <match url=".*\.(gif|jpg|jpeg|png|css|js)$" ignoreCase="true"/>
                <action type="Rewrite" url="{R:0}"/>
            </rule>
    
            <rule name="Imported Rule 2" stopProcessing="true">
                <match url="." ignoreCase="false"/>
                <conditions>
                    <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true"/>
                    <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true"/>
                </conditions>
                <action type="Rewrite" url="/index.php"/>
            </rule>

    To see the source for my discovery, go to:

    https://stackoverflow.com/questions/32349542/wordpress-500-url-rewrite-module-error

    • This reply was modified 5 years, 10 months ago by Michael C.
    Thread Starter abraxis

    (@abraxis)

    My installation is stock. No mods or any playing around with code. Click “install” and it works. Or used to work. Is there something different that the current version of WP did differently than all the previous versions that worked?

    Thread Starter abraxis

    (@abraxis)

    Something new. When I went into code view to inspect the posts that had pictures, the picture files code went like this: IMG_6460.jpg?fit=525%2C394″ alt=”” . That alt=”” shows in both my posts that show the photo and the ones that don’t. Comments? Help?

    Thread Starter abraxis

    (@abraxis)

    OK, opened up a ticket with my host. They moved everything to PHP 7.X from 5.4X. Now everything works as it should. Maybe the new version of WP needed 7?

    Solved..

    Hello I am experiencing the same issue “this image has an empty alt attribute”
    I have everything updated including WordPress and all plugins and it is not working. It was working perfectly fine two weeks ago. Any ideas on what I need to do?

    Hello,
    I have a problem about SEO side because WordPress doesn’t save the alt images I put into my pictures. In other words, when I insert words in the alternative text (alt tag), wordpress saves the tag, but then in the html code there is no name. In this way I suffer a SEO penalty. Can someone help me? Thanks

    I have this problem with 5.2.2, any ideas? i have tried all these steps plus tried to upload a plugin. nothing has worked.

    I am also experiencing this problem with Version 5.2.2. “This image has an empty alt attribute”. I note that this topic is marked as “resolved”. I am new to these forums. Can someone please advise whether it should be re-opened as an unresolved issue? Thank-you.

    Hi all… I’ve worked out a solution…

    When doing a new post:

    Rename your image so it has at least a word or two of descriptive text in its title.
    Upload it.
    Click “Block” on the right panel.
    A box showing “Alt Text” should show under “Image Settings”. Fill in as many words as you like, describing the image. “This is an image of etc…”
    Publish when ready…
    (The whole idea is it’s part of a system to aid the visually impaired, so if they reach that part of your page, they get a description of your image… if the field is left empty, they get no information).

    This seems to work!

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘This image has an empty alt attribute, 5.0.3’ is closed to new replies.