Snippet Troubleshooting

Quick Tips

  1. Please watch this very helpful snippet installation video.
  2. Copy the “raw” version of the snippet via the Download Code button on the snippet article.
  3. As a general rule, do not include the opening “<?php” tag from the snippet. Most theme’s functions.php files already include this tag and including it again will generate an error.

Digging Deeper

I am getting a whitescreen after installing the snippet.

First, make sure you’ve watched the video above (#1), copied the “raw” version of the snippet (#2) and removed the opening “<?php” tag from the snippet (#3, assuming you’re theme’s functions.php already has an opening <?php tag).

If you’ve confirmed these three items that account for 99% of snippet installation issues, you’re ready to enable debugging.


If you’re confident you’ve installed the snippet correctly and you’re still getting a whitescreen, we’ll need to determine what error is causing the whitescreen. Let’s enable WP_DEBUG.

To enable WP_DEBUG, you will need to access your wp-config.php file, located in the root of your WordPress installation. You will need FTP access to your website to do this.

Once you have access the wp-config.php file, scroll down until you find a line that looks like this:

define( 'WP_DEBUG', false );

Change the “false” to “true”, like so:

define( 'WP_DEBUG', true );

Now that WP_DEBUG is enabled, refresh your form page and look for any error messages that might appear.

I am getting an error after installing the snippet.

Parse error: syntax error, unexpected ‘<‘ in /path/to/theme/functions.php on line XXX

You probably left the opening “<?php” tag when you copied the snippet and your theme’s functions.php file already has an opening “<?php” tag. Remove the opening “<?php” tag from the beginning of the snippet.

I don’t see my error listed.

If you do not see your error listed, please following the instructions for the “I’m not getting an error but the snippet just isn’t working” section.

I’m not getting an error but the snippet just isn’t working.

Make sure that you’re running the latest version of Gravity Perks. At a bare minimum, make sure you’re running the same version that is powering the demo (if the snippet as a demo). Each demo now details which version of Gravity Forms is running in the footer of the form.

I’ll need the following to better assist you:

  1. A URL where I can view the form.
  2. The contents of your functions.php file. You can copy and paste the contents of this file to a GitHub Gist or your favorite code sharing service.