• Resolved tiago

    (@tiagogoncalves)


    wordpress gives error 500 when this plugin is active with php7.0:

    2016/05/06 16:08:18 [error] 9107#9107: *33 FastCGI sent in stderr: "PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function xml_parser_create() in /var/www/website-x/wp-content/plugins/polylang/modules/wpml/wpml-config.php:49
    Stack trace:
    #0 /var/www/website-x/wp-content/plugins/polylang/modules/wpml/wpml-config.php(165): PLL_WPML_Config->xml_parse('<wpml-config>\n\t...', 'jetpack')
    #1 /var/www/website-x/wp-content/plugins/polylang/modules/wpml/wpml-config.php(23): PLL_WPML_Config->init()
    #2 /var/www/website-x/wp-content/plugins/polylang/modules/wpml/wpml-config.php(35): PLL_WPML_Config->__construct()
    #3 /var/www/website-x/wp-content/plugins/polylang/include/class-polylang.php(194): PLL_WPML_Config::instance()
    #4 /var/www/website-x/wp-includes/plugin.php(525): Polylang->init('')
    #5 /var/www/website-x/wp-settings.php(277): do_action('plugins_loaded')
    #6 /var/www/website-x/wp-config.php(95): require_once('/var/www/verina...')
    #7 /var/www/website-x/wp-load.php(37): require_once('/var/www/verina...')
    #8 /var/www/website-x/wp-adm" while reading response header from upstream, client: 89.180.118.11, server: website-x.com, request: "GET /wp-admin/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.0-fpm.sock:", host: "website-x.com""

    when the plugin is deactivated it works great.

    https://ww.wp.xz.cn/plugins/polylang/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Viktor Szépe

    (@szepeviktor)

    Do you have your xml extension built-in?

    Thread Starter tiago

    (@tiagogoncalves)

    Can you be a bit more specific? It runs on Ubuntu 14.04.4 and nginx/1.9.15

    Plugin Author Chouby

    (@chouby)

    Hi!

    What Viktor mean is that your problem is not PHP7 as the function xml_parser_create() is compatible with PHP7 but a lacking PHP extension. This extension is enabled by default. So it should be there unless removed intentionally. You should check that with your host provider.

    Gwyneth Llewelyn

    (@gwynethllewelyn)

    I wonder if the strange error I get (only on the backoffice):

    Uncaught Error: Call to a member function translate() on null in /path.to.my.wordpress.installation/wp-includes/l10n.php

    is also somehow related to PHP 7.0? Note that I’m using a beta version of WordPress, so maybe this is the real cause of that error…

    Plugin Author Chouby

    (@chouby)

    @tiagogoncalves

    I found this:
    http://stackoverflow.com/questions/35593521/php-7-simplexml
    which looks similar and seems specific to Ubuntu.

    @gwynethllewelyn

    I don’t think PHP7 is the cause of your issue. You should try with a default theme and without plugins to see if your problem is still there.

    Thread Starter tiago

    (@tiagogoncalves)

    on my server after running
    php -m
    I got:

    [PHP Modules]
    calendar
    Core
    ctype
    date
    exif
    fileinfo
    filter
    ftp
    gettext
    hash
    iconv
    json
    libxml
    mysqli
    mysqlnd
    openssl
    pcntl
    pcre
    PDO
    pdo_mysql
    Phar
    posix
    readline
    Reflection
    session
    shmop
    sockets
    SPL
    standard
    sysvmsg
    sysvsem
    sysvshm
    tokenizer
    Zend OPcache
    zlib

    Is the “libxml”?

    Hello, in case it’ll help :
    apt-get install php7.0-xml
    service apache2 restart

    cheers

    Thread Starter tiago

    (@tiagogoncalves)

    Thanks! it worked out!

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘incompatible with PHP7.0’ is closed to new replies.