Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-04-30 12:43:59

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

[Solved] Two fatal errors on a 4.5.7 to 4.6-dev upgrade

I’m moving web servers, the new one runs PHP 7.0.4 atop Ubuntu 16.04 LTS. I’m using the 4.6-dev from the time of this post.

When I hit /textpattern/index.php, I get a login screen. I supply valid credentials, and this is the first error thrown:

Fatal error: Uncaught Error: Call to undefined function xml_parser_create() in /var/www/vhosts/example.com/www/live/textpattern/lib/IXRClass.php:237 Stack trace: #0 /var/www/vhosts/example.com/www/live/textpattern/lib/IXRClass.php(756): IXR_Message->parse() #1 /var/www/vhosts/example.com/www/live/textpattern/include/txp_lang.php(118): IXR_Client->query('tups.listLangua...', '16d328e1e3b71a9...') #2 /var/www/vhosts/example.com/www/live/textpattern/include/txp_lang.php(49): list_languages() #3 /var/www/vhosts/example.com/www/live/textpattern/index.php(211): include('/var/www/vhosts...') #4 {main} thrown in /var/www/vhosts/example.com/www/live/textpattern/lib/IXRClass.php on line 237

Reloading throws up this error:

Fatal error: Uncaught Error: Call to undefined function utf8_decode() in /var/www/vhosts/example.com/www/live/textpattern/lib/txplib_forms.php:205 Stack trace: #0 /var/www/vhosts/example.com/www/live/textpattern/include/txp_article.php(1357): treeSelectInput('Category1', Array, '', 'category-1', 35) #1 /var/www/vhosts/example.com/www/live/textpattern/include/txp_article.php(2017): category_popup('Category1', '', 'category-1') #2 /var/www/vhosts/example.com/www/live/textpattern/include/txp_article.php(917): article_partial_categories(Array, 'categories') #3 /var/www/vhosts/example.com/www/live/textpattern/include/txp_article.php(123): article_edit() #4 /var/www/vhosts/example.com/www/live/textpattern/index.php(211): include('/var/www/vhosts...') #5 {main} thrown in /var/www/vhosts/example.com/www/live/textpattern/lib/txplib_forms.php on line 205

It’s a small site and I’m happy to fresh install and pipe the existing content back in, but are either of these worth raising issues for?

OK, happens on new installs, too – raised an issue: github.com/textpattern/textpattern/issues/683

Last edited by gaekwad (2016-04-30 15:54:12)

Offline

#2 2016-04-30 13:49:22

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: [Solved] Two fatal errors on a 4.5.7 to 4.6-dev upgrade

Both probably caused by disabled (rather atypically) xml.so extension, can you check?

Offline

#3 2016-04-30 15:54:00

gaekwad
Server grease monkey
From: People's Republic of Cornwall
Registered: 2005-11-19
Posts: 4,137
GitHub

Re: [Solved] Two fatal errors on a 4.5.7 to 4.6-dev upgrade

Hey Oleg – thanks for your reply. I confirm the required PHP modules were loaded:

$ php -m
[PHP Modules]
calendar
Core
ctype
date
dom
exif
fileinfo
filter
ftp
gd
gettext
hash
iconv
json
libxml
mcrypt
mysqli
mysqlnd
openssl
pcntl
pcre
PDO
pdo_mysql
Phar
posix
readline
Reflection
session
shmop
SimpleXML
sockets
SPL
standard
sysvmsg
sysvsem
sysvshm
tokenizer
wddx
xml
xmlreader
xmlwriter
xsl
Zend OPcache
zlib

[Zend Modules]
Zend OPcache

I ended up uninstalling and reinstalling the xml modules for completeness, and that appears to have fixed it.

Thanks for the pointer, sir – much appreciated.

Offline

#4 2016-04-30 17:05:35

etc
Developer
Registered: 2010-11-11
Posts: 5,053
Website GitHub

Re: [Solved] Two fatal errors on a 4.5.7 to 4.6-dev upgrade

Hey Pete, glad it’s nailed down. I have spent some freaky moments switching to 4.6 too, but now everything is fine.

Offline

Board footer

Powered by FluxBB