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

Videos won't load - Uncaught syntax error: Unexpected token


  • Please log in to reply
6 replies to this topic

#1 Keith Davies

Keith Davies

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 28 September 2011 - 08:58 AM

Hi,

Just bought and installed Tubepress Pro as a standalone version. I've setup a page on a website using the Tinybox method to show my videos.

Url: http://linear.vufold...epress-test.php

As you can see the thumbnail (2) appear fine but when i click on them the Tinybox frame loads but no video!

When I look at the "Resources" or "Scripts" tab in Chromes Inspect Element it says:

jquery-1.6.1.min.js:16Uncaught SyntaxError: Unexpected token <

Server is running PHP 5.2.9, JSON 1.2.1, MBSTRING

Any clues please
ax10

#2 Keith Davies

Keith Davies

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 28 September 2011 - 10:54 AM

I noticed an arrow next to this error, when I expanded it:

Uncaught SyntaxError: Unexpected token <
e.extend.parseJSON
p
f.extend._Deferred.e.resloveWith
w
f.support.ajax.f.ajaxTransport.send.d


#3 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 28 September 2011 - 09:53 PM

Hi,

Do you have this running on a public site that we could look at? I believe http://linear.vufold.local is a local-only site... ?

Should be easy to fix once I can get a first-hand look at the issue. Thanks!

#4 Keith Davies

Keith Davies

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 29 September 2011 - 04:15 AM

Sorry - yes

http://linearphoto.c...epress-test.php

#5 Keith Davies

Keith Davies

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 30 September 2011 - 06:22 AM

Hi sorry to be a pain - but any clues on this one?

Gotta try and get this working by monday.
Thanks

#6 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 01 October 2011 - 07:25 PM

The problem is that your server appears to be appending some HTML to any response. Look at the very bottom of this screenshot and you can see the extra text (starting with
One interesting test would be to create a trivial PHP file and load it next to tubepress-test.php. Make the contents of it

<?php echo 'Hello';
Then load it in a web browser. I'm curious to see if the extra text gets thrown onto the end of the response. Should help us narrow down the issue. Thanks.

#7 Keith Davies

Keith Davies

    Newbie

  • Members
  • Pip
  • 5 posts

Posted 02 October 2011 - 05:54 PM

Hi Eric,

Yes my .htaccess file is doing an "auto append file" which is calling in my template. A quick fix and now all seems to be working.
Thanks for the heads up!