<p>Adding as an answer because it was confirmed via a support ticket that a plugin was at fault.</p>

<p>Twig's <a href="http://twig.sensiolabs.org/doc/functions/dump.html" rel="nofollow">dump</a> method is only available in Craft when <a href="http://buildwithcraft.com/docs/config-settings#devMode" rel="nofollow">devMode</a> is enabled. </p>

<p>Turn it off, reproduce the problem, then search your <code>craft/storage/runtime/logs</code> files for <code>[error]</code>.</p>

<p>The stack trace listed in that error log will show which plugin is causing the issue.</p>

<p>Chances are that plugin is calling Twig's <code>dump</code> somewhere in a template, assuming it will always be available, when that is not the case.</p>

CC BY-SA 3.0
2014-08-20T19:26:06.173Z
Out of curiosity, did you (or @AdamSnetman) notify the creator of the plugin? It would be great if they could solve that problem at the source, so it doesn't come up again.
Lindsey D
CC BY-SA 3.0
2014-08-20T20:27:55.837Z
@LindseyD Adam's on it!
Brad Bell
CC BY-SA 3.0
2014-08-20T20:29:05.977Z
Sweet, good lookin' out! Thanks Brad (and Adam)!
Lindsey D
CC BY-SA 3.0
2014-08-21T00:49:38.080Z
Reporting back that I contacted the plugin dev (SquareBit Maps is the plugin) and he had a fixed version of the plugin back to me in under an hour. He also said that he'll be pushing a general update out later tonight.
Adam Snetman
CC BY-SA 3.0
2014-08-21T01:22:21.857Z
That's service!
Brad Bell
CC BY-SA 3.0
2014-08-20T19:14:36.983Z
2014-08-20T19:14:36.983Z
Brad Bell
<p>I’m guessing you have some third party field type that is calling this nonexistent function. Try enabling <a href="http://buildwithcraft.com/docs/config-settings#devMode" rel="nofollow">Dev Mode</a> and then going to a page that gives you the error. The stack trace will reveal what file was calling the function.</p>

CC BY-SA 3.0
2014-08-20T16:46:51.293Z
Hi Brandon. I enabled Dev Mode and I could navigate to those pages without seeing the error and presumably the stack trace that would go with it. (Is there another place I'd see the stack trace?) I remembered I'd recently created a field with the handle "htmlDump" and on a guess, I changed the handle to "htmlBlob", turned off Dev Mode and that solved the problem. So it seems to be some sort of odd naming conflict between my original field handle and something Craft thinks is a function that doesn't throw an error when Dev Mode is on. Thanks for your help, which led me to the answer.
Adam Snetman
CC BY-SA 3.0
2014-08-20T17:14:47.380Z
Twig's dump (http://twig.sensiolabs.org/doc/functions/dump.html) is only available in Craft when devMode is enabled.  Turn it off, reproduce the problem, the search your craft/storage/runtime/logs files for [error]. The stack trace listed in that error log will show which plugin is causing the issue.
Brad Bell
CC BY-SA 3.0
2014-08-20T17:18:10.343Z
Ah, this is Twig’s dump() function that’s getting called. Which is only available when Dev Mode is enabled. So yeah, what Brad said.
Brandon Kelly
CC BY-SA 3.0
2014-08-20T19:05:53.383Z
Thanks for the info. I can't seem to reproduce the problem, so now I'm not sure what to do. I'm just going to keep moving forward and see if it comes up again. I've renamed that htmlDump field handle anyway in case this was the problem.
Adam Snetman
CC BY-SA 3.0
2014-08-20T16:09:45.627Z
2014-08-20T16:09:45.627Z
Brandon Kelly
<p>On my in-development version of a site I'm working on, I'm unable to access any of my custom fields without Craft displaying an error that reads:</p>

<blockquote>
  <p><strong>Internal Server Error</strong> Function "dump" does not exist</p>
</blockquote>

<p>I can navigate to Settings > Fields but when I attempt to click on any of my fields to check/adjust settings or when I try to create a new field, I get the error screen. I'm able to access all other parts of the CP, create entries, adjust settings, etc.</p>

<p>The odd thing is that I have a working instance of the site running in my local environment. As part of my troubleshooting process, I dumped the database on the staging site and imported my local version. I also replaced the "craft" folder on my staging site with the one from my local site. The problem still persists.</p>

<p>I recently updated to the latest build (2.1.2569) so I first thought something in the update might need fixing, but my local instance is updated as well and completely functional.</p>

<p>In case it helps, I'm hosting my staging site on Arcustech and have had no issues up to now.</p>

<p>Any ideas what might be going wrong?</p>

<control-panel><field><error-message>
Getting "Internal Server Error: Function 'dump' does not exist" when accessing/creating custom fields
# Getting "Internal Server Error: Function 'dump' does not exist" when accessing/creating custom fields

(Asked by: username_0 on 2014-08-20)

On my in-development version of a site I'm working on, I'm unable to access any of my custom fields without Craft displaying an error that reads:

> **Internal Server Error** Function "dump" does not exist

I can navigate to Settings > Fields but when I attempt to click on any of my fields to check/adjust settings or when I try to create a new field, I get the error screen. I'm able to access all other parts of the CP, create entries, adjust settings, etc.

The odd thing is that I have a working instance of the site running in my local environment. As part of my troubleshooting process, I dumped the database on the staging site and imported my local version. I also replaced the "craft" folder on my staging site with the one from my local site. The problem still persists.

I recently updated to the latest build (2.1.2569) so I first thought something in the update might need fixing, but my local instance is updated as well and completely functional.

In case it helps, I'm hosting my staging site on Arcustech and have had no issues up to now.

Any ideas what might be going wrong?

**Tags:** control-panel, field, error-message

---

## 2 answers

### Answer by username_1 on 2014-08-20. Score: 3 | Accepted answer

Adding as an answer because it was confirmed via a support ticket that a plugin was at fault.

Twig's [dump](http://twig.sensiolabs.org/doc/functions/dump.html) method is only available in Craft when [devMode](http://buildwithcraft.com/docs/config-settings#devMode) is enabled.

Turn it off, reproduce the problem, then search your `craft/storage/runtime/logs` files for `[error]`.

The stack trace listed in that error log will show which plugin is causing the issue.

Chances are that plugin is calling Twig's `dump` somewhere in a template, assuming it will always be available, when that is not the case.

> **Comments:**
> **username_2**: Out of curiosity, did you (or @AdamSnetman) notify the creator of the plugin? It would be great if they could solve that problem at the source, so it doesn't come up again.  
> **username_1**: @LindseyD Adam's on it!  
> **username_2**: Sweet, good lookin' out! Thanks Brad (and Adam)!  
> **username_0**: Reporting back that I contacted the plugin dev (SquareBit Maps is the plugin) and he had a fixed version of the plugin back to me in under an hour. He also said that he'll be pushing a general update out later tonight.  
> **username_1**: That's service!  

---

### Answer by username_3 on 2014-08-20. Score: 0

I’m guessing you have some third party field type that is calling this nonexistent function. Try enabling [Dev Mode](http://buildwithcraft.com/docs/config-settings#devMode) and then going to a page that gives you the error. The stack trace will reveal what file was calling the function.

> **Comments:**
> **username_0**: Hi Brandon. I enabled Dev Mode and I could navigate to those pages without seeing the error and presumably the stack trace that would go with it. (Is there another place I'd see the stack trace?) I remembered I'd recently created a field with the handle "htmlDump" and on a guess, I changed the handle to "htmlBlob", turned off Dev Mode and that solved the problem. So it seems to be some sort of odd naming conflict between my original field handle and something Craft thinks is a function that doesn't throw an error when Dev Mode is on. Thanks for your help, which led me to the answer.  
> **username_1**: Twig's dump (http://twig.sensiolabs.org/doc/functions/dump.html) is only available in Craft when devMode is enabled.  Turn it off, reproduce the problem, the search your craft/storage/runtime/logs files for [error]. The stack trace listed in that error log will show which plugin is causing the issue.  
> **username_3**: Ah, this is Twig’s dump() function that’s getting called. Which is only available when Dev Mode is enabled. So yeah, what Brad said.  
> **username_0**: Thanks for the info. I can't seem to reproduce the problem, so now I'm not sure what to do. I'm just going to keep moving forward and see if it comes up again. I've renamed that htmlDump field handle anyway in case this was the problem.  

---

