• Resolved Jaro

    (@pixtweaks)


    Hi, we added EAN plugin and the website went down. From log I found out that it was this plugin,

    Uncaught TypeError: json_decode(): Argument #1 ($json) must be of type string, array given
    Line: 599
    Error: 1 E_ERROR – Fatal run-time errors
    wp-content/plugins/woo-multi-currency/frontend/price.php

    Issue was that to database, probably ean plugin wrote instead of json, the serialized array, and that’s automatically unserialized

    Here is how I fixed it. Please fix it in the next release. Thank you!
    https://pastebin.com/CAnhrZFA

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support villasupport

    (@villasupport)

    Hi,

    Thank you for sharing your knowledge.

    Your method will be reviewed and included in our next update.

    Best regards.

    Thread Starter Jaro

    (@pixtweaks)

    Hello @villasupport

    the same situation is in /woo-multi-currency/admin/product.php line 97
    There could another instance, but I have no time to scan it.
    Regards,
    Jaro

    Plugin Support villasupport

    (@villasupport)

    Hi,

    The issue has been resolved and is awaiting an update, but not all potential scenarios have been addressed. Please check for conflicts as our saved data is always encoded. There might be a third-party intervention affecting when the data is saved.

    Best regards.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Fatal error because of wrong data type’ is closed to new replies.