"Could not find any notifications" notifications issue #1525

Closed
mcifani opened this Issue Jan 21, 2014 · 13 comments

Projects

None yet

3 participants

mcifani commented Jan 21, 2014

Experiencing an issue that no notifications are working. The mail server is setup properly with other emails working(forgot password, etc). The cron job is firing off fine every 1 minute. When I click on the notifications on the web UI, the error "Could not find any notifications" is displaying.

Contributor

maybe there are no notifications for you?

mcifani commented Jan 21, 2014

No, there definitely should be notifications. I've idled a worker for testing and nothing.

Contributor

take a look at notifications.txt in folder cronjobs/logs

mcifani commented Jan 21, 2014

I just realized my cron jobs where being fired with the -d FTC flag, could that prevent an issue?

mcifani commented Jan 21, 2014

Ok, a few days ago the logs saw something

2014-01-18 18:19:01 - INFO --> found 2 IDLE workers

Contributor

no, -d sets the pidfile. important when running more than one pool on the same machine

is your cronjob running?

mcifani commented Jan 22, 2014

Yep the cronjob is running.

screen shot 2014-01-21 at 8 28 34 pm

mcifani commented Jan 22, 2014

Hrm, I noticed when running the notifications.php manually.

PHP Fatal error: Uncaught --> Smarty: Invalid compiled template for '../public/templates/mail/subject.tpl' <--
thrown in /var/www/MPOS/public/include/smarty/libs/sysplugins/smarty_internal_templatebase.php on line 176

mcifani commented Jan 22, 2014

Lines 174-179, there is an if statement.

                   ob_start();
                    if (empty($_template->properties['unifunc']) || !is_callable($_template->properties['unifunc']))$   
                     throw new SmartyException("Invalid compiled template for '{$_template->template_resource}'");                        }
mcifani commented Jan 22, 2014

I went back on my notifications log file, and it actually has been recording idle workers for example properly everyday. So, that might help isolate the issue might be stemming from, if the logs seem pretty accurate.

Contributor

Remove templates/compile/mpos then refresh the site and try again.

Don't forgot to re-enable the worker again or no new idle notification will be sent.

Contributor

Can you ensure that the resulting template compiled by Smarty is valid? It may just be filesystem or storage issue where the files compiled aren't properly written to disk. That's the only thing I can think about.

mcifani commented Jan 23, 2014

TheSerapher, removing the compile directory did the trick! Thank you! 👍

@mcifani mcifani closed this Jan 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment