Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Gravity Forms Error

I keep trying to setup a notification when a form is submitted but I'm not getting the emails. When I go back in to edit the notification, it is not there. It's like it is not saving that. Then I noticed this on the notifications page: function WP_List_Table::get_columns() must be over-ridden in a sub-class. Any idea what that means?

Note: It is saving the submissions in the entries area of the plugin.

like image 627
ansarob Avatar asked Aug 27 '15 19:08

ansarob


People also ask

How do I change the errors in gravity Forms?

Change text error message You can change the text of the Gravity Forms 2.5 and later error message by adding the following PHP text to your functions. php file in your WordPress theme directory.

Why isn't my gravity form showing up?

Why is 'display:none' being added and my form isn't showing up? This is because you have conditional logic being used on your form. Anytime conditional logic is present the entire form is set to display: none; and then JavaScript is used to only show the fields that should be shown.

Is gravity Forms no longer free?

Unlike the other entries on this list, there is no free version of Gravity Forms. Even though you pay $59 a year, Gravity Forms Basic comes packed with great features and Add-Ons for which you have to pay $99+ a year with some of the other options listed previously.

Are Gravity Forms secure?

Gravity Forms is only as secure as the server it's installed on so it makes sense to begin your security assessment and configuration by reviewing the configuration of the system, the Web server and WordPress.


3 Answers

There is a simple fix for this without upgrading Gravity Forms, but you'd have to edit a plugin file for Gravity Forms.

in notification.php, in the class

GFNotificationTable extends WP_List_Table { ...

Add this method:

    function get_columns() {
        $columns = array(
                'name' => 'Name',
                'subject' => 'Subject'
                );
        return $columns;
    }

The same solution can be applied to any plugin where you're seeing this problem. The columns array just needs to match the names set as $this->_column_headers.

like image 128
SunWuKong Avatar answered Oct 02 '22 16:10

SunWuKong


Adding to the previous answer, to fully fix the problem you'll need to also place that same function:

function get_columns() {
        $columns = array(
                'name' => 'Name',
                'subject' => 'Subject'
                );
        return $columns;
    }

In the GF form_settings.php file under the class GFConfirmationTable extends WP_List_Table.

The first fixes the Notifications error and this fixes the Confirmations error.

like image 30
Todd Avatar answered Oct 02 '22 15:10

Todd


I figured it out. Once I put the license key into the settings, I was able to download the update. Installed and the error went away.

like image 26
ansarob Avatar answered Oct 02 '22 16:10

ansarob