Jump to content

Classic theme doesn't load some assets. Upgrade from 1.7.5 to 1.7.7.4


mkinternet

Recommended Posts

I upgraded ps from 1.7.5 to 1.7.7.4. Upgrade was done smothly but there was some database errors which were fixed.

Now i noticed that theme doesn't load some modules assets: /ps_searchbar/ps_searchbar.js, /ps_searchbar/ps_shoppingcart.js, jquery-ui (css and js. Take a look here: hesterfishing.com.

What can cause this error?

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

9 minutes ago, mkinternet said:

But this is team permission settings.

What stops you to search from there? Google > permission settings Modules prestashop.  Or any other searchengine you like.

Link to comment
Share on other sites

All  modules are available on team permissions settings. But id don't know why even /js/jquery/ui/jquery-ui.min.js is not loading. There are only

<script type="text/javascript" src="https://hesterfishing.com/themes/core.js" ></script>

<script type="text/javascript" src="https://hesterfishing.com/themes/classic/assets/js/theme.js" ></script>

<script type="text/javascript" src="https://hesterfishing.com/modules/blockreassurance/views/dist/front.js" ></script>

<script type="text/javascript" src="https://hesterfishing.com/modules/ps_emailsubscription/views/js/ps_emailsubscription.js" ></script>

<script type="text/javascript" src="https://hesterfishing.com/themes/classic/assets/js/custom.js" ></script>

Link to comment
Share on other sites

Files are available

https://www.hesterfishing.com/js/jquery/ui/jquery-ui.min.js
https://www.hesterfishing.com/modules/ps_shoppingcart/ps_shoppingcart.js
https://www.hesterfishing.com/modules/ps_searchbar/ps_searchbar.js

I reseted theme settings to default. Shopingcart module has ajax enabled, slider settings are available.

All modules are upgraded to the newest versions.

Link to comment
Share on other sites

  • 3 months later...

I upgraded my shop from PS 1.7.5.1 to 1.7.7.5 and I do have the same issue, using the default theme. Scripts registered by modules do not load at all.

I tried to reinstall my modules, checked that all module hooks are registered correctly and enabled in the correct shops, etc.

On 5/10/2021 at 8:30 AM, mkinternet said:

I thing that modules which are hooked to hookHeader are not loading assets, should the be moved to actionFrontControllerSetMedia?

I noticed that some modules call registerJavascript() from the hookHeader() method defined in the module class. Does using the actionFrontControllerSetMedia hook instead solve the issue? Although I'm already using the latest versions of my modules, and I shouldn't have to change each module's code...

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