Title: PHP Warning
Last modified: November 12, 2019

---

# PHP Warning

 *  Resolved [Spiffy Plugins](https://wordpress.org/support/users/spiffyplugins/)
 * (@spiffyplugins)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/)
 * Thank you for this plugin. I am evaluating for potential use on a new website.
   I have found the following PHP error warning is generated:
 * Declaration of PLL_Walker_List::walk($elements, $args = Array) should be compatible
   with Walker::walk($elements, $max_depth, …$args) wp-content/plugins/polylang/
   include/walker-list.php:65
 * I am using version 2.6.6.

Viewing 15 replies - 1 through 15 (of 47 total)

1 [2](https://wordpress.org/support/topic/php-warning-214/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/php-warning-214/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/php-warning-214/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/php-warning-214/page/2/?output_format=md)

 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12123623)
 * Hello,
 * I will stick this topic.
 * This is a known issue since WP 5.3. With this new release, we had to choose between
   having this warning or stop supporting PHP < 5.6, even for older versions of 
   WordPress as it’s currently not possible to support older versions of PHP for
   older version of WordPress without having this warning in WP 5.3.
 * Considering that this warning has no impact on the way the plugin works (just
   set `WP_DEBUG` to `false` in production and that’s ok) and the fact that we don’t
   want to change the PHP min version in a minor release, the issue will stay as
   is in WP 5.3 + Polylang 2.6.x.
 * The warning is already fixed in the development version of Polylang 2.7, for 
   which we will require PHP 5.6 or older. See [https://github.com/polylang/polylang/issues/414](https://github.com/polylang/polylang/issues/414)
 * See also [https://make.wordpress.org/core/2019/10/09/wp-5-3-introducing-the-spread-operator/](https://make.wordpress.org/core/2019/10/09/wp-5-3-introducing-the-spread-operator/)
   for the WordPress background.
 *  [mstuyts](https://wordpress.org/support/users/mstuyts/)
 * (@mstuyts)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12124686)
 * I had to add `@ini_set( 'display_errors', 0 );` to get rid of the error message.
 *  [Nikita_Sp](https://wordpress.org/support/users/nikitasp/)
 * (@nikitasp)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12124975)
 * [@chouby](https://wordpress.org/support/users/chouby/) hi!
 * The thing is that
 * > just set WP_DEBUG to false in production and that’s ok)
 * is NOT working.
    I’ve got the same issue and there is WP_DEBUG false in my wp-
   config.php.
 * Thanks.
 *  [setevoy](https://wordpress.org/support/users/setevoy/)
 * (@setevoy)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12125418)
 * > just set WP_DEBUG to false in production and that’s ok)
 * [@chouby](https://wordpress.org/support/users/chouby/) +1 – doesn’t work for 
   me too (PHP 7.0.33-0+deb9u6)
 * [@mstuyts](https://wordpress.org/support/users/mstuyts/) `@ini_set( 'display_errors',
   0 );` – where did you added this? Tried add to the `wp-content/plugins/polylang/
   polylang.php` – no result.
 *  [mstuyts](https://wordpress.org/support/users/mstuyts/)
 * (@mstuyts)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12125427)
 * I added it to wp_config.php.
 *  [katastrophenschutz](https://wordpress.org/support/users/katastrophenschutz/)
 * (@katastrophenschutz)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12125803)
 * Same here.
    Using WP 5.3, PHP 7-72STABLE-STANDARD, Polylang 2.6.6
 * WP_DEBUG is set to false, but error is still displayed.
 * EDIT: Can I revert plugin to an older version and would that help?
    -  This reply was modified 6 years, 6 months ago by [katastrophenschutz](https://wordpress.org/support/users/katastrophenschutz/).
 *  Plugin Author [Chouby](https://wordpress.org/support/users/chouby/)
 * (@chouby)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12125817)
 * This is a warning. This message is for developers and must never be displayed
   on a production site. If the message is displayed while WP_DEBUG is set to false
   and you don’t know what to do, please contact the support of the host provider
   and ask how not to display warnings.
 *  [studio_m](https://wordpress.org/support/users/studiomondiale/)
 * (@studiomondiale)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12125818)
 * Same issue here and WP_DEBUG is already set to false.
 * **Found the solution:
    Add “php_flag display_errors off” (without “) to your .
   htaccess
    -  This reply was modified 6 years, 6 months ago by [studio_m](https://wordpress.org/support/users/studiomondiale/).
      Reason: solution
    -  This reply was modified 6 years, 6 months ago by [studio_m](https://wordpress.org/support/users/studiomondiale/).
      Reason: solution
 *  [katastrophenschutz](https://wordpress.org/support/users/katastrophenschutz/)
 * (@katastrophenschutz)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12125858)
 * Thanks, I contacted our provider’s support…
 *  [setevoy](https://wordpress.org/support/users/setevoy/)
 * (@setevoy)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12125859)
 * I had `php_admin_value[display_errors] = 'stderr'` im my `/etc/php/7.0/fpm/pool.
   d/rtfm.co.ua.conf`.
    Changed to the `php_admin_value[display_errors] = off` and
   all good now. I thought `stderr` means write to the `php_admin_value[error_log]`
   😐 Anyway – the warning gone now.
 *  [mrtvy.kenny](https://wordpress.org/support/users/mrtvykenny/)
 * (@mrtvykenny)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12126048)
 * well this is very much unfortunate as i manage tens of websites and now i have
   to go thru all of them and change config…
 * it was not possible to do some intelligent fallback? i mean you know what php
   version is running, if you want to keep support for older php, you could do just
   put switch in the code..
 * now my day is going to be just about this problem, so thanks ;(
 *  [Fee](https://wordpress.org/support/users/wdfee/)
 * (@wdfee)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12126410)
 * [@chouby](https://wordpress.org/support/users/chouby/) I’m a developer and really
   don’t like this statement “just set WP_DEBUG to false in production and that’s
   ok” because that’s no clean way of coding.
    In my opinion it’s time skipping 
   support for PHP < 5.6 as most providers already skipped that. Your milestone 
   2.7 is 100% complete – when will this version be released? What’s missing?
 *  [katastrophenschutz](https://wordpress.org/support/users/katastrophenschutz/)
 * (@katastrophenschutz)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12126429)
 * SOLVED here.
 * My host provider allows to use a custom php.ini.
 * Following the suggestion from [@setevoy](https://wordpress.org/support/users/setevoy/)
   I set `display_errors` to `Off` and now we#re fine.
 * Thanks…
 *  [dashamiro](https://wordpress.org/support/users/dashamiro/)
 * (@dashamiro)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12126491)
 * I use the excellent plugin on several sites.
    Is it worth it to wait for a solution
   with support? (I really do not want to use crutches -> display_errors Off).
 * Or is this your final decision – and everyone will still have to turn off PHP
   Warning?
 *  [Nikita_Sp](https://wordpress.org/support/users/nikitasp/)
 * (@nikitasp)
 * [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/#post-12127190)
 * [@wdfee](https://wordpress.org/support/users/wdfee/) I’m agree with you. Also
   could you just check what version of PHP is using and then use different methods
   depending on the version?
 * Waiting for an update…

Viewing 15 replies - 1 through 15 (of 47 total)

1 [2](https://wordpress.org/support/topic/php-warning-214/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/php-warning-214/page/3/?output_format=md)
[4](https://wordpress.org/support/topic/php-warning-214/page/4/?output_format=md)
[→](https://wordpress.org/support/topic/php-warning-214/page/2/?output_format=md)

The topic ‘PHP Warning’ 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

 * [php-error](https://wordpress.org/support/topic-tag/php-error/)

 * 47 replies
 * 23 participants
 * Last reply from: [Emmanuel Hesry](https://wordpress.org/support/users/manooweb/)
 * Last activity: [6 years, 6 months ago](https://wordpress.org/support/topic/php-warning-214/page/4/#post-12185387)
 * Status: resolved