Knowledgebase: Web Hosting Related
All of a sudden my Joomla site went blank and how do I fix a Joomla Fatal Error: Warning: DOMDocument::schemaValidate() Error?
Posted by Support, Last modified by Support on 23 May 2013 12:04 AM

All of a sudden my Joomla site went blank, I use a rocket theme (from rockettheme.com) for my site and how do I fix the Joomla Fatal Error: Warning: DOMDocument::schemaValidate() Error?

This error has to do with your rocket theme, apparently there is a coding issue with the theme that doesnt like the latest software update all servers are required to do and the issue is server induced. Per the following URL, http://www.rockettheme.com/blog/extensions/1753-warning-domdocumentschemavalidate-error and re-posted below for your convenience, this will show you how to fix it.

It seems 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:

1.Warning: DOMDocument::schemaValidate() [domdocument.schemavalidate]: Invalid Schema in /home/userhome/public_html/libraries/rokcommon/RokCommon/Service/Container/Loader/File/Xml.php on line 263
2. 
3.Fatal error: Uncaught exception 'InvalidArgumentException' with message '[ERROR 3070] complex type 'service': The content model is not determinist. (in /home/userhome/public_html/libraries/rokcommon/RokCommon/Service/Container/Loader/File/services.xsd - line 38, column 0) [ERROR 3070] complex type 'argument': The content model is not determinist. (in /home/userhome/public_html/libraries/rokcommon/RokCommon/Service/Container/Loader/File/services.xsd - line 69, column 0) [ERROR 3070] complex type 'call': The content model is not determinist. (in /home/userhome/public_html/libraries/rokcommon/RokCommon/Service/Container/Loader/File/services.xsd - line 79, column 0)' in /home/userhome/public_html/libraries/rokcommon/RokCommon/Service/Container/Loader/File/Xml.php:265 Stack trace: #0 /home/userhome/public_html/libraries/rokcommon/RokCommon/Service/Container/Loader/File/Xml.php(223): RokCommon_Service_Container_Loader_File_Xml->validate(Object(DOMDocument)) #1 /home/userhome/public_html/libraries/rokcommon/RokCommon/Service/Con in /home/userhome/public_html/libraries/rokcommon/RokCommon/Service/Container/Loader/File/Xml.php on line 265

The quick fix is to locate the Xml.php file that exists in RokCommon and comment out the line that makes the schemaValidate() call.

File Locations:

Joomla 1.5 /components/com_rokcommon/RokCommon/Service/Container/Loader/File/XML.php
Joomla 2.5/3.0 /libraries/rokcommon/RokCommon/Service/Container/Loader/File/Xml.php
WordPress /wp-content/plugins/wp_rokcommon/RokCommon/Service/Container/Loader/File/Xml.php

Comment Out Line 223 in this Xml.php File

Find the following code on line 223

1.$this->validate($dom);

Comment it out by prepending // to the begining of the line, like so:

1.//$this->validate($dom);

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!

(3 vote(s))
Helpful
Not helpful