Joomla.it Forum

Joomla! 1.5.x (versione con supporto terminato) => Joomla! 1.5 => Installazione, migrazione e aggiornamento => : nokiapep 05 Aug 2011, 18:42:49

: [RISOLTO] Problema migrazione errori
: nokiapep 05 Aug 2011, 18:42:49
Buonasera a tutti
Ho migrato un sito, e funziona correttamente se non fosse per questi messaggi

Warning:  session_start() [function.session-start (http://213.254.13.74/%7Eiviaggid/function.session-start)]: Cannot send session cookie - headers already sent by (output started at /home/iviaggid/public_html/index.php:2) in /home/iviaggid/public_html/libraries/joomla/session/session.php on line 423
 
 Warning:  session_start() [function.session-start (http://213.254.13.74/%7Eiviaggid/function.session-start)]: Cannot send session cache limiter - headers already sent (output started at /home/iviaggid/public_html/index.php:2) in /home/iviaggid/public_html/libraries/joomla/session/session.php on line 423
 
 Warning:  Cannot modify header information - headers already sent by (output started at /home/iviaggid/public_html/index.php:2) in /home/iviaggid/public_html/libraries/joomla/session/session.php on line 426

Ho visto nel forum che ci sono gia molte domande che riguardano il mio argomento... il problema sembrerebbe nel file configuration.php in qualche spazio in più dopo il ?> o prima del <?php o qualche carattere sbagliato.
"Purtroppo" questo file nel mio caso è configurato bene, ho fatto varie prove di modifica ma i messaggi son sempre quelli.

C'è qualcun'altro che ha risolto in modo diverso?? Grazie a tutti
: Re:Problema migrazione errori
: hapax 05 Aug 2011, 18:50:51
Ho migrato un sito

da joomla 1.5.X a ?????

tramite quale metodo della procedura?
: Re:Problema migrazione errori
: nokiapep 05 Aug 2011, 18:55:26
Joomla 1.5.23
da un dominio ad un altro cambiando anche servizio hosting

entrambi hosting linux con php
: Re:Problema migrazione errori
: hapax 05 Aug 2011, 19:09:50
puoi provare a scaricare una installazione pulita di joomla 1.5.23

http://www.joomla.it/download/vecchia-versione-joomla-1/362-joomla-1-5.html (http://www.joomla.it/download/vecchia-versione-joomla-1/362-joomla-1-5.html)

scompattare le cartelle..trovare il file

configuration.php-dist

rinominarlo configuration.php (in pratica togliere -dist)

aprirlo con un editor...NO BLOCCO NOTE

e metterci tutti i parametri del vecchio configuration.php

sostituirlo a quello che hai sul server..
: Re:Problema migrazione errori
: nokiapep 05 Aug 2011, 19:23:54
gia provato tutto, niente da fare
: Re:Problema migrazione errori
: maicolstaip 05 Aug 2011, 20:05:50
Ciao nokiapep,
controlla il file index.php della root e del template alla linea 2.
L'errore è in uno di quei due.

Sembra un tentativo di hack mal fatto...

E per cortesia togli i nomi degli host nei precedenti messaggi che non sono graditi nel forum, grazie.

Ciao!
: Re:Problema migrazione errori
: nokiapep 05 Aug 2011, 20:09:39
chiedo scusa per i nomi, tolti. Potresti essere più chiaro per favore, i 2 file ho capito quali sono, ma cosa devo cercare?? grazie
: Re:Problema migrazione errori
: maicolstaip 05 Aug 2011, 20:12:50
guarda alla riga due se c'è qualcosa tipo
:
eval
: Re:Problema migrazione errori
: nokiapep 05 Aug 2011, 20:59:24
no non c'è niente... Questo è l'index.php del template

:
<?php
/**
 * @copyright    Copyright (C) 2008 - 2011 ZooTemplate.com. All rights reserved.
 * @license        GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined('_JEXEC') or die('Restricted access');
include_once(
dirname(__FILE__).DS.'libs'.DS.'browser.php');
include_once(
dirname(__FILE__).DS.'libs'.DS.'zt_tools.php');
include_once(
dirname(__FILE__).DS.'zt_menus'.DS.'zt.common.php');
include_once(
dirname(__FILE__).DS.'libs'.DS.'zt_vars.php');

unset(
$this->_scripts[$this->baseurl.'/media/system/js/caption.js']);

if(
$myBrowser) {
    include_once(
dirname(__FILE__).DS.'libs'.DS.'layouts'.DS.'mobile.php');
} else {
    include_once(
dirname(__FILE__).DS.'libs'.DS.'layouts'.DS.'default.php');
}
?>

Questo l'index.php del sito

:
<?php
/**
* @version        $Id: index.php 14401 2010-01-26 14:10:00Z louis $
* @package        Joomla
* @copyright    Copyright (C) 2005 - 2010 Open Source Matters. All rights reserved.
* @license        GNU/GPL, see LICENSE.php
* Joomla! is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
* See COPYRIGHT.php for copyright notices and details.
*/

// Set flag that this is a parent file
define'_JEXEC');

define('JPATH_BASE'dirname(__FILE__) );

define'DS'DIRECTORY_SEPARATOR );

require_once ( 
JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( 
JPATH_BASE .DS.'includes'.DS.'framework.php' );

JDEBUG $_PROFILER->mark'afterLoad' ) : null;

/**
 * CREATE THE APPLICATION
 *
 * NOTE :
 */
$mainframe =& JFactory::getApplication('site');

/**
 * INITIALISE THE APPLICATION
 *
 * NOTE :
 */
// set the language
$mainframe->initialise();

JPluginHelper::importPlugin('system');

// trigger the onAfterInitialise events
JDEBUG $_PROFILER->mark('afterInitialise') : null;
$mainframe->triggerEvent('onAfterInitialise');

/**
 * ROUTE THE APPLICATION
 *
 * NOTE :
 */
$mainframe->route();

// authorization
$Itemid JRequest::getInt'Itemid');
$mainframe->authorize($Itemid);

// trigger the onAfterRoute events
JDEBUG $_PROFILER->mark('afterRoute') : null;
$mainframe->triggerEvent('onAfterRoute');

/**
 * DISPATCH THE APPLICATION
 *
 * NOTE :
 */
$option JRequest::getCmd('option');
$mainframe->dispatch($option);

// trigger the onAfterDispatch events
JDEBUG $_PROFILER->mark('afterDispatch') : null;
$mainframe->triggerEvent('onAfterDispatch');

/**
 * RENDER  THE APPLICATION
 *
 * NOTE :
 */
$mainframe->render();

// trigger the onAfterRender events
JDEBUG $_PROFILER->mark('afterRender') : null;
$mainframe->triggerEvent('onAfterRender');

/**
 * RETURN THE RESPONSE
 */
echo JResponse::toString($mainframe->getCfg('gzip'));

che devo cercare? grazie.
: Re:Problema migrazione errori
: maicolstaip 05 Aug 2011, 23:02:01
Fai una cosa, prima il backup della cartella del template per sicurezza.
Poi ricarica il template via ftp sovrascrivendo tutto quello che hai sul server.
Ciao!
: Re:Problema migrazione errori
: nokiapep 06 Aug 2011, 09:19:41
RISOLTO il problema era il codice per i vecchi browse nell'index.php

L'ho cancellato e tutto funziona
Grazie a tutti lo stesso.
: Re:[RISOLTO] Problema migrazione errori
: nokiapep 06 Aug 2011, 09:41:41
mi sembrava troppo semplice... adesso si, questo problema l'ho risolto ma c'è un altro problema...
Non riesco ad entrare in administrator e non riesco ad entrare in nessuna sottocartella del sito, il messaggio è sempre lo stesso

500 Internal Server Error The request was not completed. The server met an unexpected condition.
 
SERVER-IP/nomesito/mailinglist (port 80)
 Please forward this error screen to 213.254.13.74's

Spero possiate aiutarmi. Grazie
: Re:[RISOLTO] Problema migrazione errori
: mau_develop 06 Aug 2011, 10:37:43
include_once(dirname(__FILE__).DS.'libs'.DS.'browser.php');
include_once(dirname(__FILE__).DS.'libs'.DS.'zt_tools.php');
include_once(dirname(__FILE__).DS.'zt_menus'.DS.'zt.common.php');
include_once(dirname(__FILE__).DS.'libs'.DS.'zt_vars.php');
----------------------------------------------------------------------------------------------

queste cose non si fanno nel template, questo è un escamotage per skippare framework e mvc.
Oltre a darti i problemi che incontri fai una cosa assurda per joomla...
lui separa codice eseguibile e codice printabile e tu alla fine di qs "processo" gli riproponi del codice eseguibile mischiato al suo printabile...
Che serve usare joomla così?

e non solo... che aiuto può darti la community se tu esci dagli schemi inserendo codice che nessuno conosce?
se dentro uno di quei files c'è uno script di ridirezione che è scritto male come faccio io a vederlo? (nn postarli quì pls!)

M.
: Re:[RISOLTO] Problema migrazione errori
: nokiapep 08 Aug 2011, 17:49:20
ok, codici tolti, cosa posso fare per ottenere risultati simili in modo "legale"? esistono componenti, moduli, per far si che quando gli utenti usano una versione di IE precedente alla 8, esca qualche messaggio che dica di aggiornare il browse??
: Re:[RISOLTO] Problema migrazione errori
: mau_develop 08 Aug 2011, 18:52:20
http://www.spiralscripts.co.uk/Joomla-Tips/browser-detection-in-joomla.html

M.