Jump to content

Link and image on click not changing using product attributes


Recommended Posts

Hi. I've updated prestahop from 1.6 to 1.7.6.9 through 1clickupgrade (php 7.2). Almost everything seems to be perfect with a bit of work. Using the classic theme. So, didn't notice this from the start, but when I click the one of the product attributes the link in the browser doesn't change, the image changes, but when clicking to enlarge it still shows the default attribute images. See here: http://www.shopbebe.eu/scaune-auto-9-18-kg/556-3061-scaun-auto-maxi-cosi-tobi-9-18-kg-husa-cadou.html#/445-alege_culoarea-concrete_grey. I'm going crazy with this, obviously...

 

Doens't work with friendly url's turned off, with the original product.tpl page, with changing this {category:/}{id}{-:id_product_attribute}-{rewrite}.html to this with this {category:/}{id}{-:id_product_attribute}-{rewrite}{-:ean13}.html, not with products without ean and sku for each attribute

In my Chrome console I see a list of errors:

 

Uncaught ReferenceError: oosHookJsCodeFunctions is not defined
    at 556-3061-scaun-auto-maxi-cosi-tobi-9-18-kg-husa-cadou.html:2982
blocksearch.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
sendtoafriend.js:1 Failed to load resource: the server responded with a status of 404 (Not Found)
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
googleads.g.doubleclick.net/pagead/id:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
VM3758:2 Uncaught ReferenceError: oosHookJsCodeFunctions is not defined
    at eval (eval at globalEval (core.js:28), <anonymous>:2:1)
    at eval (<anonymous>)
    at Function.globalEval (core.js:28)
    at we (core.js:39)
    at m.fn.init.replaceWith (core.js:39)
    at Object.success (core.js:233)
    at u (core.js:39)
    at Object.fireWith [as resolveWith] (core.js:39)
    at S (core.js:39)
    at XMLHttpRequest.<anonymous> (core.js:39)
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
generate_204:1 Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load SourceMap: Could not load content for http://www.shopbebe.eu/themes/core.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE

Any ideas on where to start to solve this? Thank you! 

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

Seems to be solved by deleting all the modules I don't use with this version of ps 1.7.6.9, but if debug is on I have a ton of errors in admin and can't acces parts of it - sent a ticket to my host see if they have a clue, suspecting it's server related. Turned define('_PS_MODE_DEV_', false); and on the surface all seems ok both front end and admin (except for the errors in front end in Chrome console: Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
DevTools failed to load SourceMap: Could not load content for http://www.shopbebe.eu/themes/core.js.map: HTTP error: status code 404, net::ERR_HTTP_RESPONSE_CODE_FAILURE)

 

 

 

(1/1) ContextErrorException

Notice: SessionHandler::gc(): ps_files_cleanup_dir: opendir(/var/cpanel/php/sessions/ea-php72) failed: Permission denied (13)

in StrictSessionHandler.php line 101

at StrictSessionHandler->gc(1440)in SessionHandlerProxy.php line 83

at SessionHandlerProxy->gc(1440)

at session_start()in NativeSessionStorage.php line 145

at NativeSessionStorage->start()in NativeSessionStorage.php line 295

at NativeSessionStorage->getBag('attributes')in Session.php line 258

at Session->getBag('attributes')in Session.php line 280

at Session->getAttributeBag()in Session.php line 73

at Session->get('_security_main')in ContextListener.php line 89

at ContextListener->handle(object(GetResponseEvent))in WrappedListener.php line 46

at WrappedListener->handle(object(GetResponseEvent))in TraceableFirewallListener.php line 35

at TraceableFirewallListener->handleRequest(object(GetResponseEvent), object(Generator))in Firewall.php line 84

at Firewall->onKernelRequest(object(GetResponseEvent))in FirewallListener.php line 48

at FirewallListener->onKernelRequest(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))in WrappedListener.php line 115

at WrappedListener->__invoke(object(GetResponseEvent), 'kernel.request', object(TraceableEventDispatcher))in EventDispatcher.php line 212

at EventDispatcher->doDispatch(array(object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener), object(WrappedListener)), 'kernel.request', object(GetResponseEvent))in EventDispatcher.php line 44

at EventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in TraceableEventDispatcher.php line 143

at TraceableEventDispatcher->dispatch('kernel.request', object(GetResponseEvent))in HttpKernel.php line 127

at HttpKernel->handleRaw(object(Request), 1)in HttpKernel.php line 68

at HttpKernel->handle(object(Request), 1, false)in Kernel.php line 200

at Kernel->handle(object(Request), 1, false)in index.php line 86

Link to comment
Share on other sites

So now the only visible  problem remaining is that when I select a colour in the product page, though the correct link and image are displayed, you can't see al the images when popping them up, the arrow doesn't work. I guess it's the same issue somehow... Still a problem for cutomers.

Link to comment
Share on other sites

Nothing seems to actually work. ps-mainmenu deactivates by itself, when activating the module in backend the site crashes with a bunch of errors: 

 

Fatal error: Uncaught Error: Call to a member function getAttributeNS() on null in /home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php:579 Stack trace: #0 /home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(83): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->validateSchema(Object(DOMDocument), false) #1 /home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Component/Config/Util/XmlUtils.php(131): Symfony\Component\Config\Util\XmlUtils::parse('<?xml version="...', Array) #2 /home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(384): Symfony\Component\Config\Util\XmlUtils::loadFile('/home/shopbebe/...', Array) #3 /home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php(44): Symfony\Component\DependencyInjection\Loader\XmlFileLoader->parseFileToDOM('/home/shopbebe/...') #4 /h in /home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php on line 579

 

And with mode_dev true in backend shows:

 

(3/3) InvalidArgumentException
Unable to parse file "/home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml": The XML file "/home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml" is not valid.

in XmlFileLoader.php line 386
at XmlFileLoader->parseFileToDOM('/home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml')
in XmlFileLoader.php line 44
at XmlFileLoader->load('web.xml')
in FrameworkExtension.php line 118
at FrameworkExtension->load(array(array('assets' => array('version' => '1.7.6.9'), 'secret' => 'GEqboKvbs/1bKcADybbGgfY8KYTfYLcX2QJmBdhqm6j9rvICPaaJyVWE', 'translator' => array('fallbacks' => array('default')), 'router' => array('resource' => '/home/shopbebe/public_html/app/config/routing.yml', 'strict_requirements' => null), 'form' => null, 'csrf_protection' => null, 'validation' => array('enable_annotations' => true), 'serializer' => array('enable_annotations' => true), 'templating' => array('engines' => array('twig')), 'default_locale' => 'en-US', 'trusted_hosts' => null, 'session' => array('handler_id' => null), 'fragments' => null, 'http_method_override' => true), array('router' => array('resource' => '/home/shopbebe/public_html/app/config/routing_dev.yml', 'strict_requirements' => true), 'profiler' => array('only_exceptions' => false))), object(MergeExtensionConfigurationContainerBuilder))
in MergeExtensionConfigurationPass.php line 71
at MergeExtensionConfigurationPass->process(object(ContainerBuilder))
in MergeExtensionConfigurationPass.php line 39
at MergeExtensionConfigurationPass->process(object(ContainerBuilder))
in Compiler.php line 141
at Compiler->compile(object(ContainerBuilder))
in ContainerBuilder.php line 790
at ContainerBuilder->compile()
in Kernel.php line 637
at Kernel->initializeContainer()
in Kernel.php line 135
at Kernel->boot()
in Kernel.php line 195
at Kernel->handle(object(Request), 1, false)
in index.php line 86
(2/3) XmlParsingException
The XML file "/home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml" is not valid.

in XmlUtils.php line 133
at XmlUtils::loadFile('/home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml', array(object(XmlFileLoader), 'validateSchema'))
in XmlFileLoader.php line 384
at XmlFileLoader->parseFileToDOM('/home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml')
in XmlFileLoader.php line 44
at XmlFileLoader->load('web.xml')
in FrameworkExtension.php line 118
at FrameworkExtension->load(array(array('assets' => array('version' => '1.7.6.9'), 'secret' => 'GEqboKvbs/1bKcADybbGgfY8KYTfYLcX2QJmBdhqm6j9rvICPaaJyVWE', 'translator' => array('fallbacks' => array('default')), 'router' => array('resource' => '/home/shopbebe/public_html/app/config/routing.yml', 'strict_requirements' => null), 'form' => null, 'csrf_protection' => null, 'validation' => array('enable_annotations' => true), 'serializer' => array('enable_annotations' => true), 'templating' => array('engines' => array('twig')), 'default_locale' => 'en-US', 'trusted_hosts' => null, 'session' => array('handler_id' => null), 'fragments' => null, 'http_method_override' => true), array('router' => array('resource' => '/home/shopbebe/public_html/app/config/routing_dev.yml', 'strict_requirements' => true), 'profiler' => array('only_exceptions' => false))), object(MergeExtensionConfigurationContainerBuilder))
in MergeExtensionConfigurationPass.php line 71
at MergeExtensionConfigurationPass->process(object(ContainerBuilder))
in MergeExtensionConfigurationPass.php line 39
at MergeExtensionConfigurationPass->process(object(ContainerBuilder))
in Compiler.php line 141
at Compiler->compile(object(ContainerBuilder))
in ContainerBuilder.php line 790
at ContainerBuilder->compile()
in Kernel.php line 637
at Kernel->initializeContainer()
in Kernel.php line 135
at Kernel->boot()
in Kernel.php line 195
at Kernel->handle(object(Request), 1, false)
in index.php line 86
(1/3) ContextErrorException
Notice: Undefined property: DOMDocument::$documentElement

in XmlFileLoader.php line 579
at XmlFileLoader->validateSchema(object(DOMDocument), false)
in XmlUtils.php line 83
at XmlUtils::parse('<?xml version="1.0" ?><container xmlns="http://symfony.com/schema/dic/services" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd"> <services> <defaults public="false" /> <service id="controller_name_converter" class="Symfony\Bundle\FrameworkBundle\Controller\ControllerNameParser"> <tag name="monolog.logger" channel="request" /> <argument type="service" id="kernel" /> </service> <service id="controller_resolver" class="Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver"> <tag name="monolog.logger" channel="request" /> <argument type="service" id="service_container" /> <argument type="service" id="controller_name_converter" /> <argument type="service" id="logger" on-invalid="ignore" /> </service> <service id="argument_metadata_factory" class="Symfony\Component\HttpKernel\ControllerMetadata\ArgumentMetadataFactory" /> <service id="argument_resolver" class="Symfony\Component\HttpKernel\Controller\ArgumentResolver"> <argument type="service" id="argument_metadata_factory" /> <argument /> <!-- argument value resolvers --> </service> <service id="argument_resolver.request_attribute" class="Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestAttributeValueResolver"> <tag name="controller.argument_value_resolver" priority="100" /> </service> <service id="argument_resolver.request" class="Symfony\Component\HttpKernel\Controller\ArgumentResolver\RequestValueResolver"> <tag name="controller.argument_value_resolver" priority="50" /> </service> <service id="argument_resolver.session" class="Symfony\Component\HttpKernel\Controller\ArgumentResolver\SessionValueResolver"> <tag name="controller.argument_value_resolver" priority="50" /> </service> <service id="argument_resolver.service" class="Symfony\Component\HttpKernel\Controller\ArgumentResolver\ServiceValueResolver"> <tag name="controller.argument_value_resolver" priority="-50" /> <argument /> </service> <service id="argument_resolver.default" class="Symfony\Component\HttpKernel\Controller\ArgumentResolver\DefaultValueResolver"> <tag name="controller.argument_value_resolver" priority="-100" /> </service> <service id="argument_resolver.variadic" class="Symfony\Component\HttpKernel\Controller\ArgumentResolver\VariadicValueResolver"> <tag name="controller.argument_value_resolver" priority="-150" /> </service> <service id="response_listener" class="Symfony\Component\HttpKernel\EventListener\ResponseListener"> <tag name="kernel.event_subscriber" /> <argument>%kernel.charset%</argument> </service> <service id="streamed_response_listener" class="Symfony\Component\HttpKernel\EventListener\StreamedResponseListener"> <tag name="kernel.event_subscriber" /> </service> <service id="locale_listener" class="Symfony\Component\HttpKernel\EventListener\LocaleListener"> <tag name="kernel.event_subscriber" /> <argument type="service" id="request_stack" /> <argument>%kernel.default_locale%</argument> <argument type="service" id="router" on-invalid="ignore" /> </service> <service id="validate_request_listener" class="Symfony\Component\HttpKernel\EventListener\ValidateRequestListener"> <tag name="kernel.event_subscriber" /> </service> <service id="resolve_controller_name_subscriber" class="Symfony\Bundle\FrameworkBundle\EventListener\ResolveControllerNameSubscriber"> <argument type="service" id="controller_name_converter" /> <tag name="kernel.event_subscriber" /> </service> </services></container>', array(object(XmlFileLoader), 'validateSchema'))
in XmlUtils.php line 131
at XmlUtils::loadFile('/home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml', array(object(XmlFileLoader), 'validateSchema'))
in XmlFileLoader.php line 384
at XmlFileLoader->parseFileToDOM('/home/shopbebe/public_html/vendor/symfony/symfony/src/Symfony/Bundle/FrameworkBundle/Resources/config/web.xml')
in XmlFileLoader.php line 44
at XmlFileLoader->load('web.xml')
in FrameworkExtension.php line 118
at FrameworkExtension->load(array(array('assets' => array('version' => '1.7.6.9'), 'secret' => 'GEqboKvbs/1bKcADybbGgfY8KYTfYLcX2QJmBdhqm6j9rvICPaaJyVWE', 'translator' => array('fallbacks' => array('default')), 'router' => array('resource' => '/home/shopbebe/public_html/app/config/routing.yml', 'strict_requirements' => null), 'form' => null, 'csrf_protection' => null, 'validation' => array('enable_annotations' => true), 'serializer' => array('enable_annotations' => true), 'templating' => array('engines' => array('twig')), 'default_locale' => 'en-US', 'trusted_hosts' => null, 'session' => array('handler_id' => null), 'fragments' => null, 'http_method_override' => true), array('router' => array('resource' => '/home/shopbebe/public_html/app/config/routing_dev.yml', 'strict_requirements' => true), 'profiler' => array('only_exceptions' => false))), object(MergeExtensionConfigurationContainerBuilder))
in MergeExtensionConfigurationPass.php line 71
at MergeExtensionConfigurationPass->process(object(ContainerBuilder))
in MergeExtensionConfigurationPass.php line 39
at MergeExtensionConfigurationPass->process(object(ContainerBuilder))
in Compiler.php line 141
at Compiler->compile(object(ContainerBuilder))
in ContainerBuilder.php line 790
at ContainerBuilder->compile()
in Kernel.php line 637
at Kernel->initializeContainer()
in Kernel.php line 135
at Kernel->boot()
in Kernel.php line 195
at Kernel->handle(object(Request), 1, false)
in index.php line 86

Tried to install a fresh ps in a folder just to test and maybe try to import customers, orders and products from the old one and then make the newer one live. I can't install. Error 500. Tried, as suggested, to install English, US. Nope. Verified folder permissions... nope.

So, is it time to give up on ps?...

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

After almost giving up on ps I decided to give it one more try. Restored a functional backup si took the steps again. This time though I switched to php 7.0 (tried with 7.1, 7.2, 7.3 and 7.4 before). And the main error, the one about XmlFileLoader.php dissapeared. Other showed up, concernin modules that were not compatible, deleted the modules, applied the fix for images pop up scroll and had to install dropdowntopmenu because ps_mainmenu decided not to collaborate. And now everything seems to work ok, no more errors as far as I see, so I guess it is SOLVED. Hopefully.

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...