Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Scott Paterson

    (@scottpaterson)

    Hi @phizz,

    This is most likely caused by a conflict with another plugin that you are using on your site. You can try disabling other plugins one at a time and see if you can find which one is causing the problem.

    Another cause would be if you are using an older PHP version. Please use PHP 5.4+.

    Thanks,
    Scott

    Thread Starter phizz

    (@phizz)

    Hi

    I managed to track down the problem:

    In the file ‘private_buttons_new.php, line 18 originally said:

    // Check for errors
    	$message = [];
    	if (empty($_POST['wpeppsub_button_name'])) {
    		$message[] = "Name Field Required";
    		$error = "1";
    	}
    	if (empty($_POST['wpeppsub_a3'])) {
    		$message[] = " Billing amount each cycle Field Required";
    		$error = "1";
    	}

    Changing it to $message = array();
    solved the issue. Thanks for getting back so quickly – much appreciated.

    Plugin Author Scott Paterson

    (@scottpaterson)

    @phizz – Glad you got it working! Yes, that array format is needed due to your site running an older version of PHP. I would recommend updating if you can, but I am glad it is working for you now.

    Thanks,
    Scott

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot create new button’ is closed to new replies.