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 (PHP 5.5.9 changelog).
Leave a comment