Jump to content

Probleme bei der Variantenauswahl


Recommended Posts

Hallo zusammen ein Kollege hat mich gefragt, ob ich ihm helfen kann, kann ich aber leider nicht alleine 😉

Infos zum Shop:

PrestaShop-Version 1.7.7.2

Shop-URL http://www.know-more-stylez.de/

Serverdaten Linux #97-Ubuntu SMP Fri Sep 17 19:19:40 UTC 2021 x86_64

Version der Server-Software Apache

PHP-Version 7.2.34-nmm1

Speichergrenze 512M

max_execution_time: 30

Upload (max. Dateigröße) 200M

 

Wenn man im Shop auf einen Artikel geht und im anschluss die Größe auswählt erscheint ein völlig anderer Artikel, ich denke dass liegt an seinem 1-Click Update und es wurde etwas überschrieben, die DB habe ich geprüft da passen die Ids etc und es gibt keine Doppelläufer.

Zur Info: Es ist nicht bei jedem Artikel, sondern nur bei vereinzelten.

Hier ein Artikel bei dem es so ist:

https://www.know-more-stylez.de/index.php?id_product=117&id_product_attribute=2460&rewrite=identitaet-streetwear-hoodie-dortmund-swoosh&controller=product#/grosse-xs

 

Friendly-Url habe ich bereits ausgeschaltet und auch eine neue htaccess erstellt. Alles ohne Erfolg.

 

Pls need help 😉

 

 

Link to comment
Share on other sites

moin moin, ich habe meinen Browsercache, sowie den Cache des Shops geleert, regelmäßig.

Aber bei mir entsteht das Problem weiterhin, selbst wenn ich die Seite auf einem total unabhängigen PC aufrufe passiert das.

Habe nen Bild und nen Screenrecord mal angehangen:

Prestashop Bug

 

Komme einfach nicht dahinter wodran es liegt.

 

Hier ist die alte .htaccess:

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on


#Domain: www.know-more-stylez.de
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]
</IfModule>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/font-woff .woff
AddType font/woff2 .woff2
<IfModule mod_headers.c>
	<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$">
		Header set Access-Control-Allow-Origin "*"
	</FilesMatch>

    <FilesMatch "\.pdf$">
      Header set Content-Disposition "Attachment"
      Header set X-Content-Type-Options "nosniff"
    </FilesMatch>
</IfModule>

<Files composer.lock>
    # Apache 2.2
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>

    # Apache 2.4
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
</Files>
#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

und hier ist die aktuelle und neu erstellte .htaccess

# ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again
# .htaccess automaticaly generated by PrestaShop e-commerce open-source solution
# http://www.prestashop.com - http://www.prestashop.com/forums

<IfModule mod_rewrite.c>
<IfModule mod_env.c>
SetEnv HTTP_MOD_REWRITE On
</IfModule>

RewriteEngine on


#Domain: www.know-more-stylez.de
RewriteRule . - [E=REWRITEBASE:/]
RewriteRule ^api(?:/(.*))?$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L]

# Images
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L]
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L]
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L]
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L]
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L]
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L]
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L]
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L]
RewriteCond %{HTTP_HOST} ^www.know-more-stylez.de$
RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L]
# AlphaImageLoader for IE and fancybox
RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L]

# Dispatcher
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L]
</IfModule>

AddType application/vnd.ms-fontobject .eot
AddType font/ttf .ttf
AddType font/otf .otf
AddType application/font-woff .woff
AddType font/woff2 .woff2
<IfModule mod_headers.c>
	<FilesMatch "\.(ttf|ttc|otf|eot|woff|woff2|svg)$">
		Header set Access-Control-Allow-Origin "*"
	</FilesMatch>

    <FilesMatch "\.pdf$">
      Header set Content-Disposition "Attachment"
      Header set X-Content-Type-Options "nosniff"
    </FilesMatch>
</IfModule>

<Files composer.lock>
    # Apache 2.2
    <IfModule !mod_authz_core.c>
        Order deny,allow
        Deny from all
    </IfModule>

    # Apache 2.4
    <IfModule mod_authz_core.c>
        Require all denied
    </IfModule>
</Files>
#If rewrite mod isn't enabled
ErrorDocument 404 /index.php?controller=404

# ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again

ERGÄNZEND

hier auch nochmal ein Fehlerreport nachdem ich den Debug Modus eingeschaltet habe,

nachdem ich das Reassurance modul deaktiviert habe, verschwindet zwar dieser Fehlerreport aber funktionieren tut es dadurch trotzdem nicht.

 (1/1) ContextErrorException

Warning: finfo_file(/www/htdocs/w01c4477/know-more-stylez.de/modules/www/htdocs/w01c4477/know-more-stylez.de/blockreassurance/www/htdocs/w01c4477/know-more-stylez.de/views/www/htdocs/w01c4477/know-more-stylez.de/img/www/htdocs/w01c4477/know-more-stylez.de/img_perso/www/htdocs/w01c4477/know-more-stylez.de/Service_Payment.png): failed to open stream: No such file or directory
in ImageManager.php line 382
at ImageManagerCore::getMimeType('/www/htdocs/w01c4477/know-more-stylez.de/modules/www/htdocs/w01c4477/know-more-stylez.de/blockreassurance/www/htdocs/w01c4477/know-more-stylez.de/views/www/htdocs/w01c4477/know-more-stylez.de/img/www/htdocs/w01c4477/know-more-stylez.de/img_perso/www/htdocs/w01c4477/know-more-stylez.de/Service_Payment.png')in ReassuranceActivity.php line 190
at ReassuranceActivity::getAllBlockByStatus(1, 1)in blockreassurance.php line 517
at blockreassurance->renderTemplateInHook('displayBlockProduct.tpl')in blockreassurance.php line 409
at blockreassurance->hookdisplayReassurance(array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 990
at HookCore::coreCallHook(object(blockreassurance), 'hookDisplayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 414
at HookCore::callHookOn(object(blockreassurance), 'displayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1))in Hook.php line 927
at HookCore::exec('displayReassurance', array('smarty' => object(SmartyDevTemplate), 'cookie' => object(Cookie), 'cart' => object(Cart), 'altern' => 1), null)in smarty.config.inc.php line 167
at smartyHook(array('h' => 'displayReassurance'), object(SmartyDevTemplate))in SmartyLazyRegister.php line 83
at SmartyLazyRegister->__call('smartyHook', array(array('h' => 'displayReassurance'), object(SmartyDevTemplate)))in 8668d6316975c3a97b2e8f065afe639857573d9a_2.file.product.tpl.php line 418
at Block_13685406926171c7cc211812_10428192->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_13685406926171c7cc211812_10428192), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_13685406926171c7cc211812_10428192))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_13685406926171c7cc211812_10428192', 'hook_display_reassurance', 0)in 8668d6316975c3a97b2e8f065afe639857573d9a_2.file.product.tpl.php line 866
at Block_10257830756171c7cc205f99_85047988->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_10257830756171c7cc205f99_85047988), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_10257830756171c7cc205f99_85047988), object(Block_19197757466171c7cc228a62_58374094))in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_19197757466171c7cc228a62_58374094))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_19197757466171c7cc228a62_58374094', 'content', 1)in 6222fb56bd4d8d4fa7951fcd389c0f3f0938cde4_2.file.layout-full-width.tpl.php line 101
at Block_423441656171c7cc228414_69881801->callBlock(object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 248
at Smarty_Internal_Runtime_Inheritance->callBlock(object(Block_423441656171c7cc228414_69881801), object(SmartyDevTemplate))in smarty_internal_runtime_inheritance.php line 184
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_423441656171c7cc228414_69881801), object(Block_7392887806171c7cc2303f1_63964931))in smarty_internal_runtime_inheritance.php line 186
at Smarty_Internal_Runtime_Inheritance->process(object(SmartyDevTemplate), object(Block_7392887806171c7cc2303f1_63964931))in smarty_internal_runtime_inheritance.php line 156
at Smarty_Internal_Runtime_Inheritance->instanceBlock(object(SmartyDevTemplate), 'Block_7392887806171c7cc2303f1_63964931', 'content_wrapper')in 471887777b424ba39729250fa2535bc1e3751782_2.file.layout-both-columns.tpl.php line 87
at content_6171c7cc233f08_05580163(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('layouts/layout-both-columns.tpl', null, 'crazelayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-both-columns.tpl')in 6222fb56bd4d8d4fa7951fcd389c0f3f0938cde4_2.file.layout-full-width.tpl.php line 42
at content_6171c7cc229305_30271885(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render()in smarty_internal_template.php line 385
at Smarty_Internal_Template->_subTemplateRender('layouts/layout-full-width.tpl', null, 'crazelayouts/layout-full-width.tpl', 0, 3600, array(), 2, false, null, null)in smarty_internal_runtime_inheritance.php line 125
at Smarty_Internal_Runtime_Inheritance->endChild(object(SmartyDevTemplate), 'layouts/layout-full-width.tpl')in 8668d6316975c3a97b2e8f065afe639857573d9a_2.file.product.tpl.php line 54
at content_6171c7cc222a01_69892259(object(SmartyDevTemplate))in smarty_template_resource_base.php line 123
at Smarty_Template_Resource_Base->getRenderedTemplateCode(object(SmartyDevTemplate))in smarty_template_compiled.php line 114
at Smarty_Template_Compiled->render(object(SmartyDevTemplate))in smarty_internal_template.php line 216
at Smarty_Internal_Template->render(false, 0)in smarty_internal_templatebase.php line 232
at Smarty_Internal_TemplateBase->_execute(object(SmartyDevTemplate), null, 'crazelayouts/layout-full-width.tpl', null, 0)in smarty_internal_templatebase.php line 116
at Smarty_Internal_TemplateBase->fetch('catalog/product.tpl', null, 'crazelayouts/layout-full-width.tpl', null, false, true, false)in SmartyDev.php line 40
at SmartyDev->fetch('catalog/product.tpl', null, 'crazelayouts/layout-full-width.tpl')in FrontController.php line 704
at FrontControllerCore->smartyOutputContent('catalog/product.tpl')in FrontController.php line 686
at FrontControllerCore->display()in Controller.php line 326
at ControllerCore->run()in Dispatcher.php line 518
at DispatcherCore->dispatch()in index.php line 28

vll hat es was mit dem smarty rendern des Templates zu tun?!?

 

 

Edited by SchmidtSon (see edit history)
Link to comment
Share on other sites

7 minutes ago, rictools said:

Ich kann den Fehler nachvollziehen, anstelle des Hoodies erscheint ein T-Shirt. Ich habe allerdings nicht wirklich eine Idee wie das passieren kann. Hast du einmal unter "Leistung" alle Fremdmodule und Overrides deaktiviert?

hmm nein habe ich noch nicht, aber das kuriose ist wenn der Shop im Katalogmodus läuft tritt dieser fehler nicht auf. Was ist denn im Katalogmodus alles deaktiviert ausser der Warenkorb und die Buybutton?!?

auch ist das Problem, dass es sich um ein Third Party Template handelt und somit etliche Module dann abgeschaltet werden.

LG

Edited by SchmidtSon (see edit history)
Link to comment
Share on other sites

Der Verdacht ist halt daß ein Modul da eingreift, das kannst du mit der von mir (zum Testen) empfohlenen Einstellung herausfinden, alternativ kannst du natürlich auch verdächtige Module (die irgendwie mit der Produktseite oder der URL zu tun haben) einzeln deaktivieren, evtl. mußt du dann erst Caches löschen.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...