• Hi,
    I’m using Beaver Builder theme and when I fill in the form on my website, I receive this error message : Warning: Invalid argument supplied for foreach() in /homepages/24/d511629898/htdocs/nelta_nouveau/nelta/wp-content/plugins/benchmark-email-lite/lib/class.widget.php on line 336

    It is not working as it should. Any idea where this bug comes from?
    Thanks for your support

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author Sean Conklin

    (@seanconklin)

    Hello @ninonbane,

    The PHP Warning message indicates that an array (the processing of a series of data) is empty. That specific line of code relates to the sign up form fields, meaning that it detected no data coming through. At first I would suspect that there were no form fields (name, email address, etc) configured for the sign up form in the Widget configuration. However, since you say “when I fill in the form” it sounds as though you do have form fields showing up to fill out. That makes me suspect another plugin or the theme itself may be blocking the form fields.

    This is not a bug we have seen before, so I’m curious what the cause is. The best way to isolate it is to temporarily disable ALL plugins and switch to another theme to see if the problem reproduces. Your web host may offer a Staging environment where you can do that without disturbing traffic. Otherwise you could use a development site running locally, or another copy of your site running somewhere, or just do it live. Once the problem is not reproducing, enable your theme and plugins one at a time while re-testing each iteration to see which one is the trigger. Once I know what triggers is, I can attempt to reproduce the problem and see what might fix it.

    We can also get a temporary account to look at your site directly, but with all that can go wrong on an unfamiliar site that comes with risk and we claim no liability or warranty with doing that. Let’s try having you work through this a bit before we resort to that.

    Thanks for using our plugin, and for reporting the trouble to us so we can help you resolve it shortly.

    Thread Starter ninonbane

    (@ninonbane)

    Hi,
    I tried to deactivate all the plugin. Still the same bug.
    I changed theme and I still have the same error !!

    I’m thniking to change my Newsletter software to a easier one if this is not working quickly.
    Awaiting for your reply.
    Regards

    Plugin Author Sean Conklin

    (@seanconklin)

    Hi @ninonbane. The theme/plugin tracing does help us narrow things down.

    It sounds like you are in a hurry on this. To stick with Benchmark Email in a hurry, you may use a generated signup form for the interim. Simply log into Benchmark Email, click Contacts, click Signup Forms, create a form then click Get Code. Copy/paste that code into a regular Text widget within WordPress (dragged onto a sidebar of choice) and you have a working form until we can figure out what’s going on between the plugin and your environment.

    To trace the issue further, please provide the name of your hosting company, or website URL (I can figure out the host with that). I would like to see if I can reproduce the issue on their environment. Also, please provide any screenshots you are comfortable with showing the back end (wp-admin) Settings and other screens. I would like to verify that your API key is being accepted, and also see your widget configuration. Any further information you can provide could help us trace this problem further. Screenshots may be posted anywhere you like that provides a URL I can access to view them. I typically use a Dropbox share. You may also email them to info at beAutomated dot com.

    Thread Starter ninonbane

    (@ninonbane)

    Ok thanks.
    I just sent you an email withe details required. ??
    Regaerds

    Plugin Author Sean Conklin

    (@seanconklin)

    Thanks, I got into your site. I saw you are connected to Benchmark Email properly. I saw no sign up form widgets configured. These normally go onto a Sidebar (theme locations). You drag them in the Appearance>Widgets area. If you prefer to show the form on a Page or Post, you can drag the widget to the Inactive Sidebar (bottom) and grab the short code listed within it to place inside the Page or Post contents. The instance(s) of the widget(s) allow you to customize your form, and offer as many throughout your site as needed.

    I created an Inactive Sidebar widget set to subscribe to the Sample Contact List in your Benchmark Email account, then used its short code on a new Page https://nelta.eu/newsletter. It was a success! Your next step is to remove my sample Page and Widget and set-up one the way you wish. Styling can also be customized with CSS rules in your child theme, theme style settings area, JetPack, or in an external plugin such as Simple Custom CSS.

    Thread Starter ninonbane

    (@ninonbane)

    Hi,
    Thanks a lot for your help.

    What Css code would I use to change the color of the confirmation message and add a padding above the Send button please?

    Plugin Author Sean Conklin

    (@seanconklin)

    I like a plugin called “Simple Custom CSS”, but you can use JetPack or your Theme’s panel (if available).

    Here’s some CSS examples. You can demo these in action on https://dev-benchmark-email-lite.pantheonsite.io

    /* Pad all subscribe form inputs */
    .benchmarkemaillite-subscribe div {
    margin: 20px 0;
    }

    /* Pad just the subscribe form button */
    .benchmarkemaillite-subscribe input[type=submit] {
    margin-top: 30px;
    }

    /* Change subscribe form response message color */
    section.benchmarkemaillite_widget p {
    color: orange !important;
    }

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘error message when filling up the form’ is closed to new replies.