Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • I just remembered. There is a problem with this plug-in. See the post called “Mime type media”.

    You have to add a few lines to “wp-content/plugins/woo-media-api/class-woocommerce-media-api-controller.php”

    This worked for me.

    I added the same Allow_Unfiltered and got the same result as you. I noticed in the media json reply there is a big hint:

    “media_type”: “file”,
    “mime_type”: “application/json”,

    The media_type should be image and the mime_type should be image/jpeg (in my case).

    In the body of my post I state the media_type and mime_type:
    {
    “date”: “2020-09-25T01:15:55”,
    “title” :”test.jpg”,
    “media_type”: “image”,
    “mime_type”: “image/jpeg”,
    “slug” : “test-logo”,
    “media_attachment”: “/9j/4AAQSkZJRgABAgECWAJYAAD/wAARCADUAZAD…”
    }

    It appears those parameters are being ignored. Which is why WP won’t let the file upload unless the filter is turned off.

    BTW, I have three sites. Two work. Only the one hosted by GoDaddy gives me this problem.

    I am getting the same error. It is driving me batty. Any new info on the cause of the string offset error?

Viewing 3 replies - 1 through 3 (of 3 total)