Maintenance script not working

Hi

I have the maintenance script running / being called by our web hosting but the email is not completing or sending. This did initially work but now it has stopped with no changes to the environment.

If I call it manually I get:

Version 1.7.9
Any help would be appreciated. Thank you.

The cron I have setup looks like:

It’s not trying to send any email alerts. You’d get output under the Email Alerts heading if it were.

Check the Global On/Off setting for email alerts in the CMS settings, and then check the email alerts option for each display you want to monitor.

In addition, you really should run maintenance in protected mode, with a key, so that it can’t be called more frequently than you intend by a third party, as some of the routines run in that script are fairly CPU intensive for the CMS. We generally recommend running it every 5 minutes as a sensible interval.

Hi Alex

Both enabled on the CMS

I enabled error reporting on the maintenance script and I get the following error but I dont think its related?

You would definitely get output under the Email Alerts section if it were trying to send emails.

The only way I can get the same output as you, is if I have email alerts enabled on all the displays, but disabled in the CMS settings here:

HI David

This is very bizzare. Ive checked the database (screenshots below) they are
definately enabled. Would you advise a re-installation?


Kind Regards,

Reece DaviesProjects Manager

Screencorp Pty Ltd
Phone: +61 (0) 2 9987 0744
Mobile: +61 (0) 413 628 609
Fax: +61 (0) 2 9987 0799
PO Box 2025, Hornsby Westfield, NSW 1635
reece@screencorp.com.au | www.screencorp.com.au
Skype: reece_screencorp_projects_mgr

Current Location: Sydney, Australia GMT +11

Notice
This email and any attachments are confidential. They may contain
privileged information or copyright material. If you are not an intended
recipient, you should not read, copy, use or disclose the contents without
authorisation and we request you contact us at once by return email. Please
then delete the email and any attachments from your system. We do not
accept liability in connection with computer viruses, data corruption,
delay, interruption, unauthorised access or unauthorised amendment. Any
views expressed in this email and any attachments do not necessarily
reflect the views of the company.

Can you put maintenance in protected mode and see if that makes any difference?

You’ll need to append the key you choose to the URL

Ie https://server/maintenance.php?key=changeme

Hi Alex,

Done this and the same result. Please see screenshots.


Kind Regards,

Reece DaviesProjects Manager

Screencorp Pty Ltd
Phone: +61 (0) 2 9987 0744
Mobile: +61 (0) 413 628 609
Fax: +61 (0) 2 9987 0799
PO Box 2025, Hornsby Westfield, NSW 1635
reece@screencorp.com.au | www.screencorp.com.au
Skype: reece_screencorp_projects_mgr

Current Location: Sydney, Australia GMT +11

Notice
This email and any attachments are confidential. They may contain
privileged information or copyright material. If you are not an intended
recipient, you should not read, copy, use or disclose the contents without
authorisation and we request you contact us at once by return email. Please
then delete the email and any attachments from your system. We do not
accept liability in connection with computer viruses, data corruption,
delay, interruption, unauthorised access or unauthorised amendment. Any
views expressed in this email and any attachments do not necessarily
reflect the views of the company.

Enable Maintenance is still set to On. It should be Protected.

I had the same problem. Playing around with the maintenance script and found it was the following if statement that was causing the problem - if ($displayGoneOffline || $alwaysAlert). There isn’t a else statement to catch displays that are offline without always alert disabled.

Setting Send Repeat Display Timeouts to On sorted out it out for me.

Mark you absolute legend! Fixed it.

By Copy Spring Signage - is this a bug?

Reece
Projects Manager
Screencorp Pty Ltd

Sent on the move
Location: Sydney, Australia GMT+11

No it’s not a bug.

You’ll only get an actual email sent when the display transitions between online and offline or offline and on - unless you have always alert turned on, but then you’ll get an email every time maintenance is run when a display is down - which is pretty antisocial.

In your case, the display was already offline, so no alert is sent, since there was no transition.

Thanks Alex. There was something funny going on - re-installation fixed.

Glad you got there in the end.