• Hi,

    I am testing the plugin for a client, but adding a new feed results in a fatal error:

    Fatal error: Uncaught Error: Class 'SI_Line_Items' not found in /path to/Local Sites/wptest/app/public/wp-content/plugins/sprout-invoices-gravity-forms/inc/SI_GF_Integration_Addon.php on line 140

    This is on WP 5.7.2, Gforms version 2.5.5.1, plugin version 1.3.5

    Hope this helps.

    Cheers, Tibor

    • This topic was modified 3 years, 8 months ago by Tibor Paulsch.
Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Support Elana Davis

    (@elanasparkle)

    Hello @tibor,

    ?Thank you for reaching out to support! I would be happy to assist. I have a few questions What field are you using for your line items option in Sprout Invoices? Also, what option do you have selected for the products field in the settings (task, service, or product)?

    Thanks
    Elana D.

    Thread Starter Tibor Paulsch

    (@tibor)

    Hi Elana,

    So far there are no options set, since the error occures as soon as I click on the “Add new feed” button. The error says it is missing the Class SI_Line_Items that is called in this function on line 138:

    public function feed_settings_fields() {
    
    		$li_types = SI_Line_Items::line_item_types();
    		$line_item_types = array();
    		foreach ( $li_types as $value => $label ) {
    			$line_item_types[] = array(
    				'label' => $label,
    				'name' => $label,
    				'value' => $value,
    			);
    		}

    Cheers, Tibor

    Plugin Support Elana Davis

    (@elanasparkle)

    Hello @tibor,

    That line indicates there is a null value somewhere. Are you able to confirm the form’s output to see if there is anything that is not set up to allow the line items to be propagated?

    Thanks
    Elana D.

    Thread Starter Tibor Paulsch

    (@tibor)

    Nothing wrong with the form output. It has a name, address and product/price field, all with default settings (label, name etc.).

    But the error tells me the Class ‘SI_Line_Items’ is missing. I have also done a search in the plugin’s files, but as far as I can see the class is indeed not defined anywhere.

    Thread Starter Tibor Paulsch

    (@tibor)

    Haha: if found the cause: it was not clear that I also had to install the Sprout Invoices plugin to make this work. Although I do feel a bit stupid, you might want to add this to the plugin installation instructions as being a requirement and (even better) provide an admin notice upon activating the GForms addon.

    Anyways: thanks for the support!

    Plugin Support Elana Davis

    (@elanasparkle)

    Hello @tibor

    No worries we are always here and if you don’t mind marking this as resolved for me I would be much appreciated.

    Thanks
    Elana D.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Fatal error when adding new feed’ is closed to new replies.