OPNsense Forum

Archive => 18.1 Legacy Series => Topic started by: kingfisher77 on May 26, 2018, 03:42:01 pm

Title: Uncaught Error: Call to undefined function encrypt_data()
Post by: kingfisher77 on May 26, 2018, 03:42:01 pm
Since update to 18.1.8-ef579d069 these error message appears in the GUI:

Code: [Select]
Unfortunately we have detected at least one programming bug.

User-Agent Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/66.0.3359.181 Safari/537.36
FreeBSD 11.1-RELEASE-p10  a6fa9599a(stable/18.1)
OPNsense 18.1.8-ef579d069 [18.1.6-1ba9a4da3] OpenSSL 1.0.2o  27 Mar 2018 (amd64)
Plugins os-clamav-1.5 os-postfix-1.2
Time Sat, 26 May 2018 15:35:28 +0200

[21-May-2018 01:00:00 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function encrypt_data() in /usr/local/etc/inc/config.inc:318
Stack trace:
#0 /usr/local/opnsense/scripts/remote_backup.php(8): backup_to_google_drive()
#1 {main}
  thrown in /usr/local/etc/inc/config.inc on line 318
[22-May-2018 01:00:00 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function encrypt_data() in /usr/local/etc/inc/config.inc:318
Stack trace:
#0 /usr/local/opnsense/scripts/remote_backup.php(8): backup_to_google_drive()
#1 {main}
  thrown in /usr/local/etc/inc/config.inc on line 318
[23-May-2018 01:00:00 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function encrypt_data() in /usr/local/etc/inc/config.inc:318
Stack trace:
#0 /usr/local/opnsense/scripts/remote_backup.php(8): backup_to_google_drive()
#1 {main}
  thrown in /usr/local/etc/inc/config.inc on line 318
[24-May-2018 01:00:00 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function encrypt_data() in /usr/local/etc/inc/config.inc:318
Stack trace:
#0 /usr/local/opnsense/scripts/remote_backup.php(8): backup_to_google_drive()
#1 {main}
[...]
a.s.o.

The backup to Google Drive is not working anymore. Has something changed?
Title: Re: Uncaught Error: Call to undefined function encrypt_data()
Post by: kingfisher77 on May 26, 2018, 03:45:01 pm
Manual backup from System/Configuration/Backup works fine.
Title: Re: Uncaught Error: Call to undefined function encrypt_data()
Post by: kjp4756 on May 26, 2018, 06:06:18 pm
I'm seeing this as well.  I just created this account to post about this problem and saw this post so I'll just keep an eye on it instead of making another.
Title: Re: Uncaught Error: Call to undefined function encrypt_data()
Post by: DanMc85 on May 26, 2018, 06:26:16 pm
Same issue here... when my OPNSense does its nightly backups to Google Drive.
Title: Re: Uncaught Error: Call to undefined function encrypt_data()
Post by: franco on May 28, 2018, 11:11:14 am
A backport went wrong. The error unfortunately is not present in stable/18.1 and master, only 18.1.8: https://github.com/opnsense/core/commit/24fd1307

Patching doesn't work here, but 18.1.9 is out this week to fix it. Manual backup works for now.


Sorry,
Franco