thetuningspoon Posted July 31, 2015 Share Posted July 31, 2015 I am experiencing an issue with the System Notifications module in 2.6.3. I am using a hook before saveReady() which does a call to PayPal and receives a response. I am adding some notifications based on the response I get from PayPal in order to let the user know whether it was a success or a failure. For some reason it seems that the extra delay in processing that this introduces results in the notifications not displaying when the page finally reloads. I don't see either my custom notifications or the built in ones confirming the page save. I've narrowed this issue down to the System Notifications module, since uninstalling it results in the notifications being visible. I'm wondering if anyone has thoughts on why this would be happening. Thanks! Edit: Just to clarify, this is when using runtime Notice objects. Link to comment Share on other sites More sharing options...
LostKobrakai Posted July 31, 2015 Share Posted July 31, 2015 I had similar issues, but was never able to track down why this was happening. Link to comment Share on other sites More sharing options...
thetuningspoon Posted July 31, 2015 Author Share Posted July 31, 2015 To get around this, I'm trying to use the persistent System Notifications. I like the "annoy" flag, but I need a way to make the notifications disappear after they've been shown once. Otherwise the user will get very confused. Link to comment Share on other sites More sharing options...
ryan Posted August 1, 2015 Share Posted August 1, 2015 What is the code you are using to send the notifications? Are we talking about JS code, or PHP code? I'm guessing PHP but just double checking. Would be good to see it in context. Link to comment Share on other sites More sharing options...
LostKobrakai Posted August 1, 2015 Share Posted August 1, 2015 https://github.com/ryancramerdesign/ProcessWire/issues/1166 Some more information I'd posted on Github. The notices just seem to not survive the session redirect, but in a kinda random fashion. Link to comment Share on other sites More sharing options...
thetuningspoon Posted August 1, 2015 Author Share Posted August 1, 2015 Short on time right now, but to answer your question, Ryan, I am just calling $this->message('message') for each message, the old fashioned way. 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