Category Archives: ostube

The solution to the Ostube problem that the main video block on the homepage is a just a black box on Firefox browser.

I want to post this email from one of our customers, it seems important because he solved the problem that sometimes with Firefox the ostube script just shows a black block instead of a video block on home page:

Chris I’ve fixed this issue!

The following is a little long winded, as I was taking notes as I was
testing things. At least it’s detailed. 🙂

Being as my “no startpage video” problem apparently isn’t to do with
the server, isn’t to do with templates and I can’t think of where else in the site to look, I
looked into what the cookies are doing. Note, this is ALL in the firefox browser, v3.0.
When I load the main page, , I get no video.

I opened the cookie data with tools/edit cookies in firefox. There are
5 entries. The first 4 are name things like __utmb, __utmc etc.. I didn’t find these interesting.
Mainly because I have no idea what they do, and they didn’t appear to change. What I did find
interesting was the cookie/s called PHPSESSID. The stuff below explains their behavior.

For the index page, on a fresh load which contains the video problem,
there is one PHPSESSID cookie, shown here:

CONTENT: a7776bb99e33bdceece8e0c2245cbba9
SEND FOR: Any type of connection
Expires: at end of session

browse to another page, such as a video page (

In addition to the cookie above, which appears unchanged, there is a new cookie:

CONTENT: c0c13326fe81f2e2d84eb44da4fc8ae2
SEND FOR: Any type of connection
Expires: at end of session

Almost the same as the first cookie, except for the “SITE” is (without the www.), as well as the “host” is (without the www.)
The “content” string is different as well.

Now, I navigate back to the main page, index.php
The video plays correctly. No new cookie entry’s are added or changed.

I delete the PHPSESSID cookie with “site”:

Reload the page.

The video plays correct. Check the cookie, the deleted cookie has
re-appeared. (The same but with a new “content” string)

Ok. I delete ALL the cookies and refresh the page.

The video plays correct. The PHPSESSID cookie with the “site” and
“host”: has re-appeared. The PHPSESSID cookie with the “site” and “host” has NOT re-appeared.

Now. I close the browser window. Open a new window at google. Clear
all the cookies for, load, no video.

Check the cookies, there is only one PHPSESSID cookie. It’s the
original one with the “site” of and “host” of (The key here is
the addition of the “www”)

Ok, so now I go to other OsTube installations that work to see what
their cookies are up to.

Here’s one which is on the same server:

The video works. (it works everywhere but my site)

There is only one PHPSESSID cookie for the main page. The “site” name
and “host” read as “” No www. (Though, the site URL itself did not contain a
“www” prefix, the URL was

So I add a www to the url making it
Load the page and NO VIDEO!
Check the cookies and there is a new PHPSESSID, this time with “site”
and “host” reading as

Same behavior as my site.

Ok, so I go back over to my site and take out the www, loading
It works and video loads on the front page.

So I don’t fully understand the meaning of the WWW url prefix, why
it’s used or not used etc.. But I clearly see a connection between it, PHPSESSID cookies and the video loading in firefox.

On a whim, I decided to check the Admin settings for OSTube. I log in
to the admin panel, go to

Configuration and sure enough “URL of your site:”
I add a www to make it

Clear the cookies, open a new browser, FIXED! The video loads.
What an insane way to figure this out. The problem was, the
irregularity of the issue across different pages and browsers made it very hard to troubleshoot.
At least from my perspective.

So, that’s it. Double check the “Url of your site” line in the ADMIN.
I didn’t think to check that, as you guys set that up…right? Anyway,
water under the bridge.
Thanks for all your help and now we both know.


Tobias Carrier is the proud owner of