I’d like a message to only appear on the front page. Using the path option with <front> doesn’t work, and neither does it with content type (it’s an Article). I can’t get the once per session option to work at all. I tried both caching options but no luck. Is there something else I should be doing or could there be a bug lurking?
Comments
Comment #2
wranvaud commented***EDIT*** I'm investigating I think you are right, there is a bug in the module.
Hello, are you using the conditional_message_client module as well on a multi-site environment? That can be tricky to configure. The regular options of and content type on drupal 7 should be working fine, is there anything particular about your installation that can help debug?
Comment #3
grabby commentedThanks for the quick response. I’m not using conditional_message_client module and I’m not on multi-site, I’m just testing here on my localhost. There’s nothing that unusual about my site. I’m using Panels to arrange my pages, but that’s about it. I didn’t have Syslog turned on, so now I’ll turn it on and see if anything is getting recorded there.
Comment #4
wranvaud commentedComment #6
wranvaud commentedThank you for reporting this issue, I wonder how this happened. Please let me know if you still find issues. Fixed and commited on 7.x-1.0-alpha15
https://www.drupal.org/project/conditional_message/releases/7.x-1.0-alpha15
Comment #7
grabby commentedI can’t say all that much has changed. If I set it to always appear it always appears, but if I set it to path or content type it also appears everywhere including admin pages. This is on Firefox. On Internet Explorer it never appears no matter what I do, at least with the privacy settings I have, but those settings have no negative impact on any other site functions. Of course I flushed cache constantly. After I first turned the module on and went to its config page I got
Warning: Invalid argument supplied for foreach() in form_type_checkboxes_value() (line 2390 mysite\includes\form.inc).
repeated three times. Not sure how I can help from this point!
Comment #9
wranvaud commentedReopening
I've installed the module on simplytest.me and I did get the same error as you report. I'll be investigating.
Apart from that, the functionality of the module seems to be working well, I've tested it all manually (except multisite) on firefox and chrome (I don't have IE to test on). You might also want to make sure to clear the browser cache (Ctrl+Shift+R/Ctrl+F5).
Do you have any additional information about your setup, the circumstances or something that can help find the issue?
Comment #10
wranvaud commentedI've fixed the error messages "Warning: Invalid argument supplied for foreach() in form_type_checkboxes_value()"
Since the php warnings are not a major issue I'll put it on dev but won't be releasing a new version just yet.
When testing the module try the conditions individually before testing more than one condition at a time. When combining conditions it gets confusing and sometimes not obvious why the message appears or not.
I'm putting this as fixed but if it's still not working for you let me know any information that you find relevant.
Comment #12
grabby commentedI think this module has caching problems, but I’m not enough of a developer – I’m not a developer at all – to say what they are. Configuring the module to show a message based on path, content type, etc. (only one at a time) has no effect despite clearing cache countless times, switching browsers, clearing browser cache, etc. Then changing settings to always show at first has no effect, then after lots of cache clearing and settings saving all of a sudden it shows. This is with cache purging options set to “Drupal cache” because without that set absolutely nothing happens. Of course once set for, say, top bar, changing it to bottom bar has no effect for countless cache purges and browser cache purges – I gave up after a while. Hope that helps!
Comment #13
wranvaud commentedUnfortunately I would need to take a look at your issue to debug. Are you on your local machine or using docker/vagrant/MAMP?
If I were to debug I would start checking the configurations at
yourWebSite.com/conditional_message_data_outputand check if the info reflects your configuration. You can also check if the above page is being cached.This is how the module works:
-configurations are exposed at /conditional_message_data_output and should not be cached
-every page of the site contains a bit of javascript that checks at the url above for the configurations
-depending on configurations the message is inserted into the page or not (so the page can be cached because the message is inserted)
Do you have many other modules installed? Any module that has to do with caching? or something that interferes with javascript/jquery?
Comment #14
wranvaud commentedThis has not received attention for the last two years, I'll close this issue. Feel free to reopen with more information.