Hi there,
I have a 12.1-RELEASE-p10 box running nginx and php7.4 (both installed from pkg) for largely hosting wordpress sites (mariadb on another server), and i've just struck a rather unusual error.
When trying to use a 'one click install' theme to import some templated settings, the process didnt seem to complete properly, with lots of imported settings missing.
nginx's error log shows:
Which then repeats a few times across that line.
However the php dom extension is installed:
output of php -m:
I've done a fair bit of googling and most of the solutions are "make sure these packages are installed and enabled" which they appear to be. The closest thing i can find is this, which notes:
I'm a relative newcomer to FreeBSD, with most of my sites currently living on an ubuntu box, but chose to make the progressive switch to FreeBSD to allow for better scaling and growth. This is certainly not an issue I've encountered on Ubuntu.
Just wondering if anyone has any thoughts? Removing php and recompiling from ports sounds pretty drastic...
Thanks!
I have a 12.1-RELEASE-p10 box running nginx and php7.4 (both installed from pkg) for largely hosting wordpress sites (mariadb on another server), and i've just struck a rather unusual error.
When trying to use a 'one click install' theme to import some templated settings, the process didnt seem to complete properly, with lots of imported settings missing.
nginx's error log shows:
Code:
FastCGI sent in stderr: "message: PHP Warning: DOM support is not enabled in [PATH TO SITE HERE]WXRImporter.php on line 386PHP message: PHP Warning: Invalid argument supplied for foreach()...
However the php dom extension is installed:
output of php -m:
Code:
[PHP Modules]
Core
ctype
curl
date
dom
exif
fileinfo
filter
ftp
gd
hash
iconv
json
libxml
mbstring
mysqli
mysqlnd
openssl
pcre
PDO
pdo_sqlite
Phar
posix
Reflection
session
SimpleXML
soap
sockets
SPL
sqlite3
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
Zend OPcache
zip
zlib
[Zend Modules]
Zend OPcache
This appears to be a FreeBSD specific issue.
Build php74 from the ports collection, and add the following CONFIGURE_ARGS= flags:
--enable-dom
--enable-xmlreader
Then make sure the php74-dom and php74-xmlreader packages are not installed. If they are installed as a prerequisite for another package, just remove the extension ini from /usr/local/etc/php since these extensions are now compiled in directly.
I'm a relative newcomer to FreeBSD, with most of my sites currently living on an ubuntu box, but chose to make the progressive switch to FreeBSD to allow for better scaling and growth. This is certainly not an issue I've encountered on Ubuntu.
Just wondering if anyone has any thoughts? Removing php and recompiling from ports sounds pretty drastic...
Thanks!