What an exciting day it has been! It seems that last night there was a widespread update for Redhat/Centos operating systems that run the webservers of many web hosting providers. This update included a version of the libxml2 library that is used by PHP when utilizing XML. This updated version of libxml2 seems to be causing widespread problems for existing PHP frameworks, projects and code that make use of those XML features. One of these is our own RokCommon library that is used by RokGallery and RokSprocket for both Joomla and WordPress. We make use of a static method called DOMDocument::schemavalidate() which seems to have broken with this last update, so please read more for a quick fix...
If you see an error resembling the following:
The quick fix is to locate the Xml.php file that exists in RokCommon and comment out the line that makes the schemaValidate() call.
Comment Out Line 223 in this Xml.php File
Find the following code on line 223
Comment it out by prepending // to the begining of the line, like so:
We plan on releasing updates for both RokSprocket and RokGallery for both Joomla and WordPress in the next day or so. This will have this RokCommon fix in it as well as any other bug fixes we have in the queue, so keep an eye out for that!