<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Generator" content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="metricconverter" /><o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="PersonName" /><!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]--><style>
<!--
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
p.MsoCaption, li.MsoCaption, div.MsoCaption
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Times New Roman";
        font-weight:bold;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
p.EstiloLegendaCentralizado, li.EstiloLegendaCentralizado, div.EstiloLegendaCentralizado
        {margin:0cm;
        margin-bottom:.0001pt;
        text-align:center;
        font-size:10.0pt;
        font-family:Arial;}
span.EstiloDeEmail19
        {mso-style-type:personal-compose;
        font-family:Arial;
        color:windowtext;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
</style>
</head>
<body lang="PT-BR" link="blue" vlink="purple">
<div class="Section1">
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Boa-tarde,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:black">Estou configurando o Direve para a plataforma linux (Ubuntu) e estou passando por alguns problemas. Se possível, gostaria que nos ajudassem.</span></font><font color="black"><span style="color:black"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:black">Ao tentar acessar o site obtenho uma tela
<st1:PersonName ProductID="em branco. Mas" w:st="on">em branco. Mas</st1:PersonName> o apache registra algumas informações sobre o erro. Segue o trecho do arquivo de erro do apache:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="black" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Notice: Undefined index: lang in /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/global.php
on line 4<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Notice: Undefined variable: formVars in /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php
on line 301<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Notice: Undefined index: PATH_CGI-BIN in /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php
on line 48<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Notice: Undefined index: port in /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php
on line 128<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Notice: Undefined variable: result in /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php
on line 150<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Notice: Undefined index: PATH_CGI-BIN in /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php
on line 48<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Notice: Undefined index: PATH_CGI-BIN in /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php
on line 48<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Notice: Undefined variable: xslSave in /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php
on line 343<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Warning: DOMDocument::loadXML(): Opening and ending tag mismatch: date-list
line 12 and root in Entity, line: <st1:metricconverter ProductID="25 in" w:st="on">
25 in</st1:metricconverter> /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php on line 230<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Warning: DOMDocument::loadXML(): Premature end of data in tag dir-event
line <st1:metricconverter ProductID="11 in" w:st="on">11 in</st1:metricconverter> Entity, line:
<st1:metricconverter ProductID="26 in" w:st="on">26 in</st1:metricconverter> /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php on line 230<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Warning: DOMDocument::loadXML(): Premature end of data in tag dir-module
line <st1:metricconverter ProductID="10 in" w:st="on">10 in</st1:metricconverter> Entity, line:
<st1:metricconverter ProductID="26 in" w:st="on">26 in</st1:metricconverter> /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php on line 230<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Warning: DOMDocument::loadXML(): Premature end of data in tag root line
<st1:metricconverter ProductID="3 in" w:st="on">3 in</st1:metricconverter> Entity, line:
<st1:metricconverter ProductID="26 in" w:st="on">26 in</st1:metricconverter> /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php on line 230<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="EN-US" style="font-size:12.0pt;color:black">[Thu Nov 25 15:29:48 2010] [error] [client 127.0.1.1] PHP Warning: XSLTProcessor::transformToXml(): I/O warning : failed to load
external entity "/home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xml//define.xml" in /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xmlListT.php on line 248<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span lang="EN-US" style="font-size:
10.0pt;font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Creio que o problema se deve ao ultimo registro no log, exatamente no ponto: “</span></font><font color="black"><span style="color:black">xml//define.xml</span></font><font size="2" face="Arial"><span style="font-size:10.0pt;font-family:Arial">”.
Pelo que identifiquei, está faltando na url a pasta pt, en ou es. <o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Abri o arquivo
</span></font><font color="black"><span style="color:black">xmlListT.php e tentei descobrir o erro mas não obtive sucesso. Identifiquei algumas linhas de debug nesse arquivo (Linas
<st1:metricconverter ProductID="327 a" w:st="on">327 a</st1:metricconverter> 331):<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="FR" style="font-size:12.0pt;color:black">print "xsl: " . $xsl;<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span lang="FR" style="font-size:12.0pt;color:black">print "xml: " .
</span>$xmlText;<o:p></o:p></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">die();<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black">Segue o resultado exibido no browser com as linhas descomentadas:<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" color="black" face="Times New Roman"><span style="font-size:12.0pt;color:black"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">xsl: /home/bvs/SVN/direve/direve_lin_1.5.3/htdocs/direve/xsl/direve-main.xsl<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">xml: WXIS|fatal error|unavoidable|dbxopen: tab/gizmoXML.xrf (2)| http://direve.local/cgi-bin/wxis.exe/?IsisScript=direve/main.xis|lang=pt GET xsl/direve-main.xsl
pt<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Depois de caçar o erro pelas linhas de código descobri que o erro é gerado na função PostIt($url). A função recebe como parâmetro a seguinte string:
<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><img width="548" height="34" id="_x0000_i1025" src="cid:image001.jpg@01CB8CBB.FE782210"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial">Obrigado pela ajuda.<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" face="Arial"><span style="font-size:10.0pt;
font-family:Arial"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy">Att,<o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="2" color="navy" face="Arial"><span style="font-size:
10.0pt;font-family:Arial;color:navy"><o:p> </o:p></span></font></p>
<p class="MsoNormal"><em><b><i><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy;font-weight:bold">Leonardo David Rocha</span></font></i></b></em><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal"><em><i><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Analista de Sistemas - BVS/MS</span></font></i></em><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal"><em><i><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Ministério da Saúde/SE/SAA/CGDI</span></font></i></em><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal"><em><i><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Esplanada dos Ministérios, Bloco G - Anexo, sala 415B</span></font></i></em><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal"><em><i><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">CEP: 70.058-900 - Brasília, DF - Brasil</span></font></i></em><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal"><em><i><font size="2" color="navy" face="Arial"><span style="font-size:10.0pt;font-family:Arial;color:navy">Telefone: 55 61 3315-3219</span></font></i></em><font color="navy"><span style="color:navy"><o:p></o:p></span></font></p>
<p class="MsoNormal"><font size="3" face="Times New Roman"><span style="font-size:
12.0pt"><o:p> </o:p></span></font></p>
</div>
<p>.</p>
</body>
</html>