Gravity Forms – Edit Entries is BROKEN!
-
The latest update to the Gravity Forms – Edit Entries plugin contains an error that breaks both the front-end and backend wordpress site. This isa summary of what’s wrong
Found it. There are two separate problems, and the first one is what’s blocking activation.
The parse error:
<?instead of<?phpRight after the closing
</form>tag inbp_add_quick_edit_markup():php
</form> <? // RIP wp_die(); }short_open_tagis off by default on PHP 7 and 8, so PHP never reopens into code there. Everything after it —wp_die();, the closing brace of the function, and the closing brace of theif (class_exists('GFForms'))block — gets treated as literal HTML. PHP then hits end of file with two braces still open and throwsParse error: syntax error, unexpected end of file. That happens at include time, which is exactly when WordPress sandboxes the activation, so you get the generic “fatal error” notice.Fix:
php
</form> <?php // RIP wp_die(); }The runtime fatal:
fw_print()Even after that,
bpgf_edit_markup()will crash your admin on the next page load:php
function bpgf_edit_markup(){ $field = GFFormsModel::get_entry(176); $form = GFAPI::get_form(5); fw_print($form['fields']); }fw_print()isn’t a PHP or WordPress function — it’s from the Unyson theme framework. Unless Unyson is active, this isCall to undefined function fw_print(). And it’s hooked toadmin_footer, so it fires on every single admin page. The hardcoded176and5make it clear this is leftover debug scaffolding. Delete the function and itsadd_action('admin_footer', 'bpgf_edit_markup');line, or comment out thefw_printcall and swap it forerror_log( print_r( $form['fields'], true ) );.One more to watch
Both AJAX handlers start with
if (!DOING_AJAX). On PHP 8, referencing an undefined constant is a fatalError, not a notice like it was on PHP 7.DOING_AJAXis only defined when WordPress is actually handling an AJAX request, so useif ( ! wp_doing_ajax() )instead. Same for the unguarded$_POST['nonce']reads — those will throw warnings on a malformed request.Make the
<?phpfix first and try activating again. If it goes through, you’ve confirmed the diagnosis.
You must be logged in to reply to this topic.