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: Wieder das Captcha

    Igotcha

    • Mitglied
    • Beiträge: 195
    Wieder das Captcha
    am: 26. Februar 2011, 16:03:31
    Hallo zusammen,

    es gibt ja viele Threads hier zu dem Kontaktformular-Captcha. Ich habe genau das selbe Problem, dass dieses NIE erkannt wird.

    ABER: Ich habe zwei modified eCommerce Shopsoftware Shops und in dem anderen gehts immer :D

    Version: modified eCommerce Shopsoftware v1.05 dated: 2010-07-18

    Hier geht's IMMER: http://bbqtop.de/Kontakt:_:7.html

    Hier geht's NIE: http://kombas.de/shop/Kontakt:_:7.html

    Der Gag ist auch, die liegen beide beim selber Hoster.

    Noch eine Idee?

    Grüße



    Linkback: https://www.modified-shop.org/forum/index.php?topic=11247.0
    rechtstexte für onlineshop

    jannemann

    • modified Team
    • Beiträge: 6.275
    • Geschlecht:
    Wieder das Captcha
    Antwort #1 am: 26. Februar 2011, 21:33:33
    Hi,

    den einzigen Unterschied den ich sehen kann ist, dass der zweite Shop in einem Unterverzeichnis liegt.
    Hast du mal die .htaccess verglichen?

    Igotcha

    • Mitglied
    • Beiträge: 195
    Wieder das Captcha
    Antwort #2 am: 26. Februar 2011, 21:48:11
    Naja, wie Du schon sagst, das ist der einzige Unterschied:

    Hier mal die .htaccess von dem, wo es geht:

    Code: PHP  [Auswählen]
    AddType application/x-httpd-php53 .php

    # $Id: .htaccess,v 1.5 2005/05/19 17:09:19 Administrator Exp $
    #
    # This is used with Apache WebServers
    #
    # For this to work, you must include the parameter 'Options' to
    # the AllowOverride configuration
    #
    # Example:
    #
    #<Directory "/usr/local/apache/htdocs">
    #   AllowOverride Options
    #</Directory>
    #
    # 'All' with also work. (This configuration is in the
    # apache/conf/httpd.conf file)
    # The following makes adjustments to the SSL protocol for Internet
    # Explorer browsers
    <IfModule mod_setenvif.c>
      <IfDefine SSL>
        SetEnvIf User-Agent ".*MSIE.*" \
                 nokeepalive ssl-unclean-shutdown \
                 downgrade-1.0 force-response-1.0
      </IfDefine>
    </IfModule>

    # Fix certain PHP values
    # (commented out by default to prevent errors occuring on certain
    # servers)
    #<IfModule mod_php4.c>
    #  php_value session.use_trans_sid 0
    #  php_value register_globals 1
    #</IfModule>

    #-- set expire header for image, pdf, js and css files for 30 days
    #<FilesMatch "\.(ico|pdf|jpg|jpeg|png|gif|js|css)$">
    #  Header set Cache-Control "max-age=2592000, public"
    #</FilesMatch>

    #-- Turn off ETags in HTTP-header
    #FileETag None

    #-- Call time pass reference error ?!
    #php_flag  allow_call_time_pass_reference On

    #-- XTC Session only on first visit
    #php_flag session.use_trans_sid 0

    #-----------------------------------------
    #- SEO Hartmut König
    #-----------------------------------------
    #-- ! Comment this line, if you get an ERROR 500 !
    #Options +FollowSymlinks

    # http://httpd.apache.org/docs/misc/rewriteguide.html
    RewriteEngine on

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

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

    ##-- Kategorien
    RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
    RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ /index.php?cPath=$2&page=$3 [qsappend,L]
    RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
    RewriteRule (.*):::([_0-9]+)\.html$ /index.php?cPath=$2 [qsappend,L]

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

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

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

    ##-- Fehlerseiten auf die Sitemap lotsen
    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

    ##-- BOF - Tomcraft - 2009-09-09 - Use canonical URLs
    # (don't use if your shop runs on a subdomain!)
    #
    #RewriteCond %{HTTP_HOST} !^www\. [NC]
    #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [L,R=301]
    #
    ##-- EOF - Tomcraft - 2009-09-09 - Use canonical URLs
     
    Danach kommen noch ein paar 301er

    Und hier die vom Shop im Unterverzeichnis, wo es nicht geht:

    Code: PHP  [Auswählen]
    AddType application/x-httpd-php53 .php

    # $Id: .htaccess,v 1.5 2005/05/19 17:09:19 Administrator Exp $
    #
    # If your shop runs in a subfolder, for example "www.domain.de/shop/"
    # you can use this .htaccess as a template.
    # Simply search and replace "/shop/" with the folder-name of your
    # custom installation-folder like "/shop/" or something.
    #
    # Attention: Leave the slashes "/" as is!
    #
    # This is used with Apache WebServers
    #
    # For this to work, you must include the parameter 'Options' to
    # the AllowOverride configuration
    #
    # Example:
    #
    #<Directory "/usr/local/apache/htdocs">
    #   AllowOverride Options
    #</Directory>
    #
    # 'All' with also work. (This configuration is in the
    # apache/conf/httpd.conf file)
    # The following makes adjustments to the SSL protocol for Internet
    # Explorer browsers
    <IfModule mod_setenvif.c>
      <IfDefine SSL>
        SetEnvIf User-Agent ".*MSIE.*" \
                 nokeepalive ssl-unclean-shutdown \
                 downgrade-1.0 force-response-1.0
      </IfDefine>
    </IfModule>

    # Fix certain PHP values
    # (commented out by default to prevent errors occuring on certain
    # servers)
    #<IfModule mod_php4.c>
    #  php_value session.use_trans_sid 0
    #  php_value register_globals 1
    #</IfModule>

    #-- set expire header for image, pdf, js and css files for 30 days
    #<FilesMatch "\.(ico|pdf|jpg|jpeg|png|gif|js|css)$">
    #  Header set Cache-Control "max-age=2592000, public"
    #</FilesMatch>

    #-- Turn off ETags in HTTP-header
    #FileETag None

    #-- Call time pass reference error ?!
    #php_flag  allow_call_time_pass_reference On

    #-- XTC Session only on first visit
    #php_flag session.use_trans_sid 0

    #-----------------------------------------
    #- SEO Hartmut König
    #-----------------------------------------
    #-- ! Comment this line, if you get an ERROR 500 !
    #Options +FollowSymlinks

    # http://httpd.apache.org/docs/misc/rewriteguide.html
    RewriteEngine on

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

    ##-- Kategorien
    RewriteCond %{REQUEST_URI} (.*):::([_0-9]+):([_0-9]+)\.html$
    RewriteRule (.*):::([_0-9]+):([_0-9]+)\.html$ /shop/index.php?cPath=$2&page=$3 [qsappend,L]
    RewriteCond %{REQUEST_URI} (.*):::([_0-9]+)\.html$
    RewriteRule (.*):::([_0-9]+)\.html$ /shop/index.php?cPath=$2 [qsappend,L]

    ##-- Produkte
    RewriteRule (.*)::(.+)\.html$ /shop/product_info.php?products_id=$2 [qsappend,L]

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

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

    ##-- Fehlerseiten auf die Sitemap lotsen
    ErrorDocument 400 /shop/sitemap.html?error=400
    ErrorDocument 401 /shop/sitemap.html?error=401
    ErrorDocument 402 /shop/sitemap.html?error=402
    ErrorDocument 403 /shop/sitemap.html?error=403
    ErrorDocument 404 /shop/sitemap.html?error=404
    ErrorDocument 500 /shop/sitemap.html?error=500

    ##-- BOF - Tomcraft - 2009-09-09 - Use canonical URLs
    # (don't use if your shop runs on a subdomain!)
    #
    #RewriteCond %{HTTP_HOST} !^www\. [NC]
    #RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/shop/$1 [L,R=301]
    #
    ##-- EOF - Tomcraft - 2009-09-09 - Use canonical URLs
     
    Und hier die .htaccess aus dem Überverzeichnis (root)

    Code: PHP  [Auswählen]
    AddType application/x-httpd-php5 .php

    RewriteEngine On
    RewriteBase /
    RewriteCond %{HTTP_HOST} ^www.kombas.de$ [NC]
    RewriteRule ^(.*)$ http://kombas.de/$1 [R=301,L]
    RewriteRule ^(.*).html$ /index.php?view=$1 [L]
     

    Tomcraft

    • modified Team
    • Gravatar
    • Beiträge: 46.369
    • Geschlecht:
    Wieder das Captcha
    Antwort #3 am: 27. Februar 2011, 13:47:59
    Schau mal hier: Kontaktformular mit Captcha funktioniert nicht

    Ansonsten waren immer fehlende Grafiken verantwortlich, wenn das Captcha nicht funktioniert hatte.

    Grüße

    Torsten

    Igotcha

    • Mitglied
    • Beiträge: 195
    Wieder das Captcha
    Antwort #4 am: 27. Februar 2011, 14:07:28
    Hatte ich schon durch den Post. In 2 Dateien war zwar ein Leerzeichen am Ende, aber das Löschen hat auch nichts gebracht.

    Igotcha

    • Mitglied
    • Beiträge: 195
    Wieder das Captcha
    Antwort #5 am: 03. April 2011, 19:03:22
    So, da bin ich wieder.

    Da ich keine Lösung zu meinem Problem mit dem Standard-Captcha in EINEM meiner Shops gefunden habe, habe ich dies jetzt entfernt und reCAPTCHA eingebaut.

    reCAPTCHA gibt es hier: reCAPTCHA: Stop Spam, Read Books

    Wer ähnliche Probleme hat, hier ist die entsprechende Anpassung:

    In "/templates/xt5/modules/contact_us.html":

    Code: PHP  [Auswählen]
     <tr>
                      <td valign="top">{#text_message#}*</td>
                      <td width="59%">{$INPUT_TEXT}</td>
                    </tr>
                            <tr>
                      <td valign="top">&nbsp</td>
                      <td width="59%"><script type="text/javascript"
         src="http://www.google.com/recaptcha/api/challenge?k=public_key einfügen">
      </script>
      <noscript>
         <iframe src="http://www.google.com/recaptcha/api/noscript?k=public_key einfügen"
             height="300" width="500" frameborder="0"></iframe><br>
         <textarea name="recaptcha_challenge_field" rows="3" cols="40">
         </textarea>
         <input type="hidden" name="recaptcha_response_field"
             value="manual_challenge">
      </noscript></td>
                    </tr>
                    <tr>
                      <td valign="top"> </td>
                      <td width="59%">{$BUTTON_SUBMIT}</td>
                    </tr>
     
    In "/includes/contact_us.php":

    Einmal oben einfügen (habe die recaptchalib.php bei mir nach "includes" gepackt):

    Code: PHP  [Auswählen]
    require_once ('includes/recaptchalib.php');
     
    Und dann an der Stelle, wo das bisherige Captcha überprüft wurde:

    Code: PHP  [Auswählen]
    // Auskommentiert, da das Standard_Captcha nicht ging
                    //
                    //if ((strtoupper($_POST['vvcode']) != $_SESSION['vvcode']) || $_SESSION['vvcode']=='') $err_msg .= ERROR_VVCODE;

                    // reCaptcha eingebaut statt Standardcaptcha

                     $privatekey = "private_key einfügen";
                            $resp = recaptcha_check_answer ($privatekey,
                                    $_SERVER["REMOTE_ADDR"],
                                    $_POST["recaptcha_challenge_field"],
                                    $_POST["recaptcha_response_field"]);

                      if (!$resp->is_valid)
                            $err_msg .= ERROR_VVCODE;
     
    Das Ergebnis kann man hier sehen: http://kombas.de/shop/Kontakt:_:7.html

    10 Antworten
    5613 Aufrufe
    06. Juli 2009, 16:20:57 von mantis
    8 Antworten
    4931 Aufrufe
    16. November 2017, 09:21:30 von fishnet