Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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.

    Forum: Hacks
    In reply to: Problem with $wpdb->get_var
    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.

    Forum: Fixing WordPress
    In reply to: File Upload
    Thread Starter phizz

    (@phizz)

    Ah… so sorry – worked it out. Just getting a bit giddy I think ??

Viewing 3 replies - 1 through 3 (of 3 total)