Save of snippet gives fatal error
-
Hi,
I currently execute this code on a page, in order to start some php code in a sub folder:
[insert_php] $FileIncPath = get_stylesheet_directory(); //echo "$FileIncPath/nodearkiv/noder.php"; include("$FileIncPath/nodearkiv/noder.php"); [/insert_php]
When I try to create a snippet with the 3 above lines, I get:
Don’t Panic
The code snippet you are trying to save produced a fatal error on line 24:
Uncaught Error: Call to undefined function make_select() in /customers/1/1/2/detfynskekammerkor.dk/httpd.www/wp/wp-content/themes/spacious-child/nodearkiv/form.html:24 Stack trace: #0 /customers/1/1/2/detfynskekammerkor.dk/httpd.www/wp/wp-content/themes/spacious-child/nodearkiv/noder.php(52): include() #1 /customers/1/1/2/detfynskekammerkor.dk/httpd.www/wp/wp-content/plugins/insert-php/admin/metaboxes/base-options.php(227) : eval()’d code(3): include(‘/customers/1/1/…’) #2 /customers/1/1/2/detfynskekammerkor.dk/httpd.www/wp/wp-content/plugins/insert-php/admin/metaboxes/base-options.php(227): eval() #3 /customers/1/1/2/detfynskekammerkor.dk/httpd.www/wp/wp-content/plugins/insert-php/admin/metaboxes/base-options.php(267): WINP_BaseOptionsMetaBox->validateCode(‘$FileIncPath = …’) #4 /customers/1/1/2/detfynskekammerkor.dk/httpd.www/wp/wp-content/plugins/insert-php/libs/factory/forms/includes/control.class.php(221): WINP_BaseOptionsMetaBox->codeSnippetFilterValue(‘$FileIncPath = …’, ‘$FileIncPath = …’) #5
The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.
Please use the back button in your browser to return to the previous page and try to fix the code error. If you prefer, you can close this page and discard the changes you just made. No changes will be made to this site.I am not sure which line (24) is being referred to.
- The topic ‘Save of snippet gives fatal error’ is closed to new replies.