• Thanks for the plugin, I really needed it!

    I added it to my fresh wordpress installation with a custom theme. After I activated the plugin, I added theee product urls. When the product edit page reloaded after saving, I started getting JSON parse error:

    SyntaxError: JSON.parse: unterminated string at line 1 column 47 of the JSON data

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ege Sertçetin

    (@egesu)

    I found the problem and solution:

    I used single quotes in my button text. In admin/class-mepu-woo-additional-fields.php line 80, the object is encoded without converting single quotes which breaks the HTML. So JSON_HEX_APOS constant should be passed to json_encode function as second parameter.

    Plugin Author Pawel Cmachowski

    (@cmachu)

    Hello,

    Thank you for notice and solution.
    I will update the plugin with your fix on version 1.1.0.

    Best,
    Paul

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Javascript error in product edit page’ is closed to new replies.