I have tried recreating the API Key a few times. I have tried reinstalling the plugin.
If I go into the Brevo settings of the form I am wanting to use, it says I need to configure Brevo to get started.
### Gravity Forms ###
Version: 2.9.0 ?
Upload folder: /public_html/wp-content/uploads/gravity_forms/
Upload folder permissions: Writable ?
Output CSS: Yes
Default Theme: Orbital Theme
No-Conflict Mode: No
Currency: USD
Background updates: Yes
REST API v2: No
Orbital Style Filter: No
### Add-Ons ###
Add-on Brevo for Gravity Forms: by WP connect - 2.3.0 ?
### Database ###
Database Version: 2.9.0 ? Your database is up-to-date.
wpim_gf_form_view: ?
wpim_gf_form_meta: ?
wpim_gf_form: ?
wpim_gf_form_revisions: ?
wpim_gf_entry: ?
wpim_gf_entry_meta: ?
wpim_gf_entry_notes: ?
wpim_gf_draft_submissions: ?
wpim_gf_addon_feed: ?
### Translations ###
Site Locale: en_ZA
User (ID: 1) Locale: en_ZA
Gravity Forms:
### WordPress ###
Home URL:
Site URL:
REST API Base URL:
WordPress Version: 6.7 ?
WordPress Multisite: No
WordPress Memory Limit: 40M
WordPress Debug Mode: No
WordPress Debug Log: No
WordPress Script Debug Mode: No
WordPress Cron: Yes
WordPress Alternate Cron: No
Background tasks: Yes ?
### Active Theme ###
- 1.0.1 ?
Astra (Parent): by Brainstorm Force (https://wpastra.com/about/?utm_source=theme_preview&utm_medium=author_link&utm_campaign=astra_theme) - 4.8.6 ?
### Active Plugins ###
Age Gate: by Phil Baker - 3.5.2 ?
Anywhere Elementor: by WPVibes - 1.2.11 ?
DHL Express Commerce: by DHL Express - 3.0.2 ?
DSV Tools: by DSV Pty Ltd - 1.1.6 ?
Duplicate Page: by mndpsingh287 - 4.5.4 ?
Elementor: by Elementor.com - 3.25.9 ?
Elementor Pro: by Elementor.com - 3.25.4 ?
LiteSpeed Cache: by LiteSpeed Technologies - 6.5.2 ?
Variation Swatches for WooCommerce: by Emran Ahmed - 2.1.2 ?
WooCommerce: by Automattic - 9.4.2 ?
WooCommerce Payfast Gateway: by WooCommerce - 1.6.9 ?
WooGallery: by WooGallery Team, ShapedPlugin LLC - 2.1.5 ?
### Web Server ###
Software: LiteSpeed
Port: 443
Document Root: /private_html
### PHP ###
Version: 8.0.29 ?
Memory Limit: 1G
Maximum Execution Time: 300
Maximum File Upload Size: 512M
Maximum File Uploads: 20
Maximum Post Size: 512M
Maximum Input Variables: 10000
cURL Enabled: Yes (version 7.61.1)
OpenSSL: OpenSSL 1.1.1k FIPS 25 Mar 2021 (269488319)
Mcrypt Enabled: No
Mbstring Enabled: Yes
Loaded Extensions: Core, date, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dom, enchant, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, intl, json, mbstring, session, standard, pcntl, mysqlnd, PDO, pdo_mysql, pdo_sqlite, Phar, posix, pspell, readline, Reflection, mysqli, SimpleXML, snmp, soap, sockets, sodium, exif, tidy, tokenizer, xml, xmlreader, xmlwriter, xsl, zip, litespeed, gmp, imap, xmlrpc, redis, timezonedb, mailparse, i360, Zend OPcache
### Database Server ###
Database Management System: MariaDB
Version: 10.6.16 ?
Database Character Set: utf8mb4
Database Collation: utf8mb4_unicode_520_ci
### Date and Time ###
WordPress (Local) Timezone: Africa/Johannesburg
MySQL (UTC): 2024-11-21 13:02:06
MySQL (Local): 21 November 2024 at 3:02 pm
PHP (UTC): 2024-11-21 13:02:06
PHP (Local): 21 November 2024 at 3:02 pm
]]>
Hi,
I have found a issue in the forms settings for your plugins, the error :
Undefined property: stdClass::$type
I digged a little bit and found you don’t check if $attribute
has a type
property (in /includes/classes/gf-addon.php
). Seems that some Brevo attributes come without type
and throw this error.
To fix it, I just added :if (isset($attribute->type) && $attribute->type === 'boolean') {
At line 296 in /includes/classes/gf-addon.php
.
Hope this will be fix in a next released, have a nice day !
EDIT : fixed some typos
]]>Hello, I can’t save the settings on the form level due to the JS error, invalid generated var name.
]]>Hi, is it possible add to a list based on conditions? For instance, I have a form which is visible in English and Spanish language, based on the URL I want to add the contact to a specific list on Brevo
]]>Hi, what is the type of field to use on the consent field? I tried with checkbox and consent field and it didn’t work. Also, do I need to map any field for the consent answer of the user?
]]>Hi, after creating a feed using the paid version of the plugin, the form will not submit because the phone field is not in the international format. Won’t submit unless it has the ‘+’ in front. We’re US based so not useful. Please advise.
]]>Hi, I have encountered an issue with sendinblue boolean parameters type on your plugin.
The API awaits a boolean and you seem to send directly the value of the mapped field as a string.\
So, I added a primitive “sanitizer” to your code to cast parameters based on their type before sending them to the sendinblue api.
wpconnect-gf-sendinblue/includes/hooks.php
function create_sendinblue_contact_after_form_submission( $mapped_fields, $lists, $double_optin, $optin_template, $optin_redirect, $feed, $entry ) {
// Force array to be an array, see https://core.trac.www.ads-software.com/ticket/55133.
if ( ! is_array( $mapped_fields ) ) {
$mapped_fields = [ $mapped_fields ];
}
$api = wpconnect_gf_sib_get_api();
$email = Helpers\find_email_in_mapped_fields( $mapped_fields );
if ( is_null( $email ) ) {
$response = new \WP_Error( 'no_email_found', __( 'No e-mail address found in form values.', 'wpc-gf-sib' ) );
gform_update_meta( $entry['id'], sprintf( 'sib_contact_api_response:%1$d', $feed['id'] ), $response );
return;
}
//cast parameters
$parameters = array_combine( wp_list_pluck( $mapped_fields, 'key' ), wp_list_pluck( $mapped_fields, 'value' ) );
$attributes = $api->get_attributes();
$cast = [
"boolean" => function( $v ){ return ( $v === 'true' || $v === '1' ); }
];
foreach( $attributes as $attribute ){
if( ! isset( $attribute->name ) || ! isset( $attribute->type ) ){ continue; }
if( isset( $parameters[ $attribute->name ] ) && isset( $cast[ $attribute->name ] ) && is_callable( $cast[ $attribute->type ] ) ){
$parameters[ $attribute->name ] = $cast[ $attribute->name ]( $parameters[ $attribute->name ] );
}
}
if ( $double_optin ) {
$response = $api->create_contact_with_doubleoptin(
sanitize_email( $email ),
$parameters,
$lists,
$optin_template,
$optin_redirect
);
} else {
$response = $api->create_contact(
sanitize_email( $email ),
$parameters,
$lists
);
}
gform_update_meta( $entry['id'], sprintf( 'sib_contact_api_response:%1$d', $feed['id'] ), $response );
}
Do you think adding a sanitizer for the api based on sendinblue parameters type, do you suggest another solution ?
]]>Hi, I have installed the Gravity Forms to Sendinblue plugin from the WordPress repository to see and test its working in the free version.
The initial configuration is fine but when I go to map the fields for the plugin development is incomplete. It only shows a single mapping fields and using keys. I need to be able to map two fields, name and email, how can I do it?
I am waiting for your answer.
Best regards and thanks
]]>