Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Debug is a great tool for troubleshooting issues on your site. Many times, you will be asked if you enabled and tested with this tool on. Before posting for help anyplace, be sure to have checked your site with debug debugging as it will usually point to any errors and save you time in troubleshooting. This tutorial will show you how to enable debug. This requires you to know your license ID and Key. Many times in our tutorials you will see us refer to "yoursite.com" without the quotes. You are to replace that with your own site domain.

To enable debug, first visit yoursite.com/PF.Base/tools/debug.php . You will note that we don't have index.php as part of this urlURL. You need to make sure you do not put that when visiting the url URL or it won't work.

This is wrong: http://yoursite.com/index.php/PF.Base/tools/debug.php and this is correct  http://yoursite.com/PF.Base/tools/debug.php even if you are not using short urlsURLs.

Once there, you will see a screen like the following:

...

Once you are done using debug, go to the same url URL you went to in order to enable it and click to Toggle Debug Mode. It is not good to keep debug enabled on a live site.

Info
Keep the debug screen open in on one screen while visiting your site in a different tab. This makes it easier to disable debug after.

...

  1. Create a file named debug.sett.php.
  2. In that file, put the following code, 

    Code Block
    languagephp
    <?php
    define('PHPFOX_DEBUG', true);
  3. Upload it to your server to PF.Base/file/settings/
  4. Now, visit your site and see if there are errors showing. You don't need to visit that file at your site, just visit your normal site urlURL. Example: If you were trying to install and it wasn't working, now that the debug file is loaded, just go to http://yoursite.com (replace the url URL there with your own domain). Try to run the install again and see what errors show during that process.
  5. Once done troubleshooting, you can either delete the file or just go into the file and change the "true" to "false" and save it. 

...