Understanding WordPress related PHP errors
This article will help you to recognise and understand many of the common PHP errors you may encounter.
E_ERROR
This is a fatal error that causes script termination, which is caused by calling a non-existing object like a class or function and can often occur in version incompatibility. Your next steps should be to update your WordPress version, themes, and plugins.
E_WARNING
These are potential issues that occur but do not stop the processing of PHP. These can often include deprecation warnings, which indicates that your code may be using an outdated version of PHP and needs to be updated. A warning in your PHP logs may not necessarily be related to the issue you are experiencing.
E_PARSE
This is a compile time parse error. It is usually indicative of a PHP syntax error, such as a missing semicolon ;, parenthesis (), or opening or closing bracket {}, or any number of other syntax errors. You should review the file and line specified in the error message and look for potential syntax error.
E_NOTICE
These are typically PHP errors that don’t cause script termination. They indicate that there could be an issue but may be part of the normal running of the script. A common cause is using a PHP variable that is undefined. A notice in your PHP logs may not necessarily be related to the issue you are experiencing.