Checkout: Debugging

Debugging the WordPress Shopping Cart plugin is a quick and easy way of finding a problem.

In the case where the plugin may not activate, work as intended or even show a blank page when executing a specific action there could be a fatal error due to a 3rd party plugin, permissions and many other unpredictable factors.

Turning on Debugging

1. Set $debugging to true

Open the “wp-checkout/wp-checkout-plugin.php” file in an editor and set the $debugging variable on approximately line #8 to true in order to turn on global debugging in the plugin.

2. Uncomment Error Reporting

Next step is to uncomment the lines which set the error_reporting on your site.

In the same file, navigate to approximately line #112 where you will see two lines of code preceded by two forward slashes (//). Just remove those forward slashes on both lines.

When you’re done, save the file to the server, overwriting the old “wp-checkout/wp-checkout-plugin.php” file in order for the changes to take effect.

Do Your Testing

Go back to the site and test it by doing what you did before when you were presented with a blank screen or the issue that arose. You will now see an explanatory PHP error message. You can either interpret that message and solve the issue or contact us to assist you further.

Please remember to revert the changes that you made to the “wp-checkout/wp-checkout-plugin.php” file when you are done, especially if it is a production site since you don’t want your users to see any errors.

WordPress Plugins

Start selling products, sending newsletters, publishing ads, and more through your own WordPress website using our premium WordPress plugins.

Browse

Pin It on Pinterest