Upgrade to 3.8 - Error: SimpleXML is required but not enabled.

Added by Barbara Holbrook 10 months ago

I upgraded to 3.8 and now I have a persistent warning in the admin section stating "SimpleXML is required but not enabled." However, the information on "Plugin Environment" seem to show that SimpleXML is running:

Active WPCSL: DATA REMOVED
Site URL:http://www.swoopsworld.com
Encryption Key: DATA REMOVED
License Key:licensed
WPCSL Version:1.4.9
WordPress Version:3.1.4
MySQL Version:5.0.92
PHP Version:5.3.2
PHP Modules:bcmath
calendar
cgi-fcgi
Core
ctype
curl
date
dom
ereg
filter
ftp
gd
gettext
hash
iconv
imap
ionCube Loader
json
libxml
mbstring
mysql
pcre
Phar
posix
Reflection
session
SimpleXML
sockets
SPL
SQLite
sqlite3
standard
tokenizer
xml
xmlreader
xmlrpc
xmlwriter
zip
zlib

Any ideas?


Replies (4)

RE: Upgrade to 3.8 - Error: SimpleXML is required but not enabled. - Added by Chris Riley 10 months ago

Hi,
I see the same thing. If I do a phpinfo(); then it shows it active:
Revision $Revision: 293036 $
Schema support enabled

If I create a simple php file like this:

if (function_exists('simplexml_load_string') === false) {
echo "disabled";
}

it is active.

I will echo the "Any ideas?" question.

It is 3.81 and this is with WP 3.2 also - which now that I look it says it hasn't been tested. Although it seems to have done it with 3.1.x above. :-)

Thanks

Plugin environment shows:

License Key:licensed
WPCSL Version:1.4.9
WordPress Version:3.2
MySQL Version:5.0.77
PHP Version:5.2.13
PHP Modules:apache2handler
bcmath
bz2
calendar
ctype
curl
date
dba
dbase
dom
exif
filter
ftp
gd
gettext
gmp
hash
iconv
imagick
imap
ionCube Loader
json
ldap
libxml
mbstring
mcrypt
memcache
mhash
mime_magic
mongo
mssql
mysql
mysqli
ncurses
odbc
openssl
pcre
pdf
PDO
pdo_dblib
pdo_mysql
PDO_ODBC
pdo_pgsql
pdo_sqlite
pgsql
pspell
Reflection
session
shmop
SimpleXML
snmp
soap
sockets
SPL
SQLite
standard
sybase_ct
tidy
tokenizer
uploadprogress
wddx
XCache
xml
xmlreader
xmlrpc
xmlwriter
xsl
yaz
Zend Optimizer
zip
zlib

RE: Upgrade to 3.8 - Error: SimpleXML is required but not enabled. - Added by Dan Mahoney 10 months ago

I have the same warning. Precisely as described by the others.

RE: Upgrade to 3.8 - Error: SimpleXML is required but not enabled. - Added by Chris Riley 10 months ago

I checked it with this from core/csl_helpers.php (see below for original check):
if (!function_exists('parsetoxml')) {
echo "parsetoxml";
}

and the function parsetoxml does not exist. So, while the "simplexml_load_string" is there and simplexml is there, the check for "parsetoxml" doesn't appear to be there - just a mistake. I don't think it is impacting performance since it just checking for an incorrect function - checking something like simplexml_load_string might be a better check????

You should be able to check it yourself, if you wish:

if (!function_exists('parsetoxml')) {
echo "parsetoxml does not exist";
} else {
echo "parsetoxml does exist";

}

// phpinfo(); // if you want to see more uncomment.

?>

The original snip from core/csl_helpers.php is this:

// No SimpleXML Support
if (!function_exists('parsetoxml')) {
$MP_cafepress_plugin->notifications->add_notice(1, __('SimpleXML is required but not enabled.',MP_CAFEPRESS_PREFIX));
}

(1-4/4)