Back to top
com_jrecache
come ti dicevo, hai la cache del vecchio sito con il database del nuovo e/o su un server diverso, una tale situazione come potrebbe non procurare problemi?vuotala e nel caso disinstalla e reinstalla il componente..
Credo che tale componente abbia una sua impostazione di configurazione che definisca il percorso ad una cartella da utilizzare come cache.Probabilmente nella configurazione che hai passato è rimasto il percorso (path) impostato sul precedente server quindi adesso lui non riesce a trovare tale locazione.
Quindi dovrei provare a modificare la path dal file configuration.php del componente JRE? In quello generale sembra settato correttamente.
Si c'è un file configurazione, ma non riesco a trovare qualcosa simile ad una path prova a copiare ed incollare qui il contenuto del configuration.php di JRE.Codice: [Seleziona]<?php/*** @version $Id: configuration.php 158 2007-12-29 00:15:54Z richard $* @package JRECACHE* @subpackage Admin* @copyright Copyright (C) 2007 Joomlatwork.com* @license see LICENSE.php**/defined('_JRE_CACHE') or die('Restricted access: not allowed to call the bootstrap file directly');function edit_configuration ( $jrecache_config ) { include_once( _JRECACHE_DIR . _DS . 'library'. _DS . 'jrelib.php'); $root_folder = rtrim(rtrim(_JREROOTFOLDER,'/'), '\\'); /* * Setting the cache directory, if empty set it to the global configuration setting. */ foreach(array( 'enable_javascript','javascript_gzip_enabled','javascript_compact','js_long_expires', 'enable_css','css_gzip_enabled','css_long_expires','check_httpuseragent', 'raw_mode', 'drop_hack_http_requests','auto_remove_cache_frontend', 'auto_remove_cache_frontend_referrer', 'auto_remove_cache_backend', 'auto_remove_cache', 'enable_cache','garbage_collection','enable_page_compression','enable_compressed_cache','enable_post_caching','enable_automatic_house_keeping', 'enable_debug') AS $field) { $lists[ $field ] = jreHTML::jre_radio( $field, $jrecache_config->$field ); } $cache_directory = $jrecache_config->cache_directory; if ($cache_directory == "" ) { $cache_directory = $root_folder . _DS . 'cache'; } $cookies = $jrecache_config->cookies; if ( $jrecache_config->name_debug_file == "") { $jrecache_config->name_debug_file = $cache_directory . _DS . 'jrecache_debug_info.out'; } // Javascript webpath; if ( empty($jrecache_config->javascript_webdir) ) { $jrecache_config->javascript_webdir = str_replace( $_SERVER['DOCUMENT_ROOT'], '', $root_folder) . '/cache/' ; } if ( empty ( $jrecache_config->css_webdir)) { $jrecache_config->css_webdir = str_replace( $_SERVER['DOCUMENT_ROOT'], '', $root_folder) . '/cache/' ; } $debug_ip= $jrecache_config->debug_ip; if ( $debug_ip == "") { $debug_ip = config_cache_getip(); } if ( $jrecache_config->location_config_host_app == "" ) { $file_location = $root_folder . _DS . "configuration.php"; if (file_exists( $file_location)) { $jrecache_config->location_config_host_app = $file_location; } else { $jrecache_config->location_config_host_app = "[SET THE LOCATION OF THE CONFIGURATION.PHP OF THE MAIN SYSTEM]"; } } include_once ( _JRECACHE_DIR . _DS . 'views' . _DS . 'configuration.php'); HTML_jrecache_config::configuration ($lists, $jrecache_config, $cache_directory, $debug_ip);}function save_configuration ( ) { include_once( _JRECACHE_DIR . _DS . 'library'. _DS . 'config.php'); $jrecache_config =& new jrecache_config("_JRECache_Config", _JRECACHE_DIR . _DS . "jrecache.config.php"); foreach($_POST as $key => $value) { $jrecache_config->setCfg($key, $value); } $jrecache_config->saveConfig();}function config_cache_getip() { if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown")) $ip = getenv("HTTP_CLIENT_IP"); else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown")) $ip = getenv("HTTP_X_FORWARDED_FOR"); else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown")) $ip = getenv("REMOTE_ADDR"); else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")) $ip = $_SERVER['REMOTE_ADDR']; else $ip = "unknown"; return($ip);}?>
<?php/*** @version $Id: configuration.php 158 2007-12-29 00:15:54Z richard $* @package JRECACHE* @subpackage Admin* @copyright Copyright (C) 2007 Joomlatwork.com* @license see LICENSE.php**/defined('_JRE_CACHE') or die('Restricted access: not allowed to call the bootstrap file directly');function edit_configuration ( $jrecache_config ) { include_once( _JRECACHE_DIR . _DS . 'library'. _DS . 'jrelib.php'); $root_folder = rtrim(rtrim(_JREROOTFOLDER,'/'), '\\'); /* * Setting the cache directory, if empty set it to the global configuration setting. */ foreach(array( 'enable_javascript','javascript_gzip_enabled','javascript_compact','js_long_expires', 'enable_css','css_gzip_enabled','css_long_expires','check_httpuseragent', 'raw_mode', 'drop_hack_http_requests','auto_remove_cache_frontend', 'auto_remove_cache_frontend_referrer', 'auto_remove_cache_backend', 'auto_remove_cache', 'enable_cache','garbage_collection','enable_page_compression','enable_compressed_cache','enable_post_caching','enable_automatic_house_keeping', 'enable_debug') AS $field) { $lists[ $field ] = jreHTML::jre_radio( $field, $jrecache_config->$field ); } $cache_directory = $jrecache_config->cache_directory; if ($cache_directory == "" ) { $cache_directory = $root_folder . _DS . 'cache'; } $cookies = $jrecache_config->cookies; if ( $jrecache_config->name_debug_file == "") { $jrecache_config->name_debug_file = $cache_directory . _DS . 'jrecache_debug_info.out'; } // Javascript webpath; if ( empty($jrecache_config->javascript_webdir) ) { $jrecache_config->javascript_webdir = str_replace( $_SERVER['DOCUMENT_ROOT'], '', $root_folder) . '/cache/' ; } if ( empty ( $jrecache_config->css_webdir)) { $jrecache_config->css_webdir = str_replace( $_SERVER['DOCUMENT_ROOT'], '', $root_folder) . '/cache/' ; } $debug_ip= $jrecache_config->debug_ip; if ( $debug_ip == "") { $debug_ip = config_cache_getip(); } if ( $jrecache_config->location_config_host_app == "" ) { $file_location = $root_folder . _DS . "configuration.php"; if (file_exists( $file_location)) { $jrecache_config->location_config_host_app = $file_location; } else { $jrecache_config->location_config_host_app = "[SET THE LOCATION OF THE CONFIGURATION.PHP OF THE MAIN SYSTEM]"; } } include_once ( _JRECACHE_DIR . _DS . 'views' . _DS . 'configuration.php'); HTML_jrecache_config::configuration ($lists, $jrecache_config, $cache_directory, $debug_ip);}function save_configuration ( ) { include_once( _JRECACHE_DIR . _DS . 'library'. _DS . 'config.php'); $jrecache_config =& new jrecache_config("_JRECache_Config", _JRECACHE_DIR . _DS . "jrecache.config.php"); foreach($_POST as $key => $value) { $jrecache_config->setCfg($key, $value); } $jrecache_config->saveConfig();}function config_cache_getip() { if (getenv("HTTP_CLIENT_IP") && strcasecmp(getenv("HTTP_CLIENT_IP"), "unknown")) $ip = getenv("HTTP_CLIENT_IP"); else if (getenv("HTTP_X_FORWARDED_FOR") && strcasecmp(getenv("HTTP_X_FORWARDED_FOR"), "unknown")) $ip = getenv("HTTP_X_FORWARDED_FOR"); else if (getenv("REMOTE_ADDR") && strcasecmp(getenv("REMOTE_ADDR"), "unknown")) $ip = getenv("REMOTE_ADDR"); else if (isset($_SERVER['REMOTE_ADDR']) && $_SERVER['REMOTE_ADDR'] && strcasecmp($_SERVER['REMOTE_ADDR'], "unknown")) $ip = $_SERVER['REMOTE_ADDR']; else $ip = "unknown"; return($ip);}?>
include_once( _JRECACHE_DIR . _DS . 'library'. _DS . 'config.php');
Avevo usato Jsecure quindi il link di accesso è diverso da quello standard.Come posso disattivarlo?
Quindi questo Jsecure come lo mando a quel paese?
CitazioneQuindi questo Jsecure come lo mando a quel paese?Boh!! candidamente devo ammettere che non lo so ..
it looks like the issue is with the scripts you areincluding...and the error I see is the content encoding error on the URLyou gave me.When you run the script on the command line, the first line you get, isthis:Warning:jre_database(/home/user/www.alloggiorent.com/configuration.php):failed to open stream: No such file or directory in/home/user/alloggiorent.com/administrator/components/com_jrecache/library/database.php on line 45Warning: jre_database( Failed opening'/home/user/www.alloggiorent.com/configuration.php' for inclusion(include_path='.:/usr/local/lib/php') in/home/user/alloggiorent.com/administrator/components/com_jrecache/library/database.php on line 45That basically garbles the headers, and the web server doesn't know whatto do with it.When I try to run that file you have:ps10789:/home/user/alloggiorent.com/administrator#/usr/local/bin/php /home/user/www.alloggiorent.com/configuration.phpCould not open input file:/home/user/www.alloggiorent.com/configuration.phpSo, it has to run from the include as well. That should point you inthe right direction to get fixed up.
Copyleft: Tutto il materiale pubblicato o comunque presente all'interno del sito www.joomla.it può essere utilizzato, diffuso e modificato liberamente. Hosting fornito gratuitamente da Joomlahost.it Disegno web da kreatif multimedia srl