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.
Thread Starter
phizz
(@phizz)
I solved this myself. The problem was in the value I was passing into the routine, which I had calculated using a do_shortcode() function. Examining the error logs for the MYSQL server, I realised that rather than passing the value it was passing the shortcode itself.
My bad.
Thread Starter
phizz
(@phizz)
Ah… so sorry – worked it out. Just getting a bit giddy I think 😉