Hallo Bin am verzweifeln. Shop am WE auf anderen Server/Provider umgesiedelt. Alles wie bei Dennis seiner Anleitung gemacht. Mit All-inkl. telefoniert,aber er konnte mir letztendlich nicht weiterhelfen. Die Fehlermeldung : Fatal error: Allowed memory size of 268435456 bytes exhausted (tried to allocate 778868624 bytes) in /www/htdocs/w011ea0f/html/gm/classes/FileLog.php on line 61. Er hat mir das Speicherlimit hochgesetzt,auch versuchsweise bis 1 GB,Speicher läuft trotzdem über. Irgendeine Datei wird von Magnalister aufgerufenund verursacht das ganze. Ich hab Magnalister nicht in Gebrauch. Irgendeine Idee?LG Jürgen PHP: <?php/* -------------------------------------------------------------- FileLog.php 2011-09-08 gambio Gambio GmbH http://www.gambio.de Copyright (c) 2011 Gambio GmbH Released under the GNU General Public License (Version 2) [http://www.gnu.org/licenses/gpl-2.0.html] --------------------------------------------------------------*/class FileLog{ var $v_log_active = true; var $v_file_base = ''; var $v_file_suffix = ''; var $v_max_filesize = 0; function FileLog($p_file_base, $p_log_active=true) { $this->v_file_base = $p_file_base; $this->v_file_suffix = $this->get_secure_token(); if(defined('SQL_LOG_MAX_FILESIZE') && (double)SQL_LOG_MAX_FILESIZE > 0) { $this->v_max_filesize = (double)SQL_LOG_MAX_FILESIZE * 1024 * 1024; } else { $this->v_max_filesize = 1 * 1024 * 1024; } } function get_file_path() { $t_path = 'logfiles/'.$this->v_file_base.'-'.$this->v_file_suffix.'.log'; return $t_path; } function write($p_string) { if($this->v_log_active == false) { # log deactivated. cancel write. return true; } if((file_exists(DIR_FS_CATALOG . $this->get_file_path()) == false && is_writeable(DIR_FS_CATALOG . 'logfiles/') == false) || (file_exists(DIR_FS_CATALOG . $this->get_file_path()) == true && is_writeable(DIR_FS_CATALOG . $this->get_file_path()) == false)) { return false; } if(@filesize(DIR_FS_CATALOG . $this->get_file_path()) >= $this->v_max_filesize && is_writeable(DIR_FS_CATALOG . 'logfiles/') == true) { $t_file_content = file_get_contents(DIR_FS_CATALOG . $this->get_file_path()); $t_gz_file_content = gzencode($t_file_content, 9); $t_gz_filename = $this->v_file_base . '-' . $this->v_file_suffix . '_' . date('Ymd_His') . '.log.gz'; $fp = fopen(DIR_FS_CATALOG . 'logfiles/' . $t_gz_filename, 'w+'); fwrite($fp, $t_gz_file_content); fclose($fp); unlink(DIR_FS_CATALOG . $this->get_file_path()); } $fp = fopen(DIR_FS_CATALOG . $this->get_file_path(), 'a+'); fwrite($fp, $p_string); fclose($fp); return true; } function set_log_active($p_status) { $this->v_log_active = $p_status; } public static function get_secure_token() { static $t_secure_token; if($t_secure_token === null && is_dir(DIR_FS_CATALOG . 'media')) { $t_dh = opendir(DIR_FS_CATALOG . 'media'); if($t_dh !== false) { while(($t_file = readdir($t_dh)) !== false) { // search for secure token file if(strpos($t_file, 'secure_token_') !== false) { $t_secure_token = str_replace('secure_token_', '', $t_file); break; } } if($t_secure_token === null) { $t_secure_token = md5(mt_rand()); $fp = fopen(DIR_FS_CATALOG . 'media/secure_token_' . $t_secure_token, 'w'); fwrite($fp, '.'); fclose($fp); } } } return $t_secure_token; }}?>
Ja ,füg das mal hier ein WARNING(2): readdir() expects parameter 1 to be resource, boolean given in /www/htdocs/w011ea0f/html/admin/includes/magnalister/php/lib/functionLib.php:993 Backtrace: #0 readdir called at [/www/htdocs/w011ea0f/html/admin/includes/magnalister/php/lib/functionLib.php:993] #1 magnaGetAvailableLanguages called at [/www/htdocs/w011ea0f/html/magnaCallback.php:635] #2 magnaCallbackRun called at [/www/htdocs/w011ea0f/html/magnaCallback.php:821] #3 require_once called at [/www/htdocs/w011ea0f/html/system/overloads/ApplicationTopExtenderComponent/MagnalisterApplicationTopExtender.inc.php:21] #4 (#MagnalisterApplicationTopExtender) proceed called at [/www/htdocs/w011ea0f/html/system/overloads/ApplicationTopExtenderComponent/OpenSearchApplicationTopExtender.inc.php:16] #5 (#OpenSearchApplicationTopExtender) proceed called at [/www/htdocs/w011ea0f/html/system/overloads/ApplicationTopExtenderComponent/ShopOfflineApplicationTopExtender.inc.php:16] #6 (#ShopOfflineApplicationTopExtender) proceed called at [/www/htdocs/w011ea0f/html/system/overloads/ApplicationTopExtenderComponent/StyleEditApplicationTopExtender.inc.php:16] #7 (#StyleEditApplicationTopExtender) proceed called at [/www/htdocs/w011ea0f/html/user_classes/overloads/ApplicationTopExtenderComponent/opencarts_ApplicationTopExtender.inc.php:20] #8 (#opencarts_ApplicationTopExtender) proceed called at [/www/htdocs/w011ea0f/html/user_classes/overloads/ApplicationTopExtenderComponent/pt_plugins_manager_ApplicationTopExtenderComponent.inc.php:16] #9 (#pt_plugins_manager_ApplicationTopExtenderComponent) proceed called at [/www/htdocs/w011ea0f/html/user_classes/overloads/ApplicationTopExtenderComponent/swgx2_0005_ApplicationTopExtenderComponent.inc.php:16] #10 (#swgx2_0005_ApplicationTopExtenderComponent) proceed called at [/www/htdocs/w011ea0f/html/includes/application_top.php:1008] #11 include called at [/www/htdocs/w011ea0f/html/index.php:27] #12 include called at [/www/htdocs/w011ea0f/html/pt_shop_control.php:64] Context: Array ( [handle] => [langs] => Array ( ) [file] => [match] => Array ( ) ) Session: Array ( [tracking] => Array ( [http_referer] => Array ( [path] => ) [ip] => 85.13.159.249 [date
Benenn' mal das Verzeichnis um /admin/includes/magnalister in /admin/includes/magnalister_und_wech Dann sollte der Shop den Magnaten zumindest nicht mehr finden und somit nicht einbinden. Versuch ist es wert.
Hat sich leider nichts geändert Beim Aufruf als Admin kommen diese Fehlermeldungen: Warning: include_once(www/w011ea0f/inc/get_usermod.inc.php) [function.include-once]: failed to open stream: No such file or directory in /www/htdocs/w011ea0f/html/pt_shop_control.php on line 47 Warning: include_once() [function.include]: Failed opening 'www/w011ea0f/inc/get_usermod.inc.php' for inclusion (include_path='.:/usr/share/php:..') in /www/htdocs/w011ea0f/html/pt_shop_control.php on line 47 Warning: require_once(www/w011ea0f/inc/xtc_check_agent.inc.php) [function.require-once]: failed to open stream: No such file or directory in /www/htdocs/w011ea0f/html/admin/includes/application_top.php on line 72 Fatal error: require_once() [function.require]: Failed opening required 'www/w011ea0f/inc/xtc_check_agent.inc.php' (include_path='.:/usr/share/php:..') in /www/htdocs/w011ea0f/html/admin/includes/application_top.php on line 72 Das gleiche kommt aber auch wenn ich in den MSD rein will LG Jürgen
So, da isser wieder... Noch ein wenig die Beulen wegmachen und der Shop ist wieder da. Admin-Bereich zickt noch rum, aber den kriegen wir auch noch klein
So, nu aber. Vertipper in den Pfaden der configure.php in /admin/includes Falsche Rechte auf den Logdateien und noch der alte Datenbankbenutzer in der admin configure.php