Category Archives: Workarounds

Pydio PHP cloneNode() error

Last friday, after updating from PHP 5.5.6 to PHP 5.5.7, Pydio (formerly AjaXplorer) wasn’t working anymore.

I’m using nginx 1.4.4 + PHP 5.5.7 and when I tried to open Pydio I only got 502 Bad Gateway or the following error:

2013/12/13 12:40:24 [error] 21628#0: *85 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Call to a member function cloneNode() on a non-object in /var/www/site.nl/core/classes/class.AJXP_Plugin.php on line 276" while reading response header from upstream, client: 193.x.x.x, server: site.nl, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "site.nl"

I have been searching for a solution for hours, but even installing a fresh copy of Pydio wouldn’t work (I couldn’t get to the installer page, same error).

After a long time searching on Google and the PHP changelog I asked for help on the Pydio forums. Someone told me to downgrade PHP, but that’s the last thing I would try.

Pydio still didn’t work after trying many things. Then, after looking at the PHP changelog again, I disabled PHP’s built-in opcache, and Pydio was working again!

So, if you have the same problem, just disable PHP’s built-in opcache. I don’t know if this is a bug in PHP or Pydio, but I’ll just try to enable opcache again in PHP 5.5.8.

Update 08-02-2014 – It seems to work normally again with PHP 5.5.9 (changelog).

Pair PC with YouTube TV

If you have a smart TV with the YouTube app on it, you can pair your TV with your phone or tablet in order to take control of the YouTube app with them.

Unfortunately, it is not possible to pair your PC or notebook with the YouTube app. However, with this quick and easy workaround you’ll be able to do so.

In order to pair your TV with your PC, you should first get the pair code from your tv.

Then simply go to m.youtube.com/pair, enter the code and click Add.

I’ve tested this workaround with Firefox 20, but in other browsers you may need to change your User Agent before going to m.youtube.com/pair.

Changing your User Agent

This setting may be only set for the tab you’re currently working on, so I advise you to open a new tab before changing the User Agent.

Mozilla Firefox

  • Install User Agent Switcher
  • Press the Alt key on your keyboard, the menu bar will show up
  • Click Extra > Default User Agent > iPhone 3.0

Google Chrome

  • Open the developer panel (CTRL + SHIFT + I)
  • Click the gear icon to open settings (located in the lower right corner)
  • In the tab Overrides check User Agent and set it to a mobile device

DO NOT close the developer panel as it will reset your User Agent, you can just resize it instead!

Now go to the pair page, you should change your User Agent back when you’re done!