Managed Server
Neuigkeiten
  • Die modified eCommerce Shopsoftware ist kostenlos, aber nicht umsonst.
    Spenden
  • Damit wir die modified eCommerce Shopsoftware auch zukünftig kostenlos anbieten können:
    Spenden
  • Thema: Nach Umzug: Es ist ein Fehler aufgetreten!

    r3LaXeD

    • Fördermitglied
    • Beiträge: 86
    Nach Umzug: Es ist ein Fehler aufgetreten!
    am: 06. August 2019, 17:24:50
    Hallo zusammen.

    Ich möchte aktuell meinen komplett funktionstüchtigen Shop umziehen in ein neues Hosting System.

    Sämtliche Daten sind eingespielt und der SQL Dumb intergriert.

    Leider erscheint folgender Fehler beim aufrufen meiner URL:

    Zitat
    Es ist ein Fehler aufgetreten!
    There was an error!
    Il y avait une erreur!

    Zur Inbetriebnahme nutze ich aktuell folgende URL:
    http://5924107209590.hostingkunde.de/

    Ich habe eine Datenbanküberprüfung und Reparatur mit phpmyadmin durchgeführt.

    Würde mich riesig über Hilfestellung freuen....

    Linkback: https://www.modified-shop.org/forum/index.php?topic=40374.0
    Modulshop - Eine große Auswahl an neuen und hilfreichen Modulen für die modified eCommerce Shopsoftware

    fishnet

    • Fördermitglied
    • Beiträge: 4.853
    • Geschlecht:
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #1 am: 06. August 2019, 17:33:51
    Benenne bitte im Verzeichnis /export die Datei export/_error_reporting.admin um in export/_error_reporting.all

    Ich nehme an du hast Modified 1.06

    Hast du nur die Datei /includes/configure.php angepasst oder auch die Datei admin/includes/configure.php  ?

    r3LaXeD

    • Fördermitglied
    • Beiträge: 86
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #2 am: 06. August 2019, 17:35:19
    habe ich gemacht...

    danke schonmal vorab

    fishnet

    • Fördermitglied
    • Beiträge: 4.853
    • Geschlecht:
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #3 am: 06. August 2019, 17:36:10
    bekommst du nun eine andere Fehlermeldung?

    Hast du nur die Datei /includes/configure.php angepasst oder auch die Datei admin/includes/configure.php  ?

    r3LaXeD

    • Fördermitglied
    • Beiträge: 86
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #4 am: 06. August 2019, 17:37:23
    habe beide angepasst.

    nun Kommt:

    2002 - No such file or directory
    [MOD SQL Error]

    r3LaXeD

    • Fördermitglied
    • Beiträge: 86
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #5 am: 06. August 2019, 19:37:40
    ich hatte wohl einen Fehler in den Datenbankeinstellungen...

    Nun ist dieser Fehler behoben,

    leider sind dafür sehr viele Fehler dazugekommen...

    Zitat
    Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /kunden/592410_94094/webseiten/includes/classes/class.inputfilter.php on line 302

    Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /kunden/592410_94094/webseiten/includes/classes/class.inputfilter.php:300) in /kunden/592410_94094/webseiten/includes/application_top.php on line 278

    Warning: Illegal string offset 'products_id' in /kunden/592410_94094/webseiten/templates/shop3/source/boxes/whats_new.php on line 68

    Würde mich über Unterstützung sehr freuen....

    awids

    • Experte
    • Beiträge: 3.789
    • Geschlecht:
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #6 am: 06. August 2019, 19:50:47
    Da scheint einiges im Argen zu liegen... Poste doch mal bitte den Inhalt deiner beiden configure.php-Dateien (Datenbank-Verbindung unkenntlich machen!!!) und den Inhalt der .htaccess.

    Zusatzfrage: Haben Live- und Zielsystem dieselbe PHP-Version?

    r3LaXeD

    • Fördermitglied
    • Beiträge: 86
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #7 am: 06. August 2019, 19:54:18
    Leider ziehe ich das erste mal so ein gesamtes Projekt um,

    Danke vielmals für die Mühe, anbei die Dateiinhalte:

    includes
    Zitat
    <?php
    /* --------------------------------------------------------------

      modified eCommerce Shopsoftware
      http://www.modified.org-shop

       Copyright (c) 2009 - 2012 modified eCommerce Shopsoftware
       Released under the GNU General Public License (Version 2)
       [http://www.gnu.org/licenses/gpl-2.0.html]
      --------------------------------------------------------------
      based on:
      (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
      (c) 2002-2003 osCommerce (configure.php,v 1.13 2003/02/10); www.oscommerce.com
      (c) 2003 XT-Commerce (configure.php)

      Released under the GNU General Public License
      --------------------------------------------------------------*/

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
      define('HTTP_SERVER', 'http://5924107209590.hostingkunde.de/'); // eg, http://localhost - should not be empty for productive servers
      define('HTTPS_SERVER', 'https://5924107209590.hostingkunde.de/'); // eg, https://localhost - should not be empty for productive servers
      define('ENABLE_SSL', false); // secure webserver for checkout procedure?
      define('USE_SSL_PROXY', false); // using SSL proxy?
      define('DIR_WS_CATALOG', '/'); // absolute path required
      define('DIR_FS_DOCUMENT_ROOT', '/kunden/592410_94094/webseiten/');
      define('DIR_FS_CATALOG', '/kunden/592410_94094/webseiten/');
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_ORIGINAL_IMAGES', DIR_WS_IMAGES .'product_images/original_images/');
      define('DIR_WS_THUMBNAIL_IMAGES', DIR_WS_IMAGES .'product_images/thumbnail_images/');
      define('DIR_WS_INFO_IMAGES', DIR_WS_IMAGES .'product_images/info_images/');
      define('DIR_WS_POPUP_IMAGES', DIR_WS_IMAGES .'product_images/popup_images/');
      define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
      define('DIR_WS_INCLUDES',DIR_FS_DOCUMENT_ROOT. 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_FS_CATALOG . 'lang/');

      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
      define('DIR_FS_INC', DIR_FS_CATALOG . 'inc/');

    // define our database connection
      define('DB_SERVER', 'xxx'); // eg, localhost - should not be empty for productive servers
      define('DB_SERVER_USERNAME', 'xxx');
      define('DB_SERVER_PASSWORD', 'xxx');
      define('DB_DATABASE', 'xxxx');
      define('DB_MYSQL_TYPE', 'mysqli');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
      define('DB_SERVER_CHARSET', 'latin1'); // set db charset utf8 or latin1
    ?>

    Admin, Includes
    Zitat
    <?php
    /* --------------------------------------------------------------

      modified eCommerce Shopsoftware
      http://www.modified.org-shop

       Copyright (c) 2009 - 2012 modified eCommerce Shopsoftware
       Released under the GNU General Public License (Version 2)
       [http://www.gnu.org/licenses/gpl-2.0.html]
      --------------------------------------------------------------
      based on:
      (c) 2000-2001 The Exchange Project  (earlier name of osCommerce)
      (c) 2002-2003 osCommerce (configure.php,v 1.13 2003/02/10); www.oscommerce.com
      (c) 2003 XT-Commerce (configure.php)

      Released under the GNU General Public License
      --------------------------------------------------------------*/

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
      define('HTTP_SERVER', 'http://5924107209590.hostingkunde.de/'); // eg, http://localhost - should not be empty for productive servers
      define('HTTPS_SERVER', 'https://5924107209590.hostingkunde.de/'); // eg, https://localhost - should not be empty for productive servers
      define('ENABLE_SSL', false); // secure webserver for checkout procedure?
      define('USE_SSL_PROXY', false); // using SSL proxy?
      define('DIR_WS_CATALOG', '/'); // absolute path required
      define('DIR_FS_DOCUMENT_ROOT', '/kunden/592410_94094/webseiten/');
      define('DIR_FS_CATALOG', '/kunden/592410_94094/webseiten/');
      define('DIR_WS_IMAGES', 'images/');
      define('DIR_WS_ORIGINAL_IMAGES', DIR_WS_IMAGES .'product_images/original_images/');
      define('DIR_WS_THUMBNAIL_IMAGES', DIR_WS_IMAGES .'product_images/thumbnail_images/');
      define('DIR_WS_INFO_IMAGES', DIR_WS_IMAGES .'product_images/info_images/');
      define('DIR_WS_POPUP_IMAGES', DIR_WS_IMAGES .'product_images/popup_images/');
      define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
      define('DIR_WS_INCLUDES',DIR_FS_DOCUMENT_ROOT. 'includes/');
      define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
      define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
      define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
      define('DIR_WS_LANGUAGES', DIR_FS_CATALOG . 'lang/');

      define('DIR_WS_DOWNLOAD_PUBLIC', DIR_WS_CATALOG . 'pub/');
      define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
      define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');
      define('DIR_FS_INC', DIR_FS_CATALOG . 'inc/');

    // define our database connection
      define('DB_SERVER', 'xxx'); // eg, localhost - should not be empty for productive servers
      define('DB_SERVER_USERNAME', 'xxx');
      define('DB_SERVER_PASSWORD', 'xxx');
      define('DB_DATABASE', 'xxx');
      define('DB_MYSQL_TYPE', 'mysqli');
      define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', ''); // leave empty '' for default handler or set to 'mysql'
      define('DB_SERVER_CHARSET', 'latin1'); // set db charset utf8 or latin1
    ?>

    htaccess
    Zitat
    ##-- $Id: .htaccess 3209 2012-07-12 11:51:11Z gtb-modified $

    ##-- Default charset
    #AddDefaultCharset UTF-8
    AddDefaultCharset ISO-8859-15

    ##-- Disable the server signature
    ServerSignature Off

    ##-- Turn off ETags in HTTP-header (use both directives)
    <IfModule mod_headers.c>
      Header unset ETag
    </IfModule>
    FileETag None

    ##-- When caching of gzipped JS and CSS files is used, enable this setting
    #<IfModule mod_headers.c>
    #  Header set Vary Accept-Encoding
    #</IfModule>

    ##-- when using Provider 1&1 set the following lines to activate PHP5
    #AddType x-mapp-php5 .php
    #AddHandler x-mapp-php5 .php

    # Disable directory browsing (disabled by default as this causes problems on some servers)
    #Options All -Indexes

    ##-- Enable the compression for any type of content
    #<IfModule mod_deflate.c>
    #  <FilesMatch "\\.(js|css|html|htm|php|xml|jpg|jpeg|png|gif)$">
    #    SetOutputFilter DEFLATE
    #  </FilesMatch>
    #</IfModule>

    ##-- Customization of HTTP request and response headers
    <IfModule mod_headers.c>
      <FilesMatch "\\.(ico|jpe?g|png|gif|swf|flv)$">
        Header set Cache-Control "max-age=2592000, public"
      </FilesMatch>
      <FilesMatch "\\.(css)$">
        Header set Cache-Control "max-age=604800, public"
      </FilesMatch>
      <FilesMatch "\\.(js)$">
        Header set Cache-Control "max-age=216000, private"
      </FilesMatch>
      <FilesMatch "\\.(xml|txt)$">
        Header set Cache-Control "max-age=216000, public, must-revalidate"
      </FilesMatch>
      <FilesMatch "\\.(html|htm|php)$">
        Header set Cache-Control "max-age=1, private, must-revalidate"
      </FilesMatch>
    </IfModule>

    ##-- Generation of Expires and Cache-Control HTTP headers
    <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresDefault "access plus 1 seconds"
      ExpiresByType image/gif "access plus 2592000 seconds"
      ExpiresByType image/jpeg "access plus 2592000 seconds"
      ExpiresByType image/png "access plus 2592000 seconds"
      ExpiresByType text/html "access plus 1 seconds"
      ExpiresByType text/css "access plus 604800 seconds"
      ExpiresByType text/javascript "access plus 216000 seconds"
      ExpiresByType application/x-javascript "access plus 216000 seconds"
    </IfModule>

    ##-- Configure php_flags if necessary
    ##-- BEGIN - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #<IfModule mod_php.c>

      ##-- Warn when arguments are passed by reference at function call time (from PHP5 allow_call_time_pass_reference is deprecated)
      #php_flag allow_call_time_pass_reference on

      ##-- Disable transparent sid support PHP-default is off (XTC Session only on first visit)
      #php_flag session.use_trans_sid off

      ##-- set suhosin flags because of errors with attributes (for webhosters with suhosin hardening patch enabled)
      #php_value suhosin.post.max_array_depth 0
      #php_value suhosin.post.max_array_index_length 0
      #php_value suhosin.post.max_vars 0
      #php_value suhosin.request.max_array_depth 0
      #php_value suhosin.request.max_array_index_length 0
      #php_value suhosin.request.max_vars 0

      ##-- set suhosin flags to have unencrypted session data, affecting "whos_online" & "shopping cart" (for webhosters with suhosin hardening patch enabled)patch enabled
      #php_value suhosin.session.encrypt Off
      #php_value suhosin.session.cryptkey ''

    ##-- END - use IfModule clause if PHP runs in CGI mode, otherwise just uncomment the lines with php_flag...
    #</IfModule>

    ##-- Redirect error pages to Sitemap
    ##-- set the correct Path to ErrorDocument
    ErrorDocument 400 /sitemap.html?error=400
    ErrorDocument 401 /sitemap.html?error=401
    ErrorDocument 402 /sitemap.html?error=402
    ErrorDocument 403 /sitemap.html?error=403
    ErrorDocument 404 /sitemap.html?error=404
    ErrorDocument 500 /sitemap.html?error=500

    ##-----------------------------------------
    ##- SEO Shopstat Modul (Hartmut Koenig)
    ##-----------------------------------------
    <IfModule mod_rewrite.c>
      ##-- Initialize and enable rewrite engine
      ##-- Documentation http://httpd.apache.org/docs/misc/rewriteguide.html
      RewriteEngine On

      ##-- EXAMPLE: If your shop is located at "http://www.yourdomain.com/shop",
      ##-- set the following line like e.g.: RewriteBase /shop/
      RewriteBase /

      ##-- Use canonical URLs
      ##-- redirect to www-domain, when www is missing and no subdomain given and not using an ssl-proxy
      ##-- HostEurope
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl\.webpack\.de$ [NC]
      ##-- 1und1
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl\.kundenserver\.de$ [NC]
      ##-- domainFACTORY
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^sslsites\.de$ [NC]
      ##-- All-Inkl
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^ssl-account\.com$ [NC]
      ##-- Strato
      #RewriteCond %{HTTP:X-Forwarded-Server}   !^www\.ssl-id\.de$ [NC]

      #RewriteCond %{HTTP_HOST}                 !^www\.(.*) [NC]
      #RewriteCond %{HTTP_HOST}                 !^(.*)\.(.*)\.(.*) [NC]
      #RewriteCond %{HTTP_HOST}                 !^localhost(.*)$ [NC]
      #RewriteRule ^(.*)                        http://www.%{HTTP_HOST}/$1 [R=301,L]

      ##-- Sitemap
      RewriteRule ^sitemap(.*)\.html$ shop_content.php?coID=8 [QSA,L]

      ##----------------------------------------------------------------------------------
      ##-- When working with SEO-Urls you can decide, whether to use a colon ":" or a dash "-" symbol
      ##-- (Windows Servers might have problems with colon as delimiter!)
      ##-- Change the delimiter symbol also in file "/inc/shopstat_functions.inc.php"
      ##----------------------------------------------------------------------------------

      ##-- Use colon delimiter ":" for SEO-URLS (default setting)
      ##-- Categories (:::)
      RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
      RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [QSA,L]
      RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
      RewriteRule (.*):::([_0-9]+)\.html$ index.php?cPath=$2 [QSA,L]

      ##-- Products (::)
      RewriteRule (.*)::(.+)\.html$ product_info.php?products_id=$2 [QSA,L]

      ##-- Content (:_:)
      RewriteRule (.*):_:([0-9]+)\.html$ shop_content.php?coID=$2 [QSA,L]

      ##-- Manufacturers (:.:)
      RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+):([_0-9]+)\.html$
      RewriteRule (.*):.:([_0-9]+):([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [QSA,L]
      RewriteCond %{REQUEST_URI} (.*):.:([_0-9]+)\.html$
      RewriteRule (.*):.:([0-9]+)\.html$ index.php?manufacturers_id=$2 [QSA,L]

      ##-- Use dash delimiter "-" for SEO-URLS
      ##-- Categories (---)
      #RewriteCond %{REQUEST_URI} (.*)---([_0-9]+)-([_0-9]+)\.html$
      #RewriteRule (.*)---([_0-9]+)-([_0-9]+)\.html$ index.php?cPath=$2&page=$3 [QSA,L]
      #RewriteCond %{REQUEST_URI} (.*)---([_0-9]+)\.html$
      #RewriteRule (.*)---([_0-9]+)\.html$ index.php?cPath=$2 [QSA,L]

      ##-- Products (--)
      #RewriteRule (.*)--(.+)\.html$ product_info.php?products_id=$2 [QSA,L]

      ##-- Content (-_-)
      #RewriteRule (.*)-_-([0-9]+)\.html$ shop_content.php?coID=$2 [QSA,L]

      ##-- Manufacturers (-.-)
      #RewriteCond %{REQUEST_URI} (.*)-.-([_0-9]+)-([_0-9]+)\.html$
      #RewriteRule (.*)-.-([_0-9]+)-([_0-9]+)\.html$ index.php?manufacturers_id=$2&page=$3 [QSA,L]
      #RewriteCond %{REQUEST_URI} (.*)-.-([_0-9]+)\.html$
      #RewriteRule (.*)-.-([0-9]+)\.html$ index.php?manufacturers_id=$2 [QSA,L]
    </IfModule>

    awids

    • Experte
    • Beiträge: 3.789
    • Geschlecht:
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #8 am: 06. August 2019, 20:25:10
    Zunächst mal könntest du alle Domain-Angaben ohne abschließenden Slash ("/") definieren - da du sonst im Frontend alle URLs mit Doppel-Slash hast ("//").

    Ich muss nochmal fragen, ob die PHP-Versionen bei beiden Shops identisch sind und vor allem, welche überhaupt im Einsatz ist. Du scheinst nämlich eine sehr alte Shopversion zu haben und hast bei DB_MYSQL_TYPE den Wert "mysqli" eingetragen, was frühstens ab PHP 5.6 verfügbar und standardmäßig ab PHP 7.0 enthalten ist.

    Die .htaccess hatte ich vorhin angefordert, weil alle URLs auf eine 403-Fehlerseite geleitet wurden, was du aber zwischenzeitlich behoben zu haben scheinst. Ansonsten sieht sie inhaltlich okay aus.

    r3LaXeD

    • Fördermitglied
    • Beiträge: 86
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #9 am: 06. August 2019, 20:41:08
    Danke dir.
    Die Folder mache ich direkt...

    das älteste was ich auswählen kann und ausgewählt habe,
    bei meinem Anbieter DF.eu ist

    5-55LEGACY-STANDARD ( 5.5.30)

    Was kann ich tun um es lauffähig zu bekommen?

    r3LaXeD

    • Fördermitglied
    • Beiträge: 86
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #10 am: 06. August 2019, 20:43:42
    HM...

    Jetzt habe ich die ( / ) entfernt, nun wieder weißer Bildschirm....

    awids

    • Experte
    • Beiträge: 3.789
    • Geschlecht:
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #11 am: 06. August 2019, 20:51:26
    Ändere mal in den configure.php-Dateien diesen Wert:

    Code: PHP  [Auswählen]
    define('DB_MYSQL_TYPE', 'mysqli');

    zu diesen Wert:

    Code: PHP  [Auswählen]
    define('DB_MYSQL_TYPE', 'mysql');

    Oder du stellst auf PHP 5.6 um und spielst außerdem den PHP5.6-Fix ein.

    r3LaXeD

    • Fördermitglied
    • Beiträge: 86
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #12 am: 06. August 2019, 20:57:28
    Hallo.

    Habe jetzt php auf 5.6.3.4 eingestellt.

    Wie muss ich dieses fix einspielen?
    finde in der Datei leider keine infos

    fishnet

    • Fördermitglied
    • Beiträge: 4.853
    • Geschlecht:
    Re: Nach Umzug: Es ist ein Fehler aufgetreten!
    Antwort #13 am: 07. August 2019, 01:10:11
    In der Theorie,indem du die Datei auf dem Server umbenennst in zB datei.php_alt und dann die Datei aus dem Fix hochlädst.
    In der Praxis wäre es ratsamer, das du uns deine Shopversion nennst und deine Originaldatei hier anhängst
    Marktplatz - Eine große Auswahl an neuen und hilfreichen Modulen sowie modernen Templates für die modified eCommerce Shopsoftware
    4 Antworten
    3260 Aufrufe
    06. September 2012, 23:19:47 von b-ultimate
    3 Antworten
    2962 Aufrufe
    11. Mai 2010, 20:00:48 von Kwonga
    3 Antworten
    1321 Aufrufe
    06. Oktober 2021, 20:53:26 von Tomcraft