Jump to content

Corrupted product page


Recommended Posts

Hello all,

is there someone who experienced corrupted product page on fresh prestashop (version 1.7.6.7 or 1.7.4.4). 

I mean i can not switch any tab and whole tabs content is visiblne in single (default) tab. In dev console I can see two JavaScript type errors. And of course I can not edit any product (as save button is always loading).

Uncaught TypeError: Cannot read property 'replace' of undefined
    at refreshCombinationsList (form.js?1.7.0:682)
    at Object.refreshCombinationsList (form.js?1.7.0:772)
    at Object.init (form.js?1.7.0:746)
    at HTMLDocument.<anonymous> (form.js?1.7.0:34)
    at u (main.bundle.js:292)
    at c (main.bundle.js:292)

 

Uncaught Error: No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.
    at Function.t.forElement (main.bundle.js:279)
    at HTMLDocument.<anonymous> (main.bundle.js:412)
    at u (main.bundle.js:292)
    at c (main.bundle.js:292)

 

This is happening in fresh presta version 1.7.6.7 (last stable version) and 1.7.4.4 (version I want to use). 

 

Thanks

screen.png

screen.png

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

Benjamin as Jannet has mentioned, if you are using prestashop 1.7.6.7 you need to use PHP version not great than 7.2. Presta is going to support PHP 7.3 since 1.7.7 version and PHP 7.4 since 1.7.8 version. You can find more at this link https://devdocs.prestashop.com/1.7/basics/installation/system-requirements/#php-requirements

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

  • 3 years later...

I was able successfully run prestashop 1.7.6.4 on PHP 7.4. Only problem i had was on product detail, and list page. On the begging it looked like JS problem, but that of course doesn't have any sense. There is a problem with Twig and PHP 7.4. There is just needed upgrade twig at least to version 1.41, or just simple replace file /vendor/twig/twig/src/Lexer.php with version from https://github.com/twigphp/Twig/releases/tag/v1.41.0

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