patrickmccoy Posted February 3, 2021 Share Posted February 3, 2021 Hey everyone, new Prestashop user here. We've been trying to make changes in the back office and notice that recently all of the dropdown menus have become disconfigured. It looks like a coding issue of some kind for the back office, none of these files were ever changed so we're not sure why this is happening. We've tried refreshing, different browsers, going Incognito, nothing seems to work. We've cleared the cache, that doesn't seem to work either. Any thoughts would be greatly appreciated!! Link to comment Share on other sites More sharing options...
patrickmccoy Posted February 3, 2021 Author Share Posted February 3, 2021 I should also note than whenever we try and click on Clear Cache, or any of these items, such as the Save button, we get a 500 error. Link to comment Share on other sites More sharing options...
NMod Posted February 4, 2021 Share Posted February 4, 2021 Hi @patrickmccoy, I saw that dropdowns problem on a site with PS 1.7.6: it seems that the Twig version used in PS 1.7.6 does not support PHP 7.4. Try to view the dropdowns code: in my scenario I saw that the there were not a space between the select HTML tag and its ID attribute. Something like <selectid="selectname" .... As a temporary solution, if this is your case, you could update the file /src/PrestaShopBundle/Resources/views/Admin/TwigTemplateForm/form_div_layout.html.twig changing this portion of code {%- block widget_attributes -%} id="{{ id }}" name="{{ full_name }}" {%- if read_only|default(false) and attr.readonly is not defined %} readonly="readonly"{% endif -%} {%- if disabled %} disabled="disabled"{% endif -%} {%- if required %} required="required"{% endif -%} into this {%- block widget_attributes -%} {{- " " -}}id="{{ id }}" name="{{ full_name }}" {%- if read_only|default(false) and attr.readonly is not defined %} readonly="readonly"{% endif -%} {%- if disabled %} disabled="disabled"{% endif -%} {%- if required %} required="required"{% endif -%} Hope this helps you! Nicola Link to comment Share on other sites More sharing options...
JBW Posted February 8, 2021 Share Posted February 8, 2021 Prestashop 1.7.6 is compatible to max PHP 7.2. - you should downgrade your PHP version to avoid this and further issues. Prestashop 1.7.7. is compatible to max. PHP 7.3 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