Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Augusto Sim?o

    (@gustao)

    Just found that this error happens because this plugin requires php 5.3+ (it uses an anonymous function).

    I suggest to put this requirement in the plugin description.

    I just got the same error and modified the code to pass a non-anonymous function. Now it works. Replace the add_action() code with the following and it should fix the error:

    function add_snitch() {
    	if (current_user_can('manage_options'))
    	{
    		new AcfFieldSnitch();
    	}
    }
    
    add_action('init', 'add_snitch');
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Fatal error on plugin activation’ is closed to new replies.