Autor Tema: Error en MKPortal...  (Leído 3825 veces)

Desconectado nos

  • Member
  • ***
  • Mensajes: 100
    • http://www.anti-malware.tk
Error en MKPortal...
« en: 21 de Diciembre de 2005, 09:45:50 pm »
Hola, cuando doy a Editar Noticia y le doy a un icono que pone HTML, se me abre una ventana y me pone el siguiente error:

Parse error: parse error, unexpected T_STRING in /usr/export/www/vhosts/funnetwork/hosting/web/mkportal/editor/jscripts/tiny_mce/themes/advanced/source_editor.htm on line 1


Haber si vosotros sabeis algo. Un saludo. Gracias.

Desconectado halo

  • Pro Member
  • ****
  • Mensajes: 541
Re: Error en MKPortal...
« Respuesta #1 en: 22 de Diciembre de 2005, 08:48:17 am »
Hola, cuando doy a Editar Noticia y le doy a un icono que pone HTML, se me abre una ventana y me pone el siguiente error:

Parse error: parse error, unexpected T_STRING in /usr/export/www/vhosts/funnetwork/hosting/web/mkportal/editor/jscripts/tiny_mce/themes/advanced/source_editor.htm on line 1


Haber si vosotros sabeis algo. Un saludo. Gracias.

Ese tipo de errores suelen venir porque la sintaxis no es correcta. ¿Has modificado tú source_editor.htm? Copia y pega aquí el código a ver si vemos el error.
Condemnation , Tried , Here on the stand , With the book in my hand , And truth on my side
Accusations , Lies , Hand me my sentence , I'll show no repentance , I'll suffer with pride If for honesty , You want apologies , I don't sympathize...

Desconectado nos

  • Member
  • ***
  • Mensajes: 100
    • http://www.anti-malware.tk
Re: Error en MKPortal...
« Respuesta #2 en: 24 de Diciembre de 2005, 10:48:52 am »
Hola, aqui os dejo la sintaxis haber:


<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$lang_theme_code_title}</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script language="javascript" type="text/javascript" src="../../tiny_mce_popup.js"></script>
<script language="javascript" type="text/javascript">
<!--
    function saveContent() {
        if (window.opener) {
            window.opener.tinyMCE.setContent(document.getElementById('htmlSource').value);
            window.close();
        }
    }

    // Fixes some charcode issues
    function fixContent(html) {
        html = html.replace(new RegExp(/<(p|hr|table|tr|td|ol|ul|object|embed|li|blockquote)/gi),'\n<$1');
        html = html.replace(new RegExp(/<\/(p|ol|ul|li|table|tr|td|blockquote|object)>/gi),'</$1>\n');
        html = tinyMCE.regexpReplace(html, '<br />','<br />\n','gi');
        html = tinyMCE.regexpReplace(html, '\n\n','\n','gi');
        return html;
    }

    function onLoadInit() {
        document.forms[0].htmlSource.value = fixContent(tinyMCE.getContent(tinyMCE.getWindowArg('editor_id')));
        resizeInputs();
        setWrap('off');
    }

    function setWrap(val) {
        // hard soft off
        document.forms[0].htmlSource.wrap = val;
    }

   function toggleWordWrap(elm) {
      if (elm.checked)
         setWrap('soft');
      else
         setWrap('off');
   }

    var wHeight=0, wWidth=0, owHeight=0, owWidth=0;

    function resizeInputs() {
        if (!tinyMCE.isMSIE) {
             wHeight = self.innerHeight-80;
             wWidth = self.innerWidth-25;
        } else {
             wHeight = document.body.clientHeight-80;
             wWidth = document.body.clientWidth-25;
        }

        document.forms[0].htmlSource.style.height = Math.abs(wHeight) + 'px';
        document.forms[0].htmlSource.style.width  = Math.abs(wWidth) + 'px';
           
    }

    window.focus();
//-->
</script>
</head>
<body scroll="no" onload="onLoadInit();" onresize="resizeInputs();">
<form name="source" onsubmit="saveContent();">
    <table border="0" cellpadding="0" cellspacing="2" align="center">
        <tr>
            <td class="title">{$lang_theme_code_title}</td>
            <td align="right"><script language="javascript" type="text/javascript">
<!--
    if (tinyMCE.isMSIE) {
        document.write('<input type="checkbox" name="wraped" id="wraped" onclick="toggleWordWrap(this);" class="wordWrapCode" /><label for="wraped">{$lang_theme_code_wordwrap}</label>');
    }
//-->
            </script></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <textarea name="htmlSource" id="htmlSource" rows="15" cols="100" style="width: 100%; height: 100%; font-family: 'Courier New',Courier,mono; font-size: 12px;" dir="ltr" wrap="soft"></textarea>
            </td>
        </tr>
        <tr>
            <td colspan="2" align="right"><input type="button" id="insert" name="insert" value="{$lang_update}" onclick="saveContent();" /></td>
        </tr>
    </table>
</form>
</body>
</html>



Os he subido el archivo "source_editor.htm" a MegaUpload por si lo quereis ver, aqui os dejo el Link:

- http://www.megaupload.com/?d=6PWS5V6E

Haber si vosotros sabeis de que puede ser. Un saludo. Gracias.

Desconectado halo

  • Pro Member
  • ****
  • Mensajes: 541
Re: Error en MKPortal...
« Respuesta #3 en: 24 de Diciembre de 2005, 11:32:23 am »
Ésto que te voy a decir NO ES LA SOLUCIÓN, pero vamos a confirmar que el problema está ahí y después miraremos que pasa con Apache.

Quita:

Código: [Seleccionar]
<?xml version="1.0" encoding="iso-8859-1"?>
y dime si funciona.  :haha:
Condemnation , Tried , Here on the stand , With the book in my hand , And truth on my side
Accusations , Lies , Hand me my sentence , I'll show no repentance , I'll suffer with pride If for honesty , You want apologies , I don't sympathize...

Desconectado nos

  • Member
  • ***
  • Mensajes: 100
    • http://www.anti-malware.tk
Re: Error en MKPortal...
« Respuesta #4 en: 24 de Diciembre de 2005, 01:36:15 pm »
Hola, ya lo he arreglado, habia que borrar las siguientes lineas:

Citar
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


Ahora si que funciona correctamente, jejeje. Un saludo. Gracias.

Desconectado halo

  • Pro Member
  • ****
  • Mensajes: 541
Re: Error en MKPortal...
« Respuesta #5 en: 24 de Diciembre de 2005, 04:15:57 pm »
Hola, ya lo he arreglado, habia que borrar las siguientes lineas:

Citar
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


Ahora si que funciona correctamente, jejeje. Un saludo. Gracias.

Ojo, como te apuntaba antes, no es la solución, prueba lo siguiente:

Código: [Seleccionar]
<?php xml version="1.0" encoding="iso-8859-1"?>
Para usar <? ?> directamente ha de estar configurado php.ini para ello, y tal vez el tuyo no lo esté.
Condemnation , Tried , Here on the stand , With the book in my hand , And truth on my side
Accusations , Lies , Hand me my sentence , I'll show no repentance , I'll suffer with pride If for honesty , You want apologies , I don't sympathize...

Desconectado halo

  • Pro Member
  • ****
  • Mensajes: 541
Re: Error en MKPortal...
« Respuesta #6 en: 24 de Diciembre de 2005, 04:30:56 pm »
Si con

Código: [Seleccionar]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

dices que no va prueba a meterlo en un echo así:

Código: [Seleccionar]
echo "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">";
echo "<html xmlns="http://www.w3.org/1999/xhtml">";

Condemnation , Tried , Here on the stand , With the book in my hand , And truth on my side
Accusations , Lies , Hand me my sentence , I'll show no repentance , I'll suffer with pride If for honesty , You want apologies , I don't sympathize...

 

Aviso Legal | Política de Privacidad | Política de Cookies

el contenido de la web se rige bajo licencia
Creative Commons License