• achangeforbetter

    (@achangeforbetter)


    I am wanting to move from XYZ-Snippets across to Code Snippets. I have the plugin all installed however when I try to pick up the code I have in a working snippet in XYZ-Snippets and create it in Code Snippets, it throws this fatal error:

    The code snippet you are trying to save produced a fatal error on line 4:
    
    Uncaught Error: Call to a member function get_var() on null in /home/u392650790/domains/achangeforbetter.com/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(221) : eval()'d code:4 Stack trace: #0 /home/u392650790/domains/achangeforbetter.com/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(221): eval() #1 /home/u392650790/domains/achangeforbetter.com/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(271): Code_Snippets_Edit_Menu->test_code(Object(Code_Snippet)) #2 /home/u392650790/domains/achangeforbetter.com/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(130): Code_Snippets_Edit_Menu->save_posted_snippet() #3 /home/u392650790/domains/achangeforbetter.com/public_html/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(107): Code_Snippets_Edit_Menu->process_actions() #4 /home/u392650790/domains/achangeforbetter.com/public_html/wp-includes/class-wp-hook.php(307): Cod
    The previous version of the snippet is unchanged, and the rest of this site should be functioning normally as before.

    Trying to understand why XYZ-Snippets appears to support my use of get_var but Code Snippets does not..

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    I’m not very familiar with XYZ Snippets, so I can’t say for sure. Perhaps get_var() is a function that plugin provides? It doesn’t seem to be a function that WordPress provides in the global namespace.

Viewing 1 replies (of 1 total)
  • The topic ‘Issue moving Snippet’ is closed to new replies.