ajax770 Posted September 3, 2020 Share Posted September 3, 2020 (edited) 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 Edited September 3, 2020 by ajax770 (see edit history) Link to comment Share on other sites More sharing options...
ajax770 Posted September 8, 2020 Author Share Posted September 8, 2020 I've found what was the problem. PHP version 7.4. It seems that prestashop does not support php version 7.4 Link to comment Share on other sites More sharing options...
Benjamin Kabiri Posted September 11, 2020 Share Posted September 11, 2020 Hi ajax770, I have the same problem with the product page, 1.7.6.7 version. May you please explain to me how did you solve it? Thank you. Benjamin Link to comment Share on other sites More sharing options...
Janett Posted September 12, 2020 Share Posted September 12, 2020 4 Link to comment Share on other sites More sharing options...
ajax770 Posted September 15, 2020 Author Share Posted September 15, 2020 (edited) 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 September 15, 2020 by ajax770 (see edit history) Link to comment Share on other sites More sharing options...
middlesboro Posted June 19 Share Posted June 19 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now