ive installed this module added a new modal page, cleared the cache both in UI and drush cr and its not doing anything at all. ive tried pages and parameters.
Tested with Drupal 8.6
thanks
| Comment | File | Size | Author |
|---|---|---|---|
| #11 | module-not-work-3009324.png | 80.93 KB | thalles |
Comments
Comment #2
Syntapse commentedComment #3
renatog commentedHello Lauren.
Can you use the version: 8.x-2.1, please?!
https://ftp.drupal.org/files/projects/modal_page-8.x-2.1.zip
This version is stable and works good for Drupal 8.6+
Any question please comment, okay?!
Best,
Comment #4
renatog commented@laurencefass; after your testes tell me if version: 8.x-2.1 works good for you.
Good Work and Good Week.
Thank you very much.
Best,
Comment #5
Syntapse commentedi will retest in a few days. i had to uninstall because it caused some admin styling problems which went after uninstall of the module. hope 2.1 will fix. thanks.
Comment #6
thallesComment #7
Egmund commentedI can attest that ver 8.2.1 does not work w. D8.6.3 - except for one site (out of 3). It must be a conflict with other modules or themes (I guess). No log messages either.
Comment #8
Egmund commentedOn further thoughts: The one site working is an older install, so Drupal has been upgraded several times, whereas the two non-working sites are fresh installs. Maybe (therefore) it is in the settings or htaccess files, which I do not upgrade/update.
Comment #9
Egmund commentedUpdate:
I installed D8.6.3 with an old (march 2016) default settings.php file and module works fine in Bartic.
However installing bootstrap-based themes interfere with the module so that the modal pop-up show wrong text etc and will lock up the site.
In other words: There are conflicts with other modal modules or code/script. The module does not function with the new settings.php file.
Comment #10
Egmund commentedFurther testing.
With bootstrap javascript modal disabled (bootstrap3 theme) module works, but does not look completely correct.
Comment #11
thallesPlease, try the new release and in case of theme bootstrap disable load JS Bootstrap (bootstrap.min.js).
Look:

Comment #12
Egmund commentedSorry, the update crashes my site with:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.body__value' in 'field list': SELECT base.id AS id, base.uuid AS uuid, base.title AS title, base.body__value AS body__value, base.body__format AS body__format, base.type AS type, base.pages AS pages, base.parameters AS parameters, base.ok_label_button AS ok_label_button, base.langcode AS langcode, base.created AS created, base.changed AS changed FROM {modal} base WHERE base.id IN (:db_condition_placeholder_0); Array ( [:db_condition_placeholder_0] => 1 ) i Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage() (linje 388 af /home2/rudbecks/d8b.sensistop.dk/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
I was able to get the earlier ver. to work by overriding CSS & disablind bootstrap modal js.
Comment #13
Egmund commentedI tried new ver in another install w. another theme (quatar) and disabled bootstrap js as per your advice. I get 'unexpected error' when trying to go into modal-page and log gives:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'base.body__value' in 'field list': SELECT base.id AS id, base.uuid AS uuid, base.title AS title, base.body__value AS body__value, base.body__format AS body__format, base.type AS type, base.pages AS pages, base.parameters AS parameters, base.ok_label_button AS ok_label_button, base.langcode AS langcode, base.created AS created, base.changed AS changed FROM {modal} base WHERE base.id IN (:db_condition_placeholder_0); Array ( [:db_condition_placeholder_0] => 1 ) i Drupal\Core\Entity\Sql\SqlContentEntityStorage->getFromStorage() (linje 388 af /home2/rudbecks/d8.sensistop.dk/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).
Comment #14
thallesEgmund, it is necessary to rebuild the entity, but I do not know if it is advisable in your case, which already has modals.
Comment #15
Egmund commentedThank you thalles. I will try that.
Comment #16
Egmund commentedAfter un-installing, clearing cache & installing - errors are gone.
However; the modal popup does not show. It has an element style of 'display: none'. Where do I correct that?
Comment #17
Egmund commentedUpdate: If I uncheck 'do not load bottstrap - - -', then it shows. --Does not make much sense to me.
Comment #18
thallesThis option is for those who for some reason already loads the bootstrap js.
Example: If you use a bootstrap-based theme.
Comment #19
thalles