# FatalError - locate\_assignment()

**URL:** <https://community.gravityforms.com/t/fatalerror-locate-assignment/7219>\
**Category:** Get Help\
**Tags:** error-http-500, x-theme, locate\_assignment, conflict\
**Created:** [December 18, 2020, 4:54pm UTC](https://community.gravityforms.com/t/fatalerror-locate-assignment/7219 "2020-12-18T16:54:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![user5a299fa79f90c0.4](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@user5a299fa79f90c0.4](https://community.gravityforms.com/u/user5a299fa79f90c0.4)\
**Post date:** [December 18, 2020, 4:54pm UTC](https://community.gravityforms.com/t/fatalerror-locate-assignment/7219/1 "2020-12-18T16:54:18Z")

</div>

Hello!

I am getting the following error (including a stack trace that I left out) as of this morning…

Fatal error: Uncaught Error: Call to a member function locate\_assignment() on bool in /nas/content/live/mygcc/wp-content/themes/x/framework/functions/plugins/gravity-forms.php:61

It is completely breaking my web site to the point that all I get is a “critical error” message box when I try to load. I was able to hack gravity-forms.php and comment out these lines:

//check header and footer  
$header\_assignment = CS()-\>component(‘Header\_Assignments’)-\>locate\_assignment();  
$checker-\>process\_content( $shortcode, $header\_assignment, false );

```
  $footer_assignment = CS()->component('Footer_Assignments')->locate_assignment();
  $checker->process_content( $shortcode, $footer_assignment, false );

```

to get my site up and running and have our forms still work. We don’t have forms of any sort in a header of footer which is what I believe these are looking at. Any idea of where to start in figuring out the problem? We didn’t change anything in the last couple of days (or weeks for that matter) that I am aware of.

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [December 19, 2020, 8:42pm UTC](https://community.gravityforms.com/t/fatalerror-locate-assignment/7219/2 "2020-12-19T20:42:05Z")

</div>

HI Scott. Please check with the author of that theme. The error is coming from code in the theme includes, not from Gravity Forms. Thank you.

---

<div class="post-metadata">

**Author:** ![user5a299fa79f90c0.4](https://avatars.discourse-cdn.com/v4/letter/u/48db29/32.png) [@user5a299fa79f90c0.4](https://community.gravityforms.com/u/user5a299fa79f90c0.4)\
**Post date:** [December 20, 2020, 2:17pm UTC](https://community.gravityforms.com/t/fatalerror-locate-assignment/7219/3 "2020-12-20T14:17:03Z")

</div>

Thank you! Appreciate the pointer…

---

<div class="post-metadata">

**Author:** ![chrishajer](https://sea2.discourse-cdn.com/flex020/user_avatar/community.gravityforms.com/chrishajer/32/88_2.png) [@chrishajer](https://community.gravityforms.com/u/chrishajer)\
**Post date:** [December 21, 2020, 1:35pm UTC](https://community.gravityforms.com/t/fatalerror-locate-assignment/7219/4 "2020-12-21T13:35:52Z")

</div>


