• Resolved Daniel Eden

    (@daneden)


    I just installed Hammy and absolutely love it; it’s a great solution to the responsive images challenge. One (pretty big) problem, though; some, perhaps most, of my images simply aren’t loading. Looking at the PHP error log, I keep seeing the following message:

    DOMDocument::loadHTML(): error parsing attribute name in Entity, line: 1 in […]/wp-content/plugins/hammy/hammy.php on line 113

    The HTML produced looks like this:

    <picture class="hammy-responsive aligncenter size-full wp-image-1834" alt="Gateway Home Page" title="">
        &ltnoscript> […] </noscript>
        <img src="undefined" style="undefined" alt="..." scale="0">
    </picture>

    https://www.ads-software.com/plugins/hammy/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Daniel Eden

    (@daneden)

    I think I’ve figured out what the problem is. An absence of width/height attributes in the original post means that hammy.php can’t process them. Could the plugin be updated to overlook this problem?

    Plugin Author Noel Tock

    (@noel_tock)

    Definitely, thanks for that! How are you inserting images then if you don’t mind me asking?

    Thread Starter Daniel Eden

    (@daneden)

    I’ve actually switched my blog to Jekyll since submitting this issue (Don’t worry; it wasn’t the plugin that made me switch!) but I’m still happy to try and help.

    The images were just added using the WordPress editor. There didn’t seem to be any particular pattern or difference between the images that worked and those that didn’t, besides the absence of width/height attributes. I often removed the attributes myself to make responsive design easier.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘“Error Parsing Attribute Name in Entity”’ is closed to new replies.