Title: incompatible with PHP7.0
Last modified: August 31, 2016

---

# incompatible with PHP7.0

 *  Resolved [tiago](https://wordpress.org/support/users/tiagogoncalves/)
 * (@tiagogoncalves)
 * [10 years ago](https://wordpress.org/support/topic/incompatible-with-php70/)
 * 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://wordpress.org/plugins/polylang/](https://wordpress.org/plugins/polylang/)

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

 *  [Viktor Szépe](https://wordpress.org/support/users/szepeviktor/)
 * (@szepeviktor)
 * [10 years ago](https://wordpress.org/support/topic/incompatible-with-php70/#post-7354904)
 * Do you have your xml extension built-in?
 *  Thread Starter [tiago](https://wordpress.org/support/users/tiagogoncalves/)
 * (@tiagogoncalves)
 * [10 years ago](https://wordpress.org/support/topic/incompatible-with-php70/#post-7354964)
 * Can you be a bit more specific? It runs on Ubuntu 14.04.4 and nginx/1.9.15
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 years ago](https://wordpress.org/support/topic/incompatible-with-php70/#post-7354991)
 * Hi!
 * What Viktor mean is that your problem is not PHP7 as [the function xml_parser_create() is compatible with PHP7](http://php.net/manual/en/function.xml-parser-create.php)
   but a lacking PHP extension. This extension is [enabled by default](http://php.net/manual/en/xml.installation.php).
   So it should be there unless removed intentionally. You should check that with
   your host provider.
 *  [Gwyneth Llewelyn](https://wordpress.org/support/users/gwynethllewelyn/)
 * (@gwynethllewelyn)
 * [10 years ago](https://wordpress.org/support/topic/incompatible-with-php70/#post-7355049)
 * 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](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [10 years ago](https://wordpress.org/support/topic/incompatible-with-php70/#post-7355066)
 * [@tiagogoncalves](https://wordpress.org/support/users/tiagogoncalves/)
 * I found this:
    [http://stackoverflow.com/questions/35593521/php-7-simplexml](http://stackoverflow.com/questions/35593521/php-7-simplexml)
   which looks similar and seems specific to Ubuntu.
 * [@gwynethllewelyn](https://wordpress.org/support/users/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](https://wordpress.org/support/users/tiagogoncalves/)
 * (@tiagogoncalves)
 * [10 years ago](https://wordpress.org/support/topic/incompatible-with-php70/#post-7355076)
 * 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”?
 *  [desirelabs](https://wordpress.org/support/users/desirelabs/)
 * (@desirelabs)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/incompatible-with-php70/#post-7355111)
 * Hello, in case it’ll help :
    `apt-get install php7.0-xml` `service apache2 restart`
 * cheers
 *  Thread Starter [tiago](https://wordpress.org/support/users/tiagogoncalves/)
 * (@tiagogoncalves)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/incompatible-with-php70/#post-7355112)
 * Thanks! it worked out!

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

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

 * ![](https://ps.w.org/polylang/assets/icon-256x256.png?rev=3433336)
 * [Polylang](https://wordpress.org/plugins/polylang/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/polylang/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/polylang/)
 * [Active Topics](https://wordpress.org/support/plugin/polylang/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/polylang/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/polylang/reviews/)

## Tags

 * [PHP70](https://wordpress.org/support/topic-tag/php70/)

 * 8 replies
 * 5 participants
 * Last reply from: [tiago](https://wordpress.org/support/users/tiagogoncalves/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/incompatible-with-php70/#post-7355112)
 * Status: resolved