Brand New Warning Error Out of D6

Warning: DOMDocument::load() [domdocument.load]: I/O warning : failed to load external entity "/home/mydatery/public_html/templates/tmpl_uni/xsl/clroom_last_topics.xsl" in /home/mydatery/public_html/clrooms/orca/classes/BxXslTransform.php on line 84

Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]: compilation error in /home/mydatery/public_html/clrooms/orca/classes/BxXslTransform.php on line 87

Warning: XSLTProcessor::importStylesheet() [xsltprocessor.importstylesheet]: xsltParseStylesheetProcess : empty stylesheet in /home/mydatery/public_html/clrooms/orca/classes/BxXslTransform.php on line 87

Warning: XSLTProcessor::transformToXml() [xsltprocessor.transformtoxml]: No stylesheet associated to this object in /home/mydatery/public_html/clrooms/orca/classes/BxXslTransform.php on line 88

Anyone ever seen that warning before?  Looks good doesn't it.  Now I gotta figure out what in the world it is.  I know, it says no stylesheet associated with the object, but how to fix it?  Anyone up for somethin' really fun?  How about a chime in here on this from Boonex? 

Here's the Code from the file in question:

 


// xml: string, xsl: file
  if ( !($this->_mode & BXXSLTRANSFORM_XML_FILE) && ($this->_mode & BXXSLTRANSFORM_XSL_FILE) )
  {
   $args = array(
       '/_xml' => $this->_xml,
   );

            validate_unicode ($this->_xml);

   if (((int)phpversion()) >= 5)  
   {    

    $xml = new DOMDocument();
    if (
!@$xml->loadXML($this->_xml))
    {
     $mk = new Mistake ();
     $mk->log ("BxXslTransform::process - can not load xml:\n " . $this->_xml);
     $mk->displayError ("[L[Site is unavailable]]");
    }

    $xsl = new DomDocument();
    $xsl->load($this->_xsl);

    $proc = new XsltProcessor();
    $proc->importStyleSheet($xsl);
    $res = $proc->transformToXML($xml);

   }
   else
   {

    if (function_exists('domxml_xslt_stylesheet_file'))
    {          
     $xmldoc = new DomDocument ($this->_xml);
     $xsldoc = domxml_xslt_stylesheet_file($this->_xsl);
     $result =  $xsldoc->process($xmldoc);
     $res =  $xsldoc->result_dump_mem($result);    
    }
    elseif (function_exists ('xslt_create'))
    {    
     $xh = xslt_create();
     xslt_setopt($xh, XSLT_SABOPT_IGNORE_DOC_NOT_FOUND);
     $res = xslt_process ($xh, 'arg:/_xml', $this->_xsl, NULL, $args);
     xslt_free($xh);
    }
                else
                {
     die('Server XSLT support is not enabled, try to use client XSL transformation
http://your-domain/orca_folder/?xsl_mode=client');
                }
   }

   return $res;
  }

 


Gotta love it when it's in the realm of new development.  Perhaps a layout guy (like OKWeb or someone) might have some input here.  Never mess with this file before this mind ya.

 

Quote · 17 Apr 2010

Never mind guys.  We just figured that one out.  LOL

 

It seems that it pulled a style sheet from templates/tmpl_uni/xsl/clroom_last_topics.xsl  which in turn just called the same file from templates/base/xsl/clroom_last_topic.xsl

When I went in and created the files and put them in their respective places the whole thing came together.  Yes, we have just created an entirely new module, class rooms that is complete with Orca forums in it.  Now, to put all of these notes together, clean it all up and make it so it can install smoothly.

 

Quote · 17 Apr 2010
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.