Email from Cron Job re PBXact license every five minutes

Just got Postfix configured correctly for voicemail to email functionality and I’m getting one of these every five minutes sent from asterisk@localhost to [email protected]:

PHP Notice: Undefined variable: lic_file in /var/www/html/admin/modules/sysadmin/agi-bin/LoadLicenseIfExists.php on line 33 PHP Notice: Undefined variable: lic_file in /var/lib/asterisk/agi-bin/LoadLicenseIfExists.php on line 33 PHP Warning: No license for this product (PBXact) - make sure zend_loader.license_path is properly configured in your ini file!

We’re running 1.816.210.58-1 from the distro.

Since it’s putting 288/day into the mailbox, we’d like to get this fixed.

Thanks in advance!

Can you tell me how you setup your email server as I have never seen those emails go out before. If you can give me steps I can re-create it and get a fix in place.

Tony-

I installed Webmin and when I looked at the Postfix queue it already had emails like this sitting in it. I just hadn’t seen them because Postfix wasn’t able to send.

The only things I changed were:

  1. Sending address
  2. Set an outbound relay (to use the client’s email server).

On the email server I added an entry to allow SMTP from the FreePBX server.

In the interim, and as you have Webmin installed, just disable the cron job.

This appears to be the only one scheduled to run every five minutes:

/var/lib/asterisk/agi-bin/areminder-manager.php 2>&1 >/dev/null

Does that look like the correct one to disable?

Probably, I’m a pragmatist and by no means an expert on the FreePBX distro’s proprietary software licensing methodology as I don’t accept such a license, I would disable it and see if the emails stop.

Dicko

It has nothing to do with the Distro. It has to do with having commercial modules installed with no license so each time it tries to load the module it has to do a license check and the license check fails.

We are making it so it suppresses more of those errors and only logs them not put them in the root email folder but regardless its all around having commercial modules installed with no license.

I understand that Tony, I personally don’t use any including the sysadmin module, which is similarly encumbered albeit free, so it is not a problem for me, I just supplied a work around for FreePBXer’s problem.

Tony, I’ll wait to hear something definitive from you. For now I’ve setup a rule to move the emails to the Deleted folder so they don’t clutter up the inbox.

As always, thank you!

I published a new sysadmin module. Can you try updating and see if that fixes it.

Installed and they are still coming. Here is the full body of the emails:

PHP Warning: No license for this product (PBXact) - make sure zend_loader.license_path is properly configured in your ini file! in /var/www/html/admin/modules/areminder/functions.inc/functions.inc.php on line 0
PHP Warning: License check failed! in /var/www/html/admin/modules/areminder/functions.inc/functions.inc.php on line 0
PHP Warning: No license for this product (PBXact) - make sure zend_loader.license_path is properly configured in your ini file! in /var/lib/asterisk/agi-bin/areminder/areminder-manager.php on line 0
PHP Warning: License check failed! in /var/lib/asterisk/agi-bin/areminder/areminder-manager.php on line 0

Those will always show up as you have commercial modules installed with no license. FreePBX auto loads all functions.inc.php of all modules and when you install commercial modules those fucntion.inc.php do a license check before they load. You need to uninstall the modules if you dont want those errors. We do not install any paid Commercial Modules on install so you must of installed these yourself.

That’s fine, I’ll just remove the modules. I just can’t tell from the message body which ones to remove.

" /var/lib/asterisk/agi-bin/areminder/areminder-manager.php "

areminder = Appointments Reminder

Thank you. I uninstalled the appointment reminder module and the emails have stopped. Issue resolved.

People will often install every module in the repository just to play with them, but most of our commercial modules do not give you any use without a license.

If you are interested in seeing the appointments reminder module on a live system let me know I can arrange an online demonstration.

Additional commercial modules that can be added to enhance a base install of FreePBX. SysAdmin Pro, Web CallME, Outbound Call Limiting, Caller ID Management, Paging Pro, VM Notify, Fax Pro, Call Recording Reports, Directory Pro, QXact Reports, Xact Dialer, Appointment Reminder, IVR Pro, Extension Routing