While running the WordPress container version of Shifter we allow warnings and errors to be displayed. Since that environment is not public to users it's ideal testing, resolving issues, and updates before deploying.

For example, a deprecation notice looks something like this:

Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /var/www/html/web/wp/wp-content/plugins/js_composer/include/classes/core/class-vc-mapper.php on line 186

This notices means the following:

  1. A WordPress Plugin or current Theme uses the PHP each function.
  2. That each() function is not compatible with the current version of PHP and should be removed or updated.
  3. It provides the exact path to that plugin, in this case it's the Visual Composer Plugin.

How to resolve these warnings and errors

Here are a few suggestions to resolve those errors. If these don't work out please let us know and we'll help you pinpoint the issue.

Most common fix: Update Themes and Plugins

The number one cause of these warnings or errors is an outdated plugin. Updating all of your plugins and themes is the first step to fix those errors.

Remove Unused or Unnecessary Plugins

If you are running a plugin that isn't needed remove it. Also, if you are using two plugins that do the same thing remove the one you don't need. Conflicts can occur and it's best to rule these out.

Contact the Plugin or Theme Developer

If you've identified where the error is coming from and the plugin or theme developer does not have an update available contact them directly. Plugin developers and Theme developer, especially paid ones should offer patches or updates to their software to support newer versions of PHP.

Often times a quick email or ticket to those vendors can provide an update if one is not already available.

Did this answer your question?