Jump to content


These Forums Are Now Read-Only


For TubePress support, please post a question here or open a support ticket and we will be glad to assist.


Photo

Invalid Json


Best Answer eric, 25 May 2014 - 12:55 PM

Looks like your server is returning the wrong Content-Type HTTP header for TubePress. When you click a video thumbnail, TubePress makes an ajax request to

 

http://ezvid.wpengin...jaxEndpoint.php

 

Normally servers will return a HTTP header of Content-Type: text/html, and an HTTP body of JSON that TubePress uses to play the corresponding video. But on your server, we're getting application/octet-stream:

# curl -I "http://ezvid.wpengine.netdna-cdn.com/wp-content/plugins/tubepress/src/main/web/php/ajaxEndpoint.php"
HTTP/1.1 200 OK
Date: Sun, 25 May 2014 17:49:25 GMT
Content-Type: application/octet-stream
Content-Length: 922
Connection: keep-alive
Last-Modified: Sun, 06 Apr 2014 18:10:08 GMT
Access-Control-Allow-Origin: *
Accept-Ranges: bytes
Server: NetDNA-cache/2.2
X-Cache: MISS

The result is that the content of ajaxEndpoint.php is being sent to the browser, which of course completely breaks TubePress.

 

This is almost certainly a server misconfiguration that your hosting provider should be able to fix.

 

Hope that helps?

Go to the full post


  • Please log in to reply
2 replies to this topic

#1 dsiebes

dsiebes

    Newbie

  • Members
  • Pip
  • 1 posts

Posted 23 May 2014 - 02:55 PM

I'm not sure when this started happening, but the thumbnails in our gallery no longer invoke the player when clicked. We get an invalid JSON error based on browser console reports.

Here is the site:

http://www.ezvid.com

Scroll down to where you see "more videos" and an arrow pointing to the thumbnails. Click a thumbnail to invoke the error.

 

I'm at a loss of how to troubleshoot this, could it be YouTube changed their API and TubePress 3.15 is not parsing correctly?



#2 brandon

brandon

    Advanced Member

  • TubePress Staff
  • 1989 posts

Posted 23 May 2014 - 06:00 PM

Hello,

 

I have asked one of our developers to look into the issue.

Thanks!


Want a faster, more personalized support experience? Open a ticket with us! We will be gradually phasing out forum-based support in favor of a proper ticketing system. Please help us help you!


#3 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 25 May 2014 - 12:55 PM   Best Answer

Looks like your server is returning the wrong Content-Type HTTP header for TubePress. When you click a video thumbnail, TubePress makes an ajax request to

 

http://ezvid.wpengin...jaxEndpoint.php

 

Normally servers will return a HTTP header of Content-Type: text/html, and an HTTP body of JSON that TubePress uses to play the corresponding video. But on your server, we're getting application/octet-stream:

# curl -I "http://ezvid.wpengine.netdna-cdn.com/wp-content/plugins/tubepress/src/main/web/php/ajaxEndpoint.php"
HTTP/1.1 200 OK
Date: Sun, 25 May 2014 17:49:25 GMT
Content-Type: application/octet-stream
Content-Length: 922
Connection: keep-alive
Last-Modified: Sun, 06 Apr 2014 18:10:08 GMT
Access-Control-Allow-Origin: *
Accept-Ranges: bytes
Server: NetDNA-cache/2.2
X-Cache: MISS

The result is that the content of ajaxEndpoint.php is being sent to the browser, which of course completely breaks TubePress.

 

This is almost certainly a server misconfiguration that your hosting provider should be able to fix.

 

Hope that helps?