• Got a warning from my site of a critical error related to this plugin:

    An error of type E_PARSE was caused in line 47 of the file /home/xxxxx/j2medicalsupply.com/wp-content/plugins/code-snippets/php/admin-menus/class-edit-menu.php(221) : eval()’d code. Error message: syntax error, unexpected ‘}’, expecting end of file

    Had to turn off 3 snippets, that had been working fine, to try and correct the issue.

    This is the line it’s referring to:

    /* Add New Snippet menu */
    		$this->add_menu(
    			code_snippets()->get_menu_slug( 'add' ),
    			_x( 'Add New', 'menu label', 'code-snippets' ),
    			__( 'Add New Snippet', 'code-snippets' )
    		);
    	}

    Can you shed light on this?

    • This topic was modified 3 years, 7 months ago by darkmatter661.
Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    This error is originating from one of your snippets – the file and line displayed are a little misleading.

    The problem is that one of the snippets’ code is missing a } on the end. Unfortunately, I can’t tell the snippet’s name or ID from the error, but it’s one that’s around 47 lines long.

Viewing 1 replies (of 1 total)
  • The topic ‘E_PARSE error?’ is closed to new replies.