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

TubePress Pro in standalone PHP doesn't work


  • Please log in to reply
4 replies to this topic

#1 Andrey Deshkin

Andrey Deshkin

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 17 January 2012 - 05:26 PM

TubePress Pro in standalone PHP plays only first video. There is my example

http://slaviccenter....ss...ne_php.php
shortcode:
"resultsPerPage='4' mode='playlist' playlistValue='FF6E64865BE048FD' playerLocation='normal' ajaxPagination='true'"

please help, maybe i do something wrong.

thanks

#2 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 17 January 2012 - 08:43 PM

Hi,

I think the issue here is that all of your PHP pages are being prefixed with some text garbage - much of it starts with "vti_". Screenshot: http://i.imgur.com/3nvYF.png. This is confusing TubePress and thus your videos aren't playing correctly. Do you have any idea of what might be causing this garbage to be output with the pages?

#3 Andrey Deshkin

Andrey Deshkin

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 18 January 2012 - 02:52 AM

Thanks,

vti_ prefix is product of Microsoft Share Point Designer. I deleted whole folder and the tubepress folder uploaded with ftp manager. It looks better but still doesn't work.

There is new link:

http://slaviccenter..../e...ne_php.php

Do you have any other thoughts?

#4 eric

eric

    Lead Developer

  • TubePress Staff
  • 2787 posts

Posted 18 January 2012 - 12:44 PM

The issue now is that you have $tubepress_base_url set to "www.slaviccenter.org ...." but are viewing the page of "slaviccenter.org". This is the same origin policy in effect. Notice that if you visit http://www.slaviccen..._p...ne_php.php (note the www) then everything works normally. So you'll need to

  • Decide whether you want http://www.slaviccenter.org or slaviccenter.org to be your "primary" domain.
  • Make sure that $tubepress_base_url is set to your primary domain.
  • For the non-primary domain, configure your server to send an HTTP 301 to your primary domain (e.g. have slaviccenter.org send a redirect to http://www.slaviccenter.org
That should take care of it for you. What do you think?

#5 Andrey Deshkin

Andrey Deshkin

    Advanced Member

  • Members
  • PipPipPip
  • 32 posts

Posted 19 January 2012 - 05:20 AM

Thanks, now it works.

I changed the primary domain from www.slaviccenter.org to slaviccenter.org .