OPNsense Forum

English Forums => Development and Code Review => Topic started by: cake on January 02, 2017, 03:48:57 am

Title: PHP errors [solved]
Post by: cake on January 02, 2017, 03:48:57 am
Was getting PHP errors.
Solved it, It was two extensions of the same. openssl and lpad in /usr/local/etc/php/

Had the new separate extension files (ext-20-ldap.ini    & ext-20-openssl.ini) plus the same in the listed in the file extensions.ini

Solved it by removing ext-20-ldap.ini    & ext-20-openssl.ini
No more errors in /tmp/PHP_errors.log

ref. https://forums.freebsd.org/threads/54980/

If anyone else has the same
Title: Re: PHP errors [solved]
Post by: franco on January 02, 2017, 06:31:44 am
Hi Cake,

Something is off with your setup. extensions.ini was deprecated by FreeBSD almost 6 months ago and ext-20-ldap.ini et al are the correct files now.

If you are running an unmodified latest version of 16.7.x you need to remove extensions.ini and re-add the packages:

# pkg install -f php56-ldap php56-openssl


Cheers,
Franco
Title: Re: PHP errors [solved]
Post by: cake on January 02, 2017, 11:00:39 am
Franco Thanks

I was a version behind on everything. I feel like a dummy.
Updated-- all better!


Cheers!