---
title: "ReferenceError: gvGlobals is not defined"
date: 2026-04-23
author: "GravityKit"
link: "https://www.gravitykit.com/docs/gravityview/common-problems/reference-error-gvglobals-is-not-defined/"
---

If for some reason you're experiencing this Javascript error message on your Browser's console, that probably means your theme is not calling the `wp_footer()` function on its footer.php file.

 If that's the case, then you'll need to edit that file using the theme editor inside your WordPress website and add that function:

![WordPress Theme Editor showing code in footer.php, highlighting adding "" near the end](https://www.gravitykit.com/wp-content/uploads/2025/10/file-2LbU9pDzaQ.png)
If your theme already has the call to the wp\_footer() function and you are still seeing that error message on the Browser console, then you must add this line of code before it:
 `do_action('wp_print_footer_scripts');`

 That will force your theme to properly print the Javascript code needed for GravityView to work properly.

 Here's what it'll look like:

![Code editor showing a footer.php file with a highlighted code block for WordPress footer scripts](https://www.gravitykit.com/wp-content/uploads/2025/10/file-xyLYFMdig8.png)