Tuesday, October 18, 2016

Debugging WordPress: 11 Powerful Tips and Techniques

This tutorial will show you 11 powerful ways to debug WordPress and PHP errors. The first item in the list is the famous WP_Debug, and finally we'll cover some more advanced methods.

First, let’s list the types of common PHP errors:

A - Notice: This is the least important error message you will see with PHP. It does not necessarily mean something is wrong, but there is possible improvement suggested.

Example: null element passed to a function that expect a string.

B - Warning: It’s a more severe error, but does not cause script termination.

Example: giving include() a file that does not exist.

C - Fatal error: This is a dangerous indicator of something going really wrong, and the script terminated.

Example: calling a non-existing function.

Continue reading %Debugging WordPress: 11 Powerful Tips and Techniques%


by Loai Nagati via SitePoint

No comments:

Post a Comment