Skip to content
💸 Introductory Pricing: Save 50% on bundle plans for your first year Get deal

Enabling Logging

When problems arise with your online photo galleries using Sunshine Photo Cart, it is sometimes necessary to see if there are code errors causing the problem. With the infinite combinations of themes, plugins, and server conditions, there may be a unique situation that is causing the issue and deeper investigation is required. Here are the most effective steps to take to find the underlying problem with your photo galleries:

Enabling PHP Logging

Often times we need to see what PHP errors are appearing in order to help identify an issue with Sunshine on your site. WordPress makes this pretty easy to enable:

Using FTP or your web host’s file manager application, find your wp-config.php file and add the following code:

define( 'WP_DEBUG', true );
define( 'WP_DEBUG_LOG', true );
define( 'WP_DEBUG_DISPLAY', false );

This will enable debug mode and also write all errors to a log file. That log file will appear as debug.log in your “wp-content” folder. Example: www.yourdomain.com/wp-content/debug.log. Some web hosts prevent public access to this file for security reasons and you may only be able to access the file via FTP or your web host’s file manager application.

You can also try the 3rd party plugin called Error Log Viewer which can enable error logging from your WordPress admin area.

Enabling Sunshine Logging

In addition to tracking PHP errors, Sunshine Photo Cart has it’s own built in logging system. It keeps track of various actions being taken from a customer adding an image to favorites, to saving the information sent to PayPal to generate an order. By enabling logging we can see lots of important actions taking place to ensure things are working as expected.

Go to Sunshine > Settings > General > Data & Logging and enable logging. Once enabled there will be a link to the log file with an option to clear the log if needed.

Still need help?

If you have not yet found your answer in the documentation articles, please contact support