• Resolved Sean

    (@twellve_million)


    Hi there!

    First of all, thank you for this great plugin. It works well, except when I need to use it with the ACF WYSIWYG field.

    I’ve noticed that after the bulk conversion process is completed, the HTML tags in the content of ACF WYSIWYG fields are encoded into HTML entities.

    For example:
    This:
    <h1>Hello</h1> <strong>World</strong>
    Become this:
    u003ch1u003eHellou003c/h1u003e u003cstrongu003eWorldu003c/strongu003e

    As you can guess, this is problematic since there’s no way to revert this once the process is finished. Do you have any thoughts on why this might be happening?

    Thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author giuliopanda

    (@giuliopanda)

    Hi, sorry for the error, I guess there is a bug in the code, but I can’t reproduce it!
    I did a test with a Wysiwyg type ACF field and it didn’t give me this error.
    I tried uploading an image into the field and the plugin successfully replaced it from jpeg to webp.

    My plugin actually searches for images in the postmeta and replaces them. But it doesn’t apply any conversions to the rest of the content. Also if there isn’t an image inside the field it shouldn’t do anything!

    Can you help me better understand the error and when it occurs?
    Can you try disabling all other plugins and bulking again?

    I’m sorry about the problem! I’ll try to delve deeper.

    Giulio

    P.S. Do you know what character set your database works in?

    Thread Starter Sean

    (@twellve_million)

    I’m not sure about the character set, but I tried it both in Pantheon and in my local (fresh install).

    But, I think you got me wrong. What you tested was uploading an image to a wysiwyg ACF field, what I mentioned was about broken HTML tags.

    Can you please try to create a new page, add an ACF custom block that uses a wysiwyg field, then run the conversion?

    The HTML tags there will be converted to HTML entity after the process.

    Plugin Author giuliopanda

    (@giuliopanda)

    Hi, I tried as you say, but it doesn’t change the characters of the html tags like it happens to you.

    I recommend you change plugins! I don’t know why this happens to you, but it’s a terrible thing!
    In the meantime I will try to reproduce the error to correct it, but at the moment I don’t know how.
    If it’s not a problem for you, can you list me the plugins you use so I can try to create a similar environment.

    Good luck

    Plugin Author giuliopanda

    (@giuliopanda)

    I was unable to reproduce the error. Let me know if you can give me some more information to try to recreate this bug.

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.