Jump to content

Big Bug? select tag issue


Nob License

Recommended Posts

hi,

There is a big bug in the (new? from 01.02.2020) download version - the html code will be not generated propper:

Almost all drop down choose boxes where generated with an false select tag.
(i think, this depens only on Boxes with an id - boxes without an id seams to be correct)

This is the code snippet from the original installation:
<selectid="entity" name="entity" class="js-entity-select custom-select"><option value="0" selected="selected">Kategorien</option><option value="1">Artikel</option><option value="2">Varianten</option><option value="3">Kunden</option><option value="4">Adressen</option><option value="5">Marken</option><option value="6">Lieferanten</option><option value="7">Alias</option><option value="8">Shop Kontaktdaten</option>
    </selectid="entity">

The tag - selectid -  is wrong (blankspace between select an id failure) and this is the reason for the display issue (you cant select anything)

With the correct tag select id (blankspace after select) - it works (of course, - tested with debugger).

This belongs to all browsers.

A have tried to figur out, how the system generates this speciaql tag (with debugger, cetc.), but i can't find this function.

Help welcome!
THX

  • Like 2
Link to comment
Share on other sites

  • 6 months later...

I had the same problem. downgrading to PHP version 7.2.0 solved almost all problems I had. All design bugs were solved by this single trick. Thanks JBW.

To check your php version 

Win cmd:

>cd c:\xampp\php or cd c:\php\  //depending on where your php is 

> php -v //to see your version

 

I was running prestashop 1.7.6.7 on php 7.4 and it was very unhappy! 

 

presta.JPG

Link to comment
Share on other sites

  • 3 months later...

Hi,

The same for me, so I found a solution to get it work on php7.4, waiting for next release.

I removed the dash in Twig block {%- block widget_attributes -%} and {%- endblock widget_attributes -%}, witch are now {% block widget_attributes %} and {% endblock widget_attributes %} from file "src/PrestaShopBundle/Resources/views/Admin/TwigTemplateForm/form_div_layout.html.twig" and then delete the twig cache "var/cache/prod/twig".

 

Edited by Giamba17 (see edit history)
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...