Kipjr / cookieconsent

Simple cookie consent for Piwigo
https://piwigo.org/ext/extension_view.php?eid=888
3 stars 2 forks source link

Cookie Consent minimize to a single pixel the User collection share display box #7

Open dmfisch opened 3 years ago

dmfisch commented 3 years ago

Hello!

The piwigo plugin "User Collection" and Cookie Consent have an incompatibility issue. And I love them both...

Thank You a lot for the nice work!!!

Happy New Year! David

Piwigo 2.10.2 Système d'exploitation: Linux PHP: 7.3.19 MySQL: 5.6.45-log Bibliothèque graphique: ImageMagick 6.8.9-9

Cookie Consent minimizes to a single pixel the User collection share display box

screeen shot without cookie consent image

with cookie consent activated: image

Kipjr commented 2 years ago

@dmfisch

I've looked into it and I find it rather difficult to troubleshoot. I've found some things. When these lines are disabled the popup works: https://github.com/Kipjr/cookieconsent/blob/074be68676ff0bb5272c17656009d5a2253274ab/include/cookieconsent_page.inc.php#L33 https://github.com/Kipjr/cookieconsent/blob/074be68676ff0bb5272c17656009d5a2253274ab/include/cookieconsent_page.inc.php#L34

I've still got no idea why. However, I've changed the code a bit so when the consent is given, this part of the code is not loaded. Then the popup seems to work. The workaround is commited here: acaed01dd70548b069979e05022ec240a6abe4e1 and will be published with version v12.0.0b