@123host
Re: “Can you please have a look in your version of /wpcontent/plugins/speakout/install.php and see if that is in there at all?”
I downloaded the latest version, and I did find an install.php file, although it was nested one subfolder further down than your question above (was in the “includes” folder).
When I look at it, my eyes are drawn to the “if” statement starting on line 139 (first line of the code snippet below). What I notice there are two things:
(1) the phrase “updating if 1.20.2” shows as an error_log entry, which is significant because that matches exactly what was shown directly above the error notices in the post I made quoting the WP debug log, and
(2) that one “if” statement is quite unlike the two below it (also shown in the code snippet) because it seems to be missing this: “$sql_update = ”
… which is present in the “if” statements following after, and also notable from the one in focus is the line that is remarked out, “//$wpdb->query( $sql_update );”
I tend to think the text wrapped in quotes at line 141 is what I would call an incomplete sentence. It looks like the last half of a php instruction, with the first part missing, making it only a fly in the ointment.
This leads me to wonder if that may be why an error was thrown.
Hope this helps!!! Thank you again for all you do!! We appreciate you!!
if ( version_compare( $installed_version, '1.20.0', '>' ) == 1 && version_compare( $installed_version, '1.20.2', '<' ) == 1 ) {
error_log( 'updating if 1.20.2' );
"ALTER TABLE $db_signatures DROP <code>address_required</code>, DROP <code>street_required</code>, DROP <code>city_required</code>, DROP <code>state_required</code>, DROP <code>postcode_required</code>, DROP <code>country_required</code>;";
//$wpdb->query( $sql_update );
}
if ( version_compare( $installed_version, '1.20.0', '<' ) == 1 ) {
error_log( 'updating if 1.20.0' );
$sql_update = "ALTER TABLE $db_petitions ADD <code>street_required</code> CHAR(1) NULL DEFAULT '0' AFTER <code>address_required</code>, ADD <code>city_required</code> CHAR(1) NULL DEFAULT '0' AFTER <code>street_required</code>, ADD <code>state_required</code> CHAR(1) NULL DEFAULT '0' AFTER <code>city_required</code>, ADD <code>postcode_required</code> CHAR(1) NULL DEFAULT '0' AFTER <code>state_required</code>, ADD <code>country_required</code> CHAR(1) NULL DEFAULT '0' AFTER <code>postcode_required</code>;";
$wpdb->query( $sql_update );
}
if ( version_compare( $installed_version, '1.19.2', '<' ) == 1 ) {
error_log( 'updating if 1.19.2' );
$sql_update = "ALTER TABLE $db_petitions CHANGE <code>redirect_url</code> <code>redirect_url</code> VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_general_ci NULL;";
$wpdb->query( $sql_update );
}