• Resolved frankieandshadow

    (@frankieandshadow)


    Hi,
    The 0.12.6 update crashes site pages for me (“a critical error has occurred on your site”). The problem is at line 429 of includes/front.php where it is trying to call $xmlget->attributes() but $xmlget isn’t a handle it is Boolean FALSE. That’s because simplexml_load_string is failing, so returning FALSE. Now, you’re not going to like this… it is failing because I am using the plugin to load PNG files, as well as SVG. I know this isn’t what was intended, but it has worked for many years like that, I just had to cheat slightly when selecting the file.

    So, when it reads the file it gets PNG content, which naturally simplexml won’t read. You might be inclined to dismiss that because I’m not quite doing what was intended, but I think it would also happen in the case of a malformed SVG file. I think it would be very helpful if the result of simplexml_load_string were checked and the remaining code only executed if it succeeds.

    Unfortunately I only discovered this on my live site, as on a test version, the file_get_contents just above failed because my test site is behind a basic-auth password, so a request without the password over HTTP failed. But it failed safe, as the img tag was still then generated correctly (except the width and height attributes on the image weren’t set correctly), it just skipped the sanity check that this version added. If it can skip that check when the file fails to read, I think it is reasonable to also skip if it can’t read in the XML reader either. In either case, I think it should then omit the width and height attributes.

    For the moment, I am just going to leave it on the older plugin version rather than change the code locally.

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • The same here … 0.12.6 crashes the hole site.
    It’s a bootstrap based theme. The menu overlaps the site.
    “WP Rollback” helps to go back.

    I am having the same problem right now.

    Plugin Author Themeisle

    (@themeisle)

    Hi there,

    The issue should be solved in the most recent release.

    Sorry for any inconvenience!

    @themeisle https://i.ibb.co/Yhr3WYp/IMG-20210507-151222.jpg
    The problem has gotten worse. No longer does svg load at all.

    The first server also increases the response time. :/

    • This reply was modified 5 years, 1 month ago by tryigitx.
    Plugin Author Themeisle

    (@themeisle)

    Hi @ tryigitx,

    That’s strange, we have reviewed the code and added a new fix that should address those use cases.

    Let me know if everything is fine.

    Thread Starter frankieandshadow

    (@frankieandshadow)

    It does indeed fix the problem for me (the original reporter). Thank you very much!

    tryigitx

    (@tryigitx)

    @themeisle very good. Problem solved, thank you

    edit: I’ve noticed that there’s still a width height problem on Pagespeed right now. It doesn’t matter to me, but it could be for someone else.

    • This reply was modified 5 years ago by tryigitx.
Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘0.12.6’ is closed to new replies.