Pagina 1 di 2 1 2 ultimoultimo
Visualizzazione dei risultati da 1 a 10 su 15

Discussione: (joomla)akeba back up

  1. #1

    (joomla)akeba back up

    ho eseguito la migrazione del mio sito da remoto a locale su xampp tramite akeba back up e kick start, tutta la procedura e` andata al meglio.

    Visualizzo sia il back hand e il front hand, nel back hand ricevo un messaggio di errore che dice;

    [function.mktime]: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Paris' for '1.0/no DST' instead in E:\xampp\htdocs\extreme\libraries\joomla\utilities \date.php on line 117

    Conosco l'inglese ma non capisco cosa devo fare tecnicamente parlando x correggere il prob,
    posso vedere solo la home page tutti i menu, link, ecc, mi riportano ad arrore, tutte le pagine del back end riportano testo su testo che ripete lo stesso messagio di errore indicando non solo la lina 117 ma altri tantissimi numeri di linea.

    anche se e` lunghissimo riporto il codice in data.php
    codice:
    <?php /** * @version		$Id: date.php 14401 2010-01-26 14:10:00Z louis $ * @package		Joomla.Framework * @subpackage	Utilities * @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. */  // Check to ensure this file is within the rest of the framework defined('JPATH_BASE') or die();  /**  * JDate is a class that stores a date  *  * @package		Joomla.Framework  * @subpackage	Utilities  * @since		1.5  */ class JDate extends JObject { 	/** 	 * Unix timestamp 	 * 	 * @var     int|boolean 	 * @access  protected 	 */ 	var $_date = false;  	/** 	 * Time offset (in seconds) 	 * 	 * @var     string 	 * @access  protected 	 */ 	var $_offset = 0;  	/** 	 * Creates a new instance of JDate representing a given date. 	 * 	 * Accepts RFC 822, ISO 8601 date formats as well as unix time stamps. 	 * If not specified, the current date and time is used. 	 * 	 * @param mixed $date optional the date this JDate will represent. 	 * @param int $tzOffset optional the timezone $date is from 	 */ 	function __construct($date = 'now', $tzOffset = 0) 	{ 		if ($date == 'now' || empty($date)) 		{ 			$this->_date = strtotime(gmdate("M d Y H:i:s", time())); 			return; 		}  		$tzOffset *= 3600; 		if (is_numeric($date)) 		{ 			$this->_date = $date - $tzOffset; 			return; 		}  		if (preg_match('~(?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\\s+)?(\\d{1,2})\\s+([a-zA-Z]{3})\\s+(\\d{4})\\s+(\\d{2}):(\\d{2}):(\\d{2})\\s+(.*)~i',$date,$matches)) 		{ 			$months = Array( 				'jan' => 1, 'feb' => 2, 'mar' => 3, 'apr' => 4, 				'may' => 5, 'jun' => 6, 'jul' => 7, 'aug' => 8, 				'sep' => 9, 'oct' => 10, 'nov' => 11, 'dec' => 12 			); 			$matches[2] = strtolower($matches[2]); 			if (! isset($months[$matches[2]])) { 				return; 			} 			$this->_date = mktime( 				$matches[4], $matches[5], $matches[6], 				$months[$matches[2]], $matches[1], $matches[3] 			); 			if ($this->_date === false) { 				return; 			}  			if ($matches[7][0] == '+') { 				$tzOffset = 3600 * substr($matches[7], 1, 2) 					+ 60 * substr($matches[7], -2); 			} elseif ($matches[7][0] == '-') { 				$tzOffset = -3600 * substr($matches[7], 1, 2) 					- 60 * substr($matches[7], -2); 			} else { 				if (strlen($matches[7]) == 1) { 					$oneHour = 3600; 					$ord = ord($matches[7]); 					if ($ord < ord('M')) { 						$tzOffset = (ord('A') - $ord - 1) * $oneHour; 					} elseif ($ord >= ord('M') && $matches[7] != 'Z') { 						$tzOffset = ($ord - ord('M')) * $oneHour; 					} elseif ($matches[7] == 'Z') { 						$tzOffset = 0; 					} 				} 				switch ($matches[7]) { 					case 'UT': 					case 'GMT': $tzOffset = 0; 				} 			} 			$this->_date -= $tzOffset; 			return; 		} 		if (preg_match('~(\\d{4})-(\\d{2})-(\\d{2})[T\s](\\d{2}):(\\d{2}):(\\d{2})(.*)~', $date, $matches)) 		{ 			$this->_date = mktime( 				$matches[4], $matches[5], $matches[6], 				$matches[2], $matches[3], $matches[1] 			); 			if ($this->_date == false) { 				return; 			} 			if (isset($matches[7][0])) { 				if ($matches[7][0] == '+' || $matches[7][0] == '-') { 					$tzOffset = 60 * ( 						substr($matches[7], 0, 3) * 60 + substr($matches[7], -2) 					); 				} elseif ($matches[7] == 'Z') { 					$tzOffset = 0; 				} 			} 			$this->_date -= $tzOffset; 			return; 		}         $this->_date = (strtotime($date) == -1) ? false : strtotime($date); 		if ($this->_date) { 			$this->_date -= $tzOffset; 		} 	}  	/** 	 * Set the date offset (in hours) 	 * 	 * @access public 	 * @param float The offset in hours 	 */ 	function setOffset($offset) { 		$this->_offset = 3600 * $offset; 	}  	/** 	 * Get the date offset (in hours) 	 * 	 * @access public 	 * @return integer 	 */ 	function getOffset() { 		return ((float) $this->_offset) / 3600.0; 	}  	/** 	 * Gets the date as an RFC 822 date. 	 * 	 * @return a date in RFC 822 format 	 * @link http://www.ietf.org/rfc/rfc2822.txt?number=2822 IETF RFC 2822 	 * (replaces RFC 822) 	 */ 	function toRFC822($local = false) 	{ 		$date = ($local) ? $this->_date + $this->_offset : $this->_date; 		$date = ($this->_date !== false) ? date('D, d M Y H:i:s', $date).' +0000' : null; 		return $date; 	}  	/** 	 * Gets the date as an ISO 8601 date. 	 * 	 * @return a date in ISO 8601 (RFC 3339) format 	 * @link http://www.ietf.org/rfc/rfc3339.txt?number=3339 IETF RFC 3339 	 */ 	function toISO8601($local = false) 	{ 		$date   = ($local) ? $this->_date + $this->_offset : $this->_date; 		$offset = $this->getOffset();         $offset = ($local && $this->_offset) ? sprintf("%+03d:%02d", $offset, abs(($offset-intval($offset))*60) ) : 'Z';         $date   = ($this->_date !== false) ? date('Y-m-d\TH:i:s', $date).$offset : null; 		return $date; 	}  	/** 	 * Gets the date as in MySQL datetime format 	 * 	 * @return a date in MySQL datetime format 	 * @link http://dev.mysql.com/doc/refman/4.1/en/datetime.html MySQL DATETIME 	 * format 	 */ 	function toMySQL($local = false) 	{ 		$date = ($local) ? $this->_date + $this->_offset : $this->_date; 		$date = ($this->_date !== false) ? date('Y-m-d H:i:s', $date) : null; 		return $date; 	}  	/** 	 * Gets the date as UNIX time stamp. 	 * 	 * @return a date as a unix time stamp 	 */ 	function toUnix($local = false) 	{ 		$date = null; 		if ($this->_date !== false) { 			$date = ($local) ? $this->_date + $this->_offset : $this->_date; 		} 		return $date; 	}  	/** 	 * Gets the date in a specific format 	 * 	 * Returns a string formatted according to the given format. Month and weekday names and 	 * other language dependent strings respect the current locale 	 * 	 * @param string $format  The date format specification string (see {@link PHP_MANUAL#strftime}) 	 * @return a date in a specific format 	 */ 	function toFormat($format = '%Y-%m-%d %H:%M:%S') 	{ 		$date = ($this->_date !== false) ? $this->_strftime($format, $this->_date + $this->_offset) : null;  		return $date; 	}  	/** 	 * Translates needed strings in for JDate::toFormat (see {@link PHP_MANUAL#strftime}) 	 * 	 * @access protected 	 * @param string $format The date format specification string (see {@link PHP_MANUAL#strftime}) 	 * @param int $time Unix timestamp 	 * @return string a date in the specified format 	 */ 	function _strftime($format, $time) 	{ 		if(strpos($format, '%a') !== false) 			$format = str_replace('%a', $this->_dayToString(date('w', $time), true), $format); 		if(strpos($format, '%A') !== false) 			$format = str_replace('%A', $this->_dayToString(date('w', $time)), $format); 		if(strpos($format, '%b') !== false) 			$format = str_replace('%b', $this->_monthToString(date('n', $time), true), $format); 		if(strpos($format, '%B') !== false) 			$format = str_replace('%B', $this->_monthToString(date('n', $time)), $format); 		$date = strftime($format, $time); 		return $date; 	}  	/** 	 * Translates month number to string 	 * 	 * @access protected 	 * @param int $month The numeric month of the year 	 * @param bool $abbr Return the abreviated month string? 	 * @return string month string 	 */ 	function _monthToString($month, $abbr = false) 	{ 		switch ($month) 		{ 			case 1:  return $abbr ? JText::_('JANUARY_SHORT')   : JText::_('JANUARY'); 			case 2:  return $abbr ? JText::_('FEBRUARY_SHORT')  : JText::_('FEBRUARY'); 			case 3:  return $abbr ? JText::_('MARCH_SHORT')     : JText::_('MARCH'); 			case 4:  return $abbr ? JText::_('APRIL_SHORT')     : JText::_('APRIL'); 			case 5:  return $abbr ? JText::_('MAY_SHORT')       : JText::_('MAY'); 			case 6:  return $abbr ? JText::_('JUNE_SHORT')      : JText::_('JUNE'); 			case 7:  return $abbr ? JText::_('JULY_SHORT')      : JText::_('JULY'); 			case 8:  return $abbr ? JText::_('AUGUST_SHORT')    : JText::_('AUGUST'); 			case 9:  return $abbr ? JText::_('SEPTEMBER_SHORT')  : JText::_('SEPTEMBER'); 			case 10: return $abbr ? JText::_('OCTOBER_SHORT')   : JText::_('OCTOBER'); 			case 11: return $abbr ? JText::_('NOVEMBER_SHORT')  : JText::_('NOVEMBER'); 			case 12: return $abbr ? JText::_('DECEMBER_SHORT')  : JText::_('DECEMBER'); 		} 	}  	/** 	 * Translates day of week number to string 	 * 	 * @access protected 	 * @param int $day The numeric day of the week 	 * @param bool $abbr Return the abreviated day string? 	 * @return string day string 	 */ 	function _dayToString($day, $abbr = false) 	{ 		switch ($day) 		{ 			case 0: return $abbr ? JText::_('SUN') : JText::_('SUNDAY'); 			case 1: return $abbr ? JText::_('MON') : JText::_('MONDAY'); 			case 2: return $abbr ? JText::_('TUE') : JText::_('TUESDAY'); 			case 3: return $abbr ? JText::_('WED') : JText::_('WEDNESDAY'); 			case 4: return $abbr ? JText::_('THU') : JText::_('THURSDAY'); 			case 5: return $abbr ? JText::_('FRI') : JText::_('FRIDAY'); 			case 6: return $abbr ? JText::_('SAT') : JText::_('SATURDAY'); 		} 	}  }
    Avete qualche suggerimento, come posso fare x risolvere, e ` basilare x me` avere il sito in locale cosi` posso smanettare senza paura di sbagliare ed imparare visto che sono all'inizio.
    grazie infinite!

  2. #2
    leggo su internet che molti hanno questo problema, come da spiegazioni trovate ho provato ad editare il file php.ini nei file di installazione xampp alla sezione

    Defines the default timezone used by the date functions
    date.timezone = "default"

    ho aggiunto

    Defines the default timezone used by the date functions
    date.timezone = "Europe/Rome"

    ho anche provato altre soluzioni, risiedo in thailandia ho provato col fuso di bangkok ma il prob persiste

    Grazie

  3. #3
    sono riuscito a risolvere il prob editando il file php.ini che fa` parte dell'istallazione di xampp, ho aggiunto la stringa "europe/rome" come ho letto in rete,c i ho provato un paio di volte e alla fine ci sono riuscito.
    Il prob adesso e un altro vedo regolarmente il back end e posso navigare ovunque, lavorare nomrmalmente ma nek l front hand vedo solo la home page, qualsiasi menu`, link, ecc clicco e mi da` erroe 404, pagina non trovata.
    Come posso fare x risolvere?
    Ho controlato il mi database ci sno tutti i file 69 come da database originale.
    Grazie

  4. #4
    usi qualche componente per il SEO (tipo sh404SEF)? In questo caso devi cancellare la cache. Controllare se nel configuration.php hai settato correttamente il nuovo percorso. Inoltre prova cancellando la cache di Joomla! :

    in admin Seleziona Strumenti --> Pulisci Cache

  5. #5
    Grazie Maje sei sempre disponibile grazie!!!!!

    Ho provato ad eliminare la cashe, niente da fare, sembra che sul server locale il mio xampp ci sia solo la home page, se clicco ogni altro link, menu, ecc, mi riporta all' errore 404, pagina non trovata sul server.
    Ho installato joomfish, il sito e` in due lingue ita e ing e le bandierine in alto su cui clicchi e scegli la lingua non appaiono, appare la scritta italiano inglese al loro posto, l'url della home page e`
    http://localhost/extreme/ equivalente in remoto di http://www.extremespearfishing-worldtravel.com/, quello che non capisco, in remoto se richiamo la mia home page l'indirizzo e`
    http://www.extremespearfishing-worldtravel.com/, appare la pagia in inglese xche` questa lingua e` di default. Se poi clicco sulle bandierine di joomfish l'url si popola con i prefissi, si dice cosi`? It i o En secondo la lingua scelta. In locale l'url e` http://localhost/extreme/ che mi riporta alla home page ma in italiano.
    Dico questo pr porvare adarti elementi di analisi in piu`, non so` se joommfish possa centrare col prob.

    Non ho installato nessun componente seo, o meglio visto che il mio servizio host mi ha dato tutto con joomla gia` installato, i settaggi seo, mod riwrite, ecc sono tutti attivi ma non ho installato altri componenti come sh404SEF, in caso come faccio a controllare se sh404SEF e` installato, lo trovo nei componenti come modulo sh404SEF? Se si`, non c'e`.
    Grazie infinite

  6. #6
    Come posso controllare se nel configuration.php ho settato correttamente il nuovo percorso, il nuovo percorso di cosa, della cache? Se si mi indichi x favore bene come, abbi pazienza e scusa la banalita`,
    grazie

    sul sito di akeba la risoluzione porb parla proprio del prob che ho io, riporto cosa dice:

    Sometimes you might be getting URL errors. For example, the first page might display but clicking on any link returns a 404 error......Both of those issues have nothing to do with the restoration itself, but your server setup and a clash with how Joomla! works. The easiest way to work around it is using the $live_site variable in your configuration.php. Edit the configuration.php file in the root of your site and modify it so that the line starting with var $live_site looks like this:
    var $live_site = "http://www.mysite.com";
    If you restored to a server which required the $live_site hack, next time do yourself a favour: use ABI's feature for changing the $live_site variable. It is available in the second to last step of the restoration procedure, just under the text boxes where you define your site's name and email details.
    Di nuovo, capiaco cosa vule dire ma non tecnicamente parlando ho paura ad editare xche` non ho capito quale riga, qui il mio configuration.php:

    codice:
    <?php class JConfig { 	var $offline = '0'; 	var $editor = 'none'; 	var $list_limit = '20'; 	var $helpurl = 'http://www.joomla.it'; 	var $debug = '0'; 	var $debug_lang = '0'; 	var $sef = '1'; 	var $sef_rewrite = '1'; 	var $sef_suffix = '1'; 	var $feed_limit = '10'; 	var $feed_email = 'author'; 	var $secret = 'DeOhZpeQK1SLHI2h'; 	var $gzip = '0'; 	var $error_reporting = '-1'; 	var $xmlrpc_server = '0'; 	var $log_path = 'E:/xampp/htdocs/extreme/logs'; 	var $tmp_path = 'E:/xampp/htdocs/extreme/tmp'; 	var $live_site = ''; 	var $force_ssl = '0'; 	var $offset = '7'; 	var $caching = '0'; 	var $cachetime = '15'; 	var $cache_handler = 'file'; 	var $memcache_settings = array (); 	var $ftp_enable = '0'; 	var $ftp_host = '127.0.0.1'; 	var $ftp_port = '21'; 	var $ftp_user = 'ugto61fg'; 	var $ftp_pass = 'pugzux9x'; 	var $ftp_root = 'public_html'; 	var $dbtype = 'mysql'; 	var $host = 'localhost'; 	var $user = 'root'; 	var $db = 'ugto61fg_jpack'; 	var $dbprefix = 'jos_'; 	var $mailer = 'mail'; 	var $mailfrom = 'info@extremespearfishing-worldtravel.com'; 	var $fromname = 'www.extremespearfishing-worldtravel.com'; 	var $sendmail = '/usr/sbin/sendmail'; 	var $smtpauth = '0'; 	var $smtpsecure = 'none'; 	var $smtpport = '25'; 	var $smtpuser = ''; 	var $smtppass = ''; 	var $smtphost = 'localhost'; 	var $MetaAuthor = '1'; 	var $MetaTitle = '1'; 	var $lifetime = '50'; 	var $session_handler = 'database'; 	var $password = '12le04'; 	var $sitename = 'www.extremespearfishing-worldtravel.com'; 	var $MetaDesc = ''; 	var $MetaKeys = ''; 	var $offline_message = 'Dear friend, my web site will be off line for a few hours due server hosting maintenance, excuse us!'; 	var $legacy = '0'; 	var $debug_db = '0';
    mi indicate quale var devo editare ce ne e` piu di uno con l'url dela mia home page.

    La pagina di soluzioni prob akeba su cui si parla di questo e` qua
    http://www.akeebabackup.com/document...n-process.html

    grazie infinite x il vostro aiuto, sono ancora troppo inesperto per capire bene queste cose da solo, scusate.

  7. #7
    Ho risolto il prob e ne ho creato un altro!
    Il back end prima funzionava perfettamente.
    Nel mio configuration.php come da istruzioni ho modificato la linea
    var $live_site ' '
    con
    var $live_site 'http://www.extremespearfishing-worldtravel.com'

    adesso il front hand funziona benissimo, vedo tutto e tutto e` ok ma i prob li ha adesso il back end.
    Pannelo di controllo, i menu in alto:
    site, menu`, components,extensions, toos, help,
    non funzionao piu`, sono incliccabili!!!!
    Lo sono invece le icone sottostanti le varie voci che riportano a
    add new article, artcile manager, ecc,
    le icone sono state sotituite da scritte con il nome del menu: add new article, artcile manager, ecc,
    le icone non hanno piu disegno ma funzionano, sono cliccabili. Capisci bene che senza i menu sopra citati:
    site, menu`, components,extensions, toos, help
    non posso accedere a determinati comandi, non posso accedere alla cache.
    Avete idee x favore?
    Grazie

  8. #8

  9. #9
    devi impostare correttamente la variabile $live_site con il tuo percorso locale, dunque prova con:

    Codice PHP:
    var $live_site 'http://localhost/extreme/'
    Dunque nel tuo configuration.php vai alla riga dove è impostata la variabile $live_site e provi a metterci il valore che ti ho suggerito sopra (ad ogni modo gli devi mettere il percorso della tua installazione di Joomla! in locale, che dovrebbe appunto essere, se non ho capito male, http://localhost/extreme/)

  10. #10
    il percorso
    http://localhost/extreme/
    e` giusto.

    Niente da fare con questa modifica,
    se faccio come hai detto, il back end torna a funzionare correttamente ma il front hand tora ad erroe 404, vedo solo la home page, clicco qualsiasi menu, ecc della mia home page, e ottengo erore 404, pagina non trovata,
    grazie x il tuo prezziosissimo aiuto!!!!!

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved.