• Resolved hgmarlow1

    (@hgmarlow1)


    Hi,

    Since the last plugin update and wp core I have been getting the following critical plugin error for mailoptin when I try to access the integrations set-up page. (I have spoken to my server support and they past this on from the error log and suggested I speak to the plugin developers direct about the issue)

    5 PHP Fatal error: Uncaught Error: Unsupported operand types in /nas/content/live/fmaeght/wp-content/plugins/mailoptin/src/connections/SendinblueConnect/ConnectSettingsPage.php:72\nStack trace:\n#0 /nas/content/live/fmaeght/wp-includes/class-wp-hook.php(287): MailOptin\\SendinblueConnect\\ConnectSettingsPage->connection_settings(Array)\n#1 /nas/content/live/fmaeght/wp-includes/plugin.php(206): WP_Hook->apply_filters(Array, Array)\n#2 /nas/content/live/fmaeght/wp-content/plugins/mailoptin/src/core/src/Admin/SettingsPage/Connections.php(160): apply_filters(‘mailoptin_conne…’, Array)\n#3 /nas/content/live/fmaeght/wp-includes/class-wp-hook.php(287): MailOptin\\Core\\Admin\\SettingsPage\\Connections->settings_admin_page_callback(”)\n#4 /nas/content/live/fmaeght/wp-includes/class-wp-hook.
    php(311): WP_Hook->apply_filters(”, Array)\n#5 /nas/content/live/fmaeght/wp-includes/plugin.php(478): WP_Hook->do_action(Array)\n#6 /nas/content/live/fmaeght/wp-admin/admin.php(259): do_action(‘mailoptin_page_…’)\n#7 {main}\n thrown in /nas/content/live/fmaeght/wp-content/plugins/mailoptin/src/connections/SendinblueConnect/ConnectSettingsPage.php on line 72

    I have tested the plugin on a different server with a copy of the site and it is does not seem to have these issue. Any help with be much appreciated.

    Thanks,
    Harry

    The page I need help with: [log in to see the link]

Viewing 6 replies - 1 through 6 (of 6 total)
  • Hello,

    Can you let us know the version of php your wordpress site is running on. MailOptin supports php version 5.6 and above.

    If the version is in agreement, can you send then create an admin login and send it to [email protected]

    Thanks.

    I’m having the exact same issue! Just wondering, did you bother to test this at all? If not, it’s not very good support.

    The error code and the line of error is right there, and clearly it’s an issue with the code. Quite a bit of time has been wasted now and all that’s been done is asking for PHP version?

    You only need to test this on your local development site and you will see the error, probably no need for admin access to someone else’s site. I believe this is an error in the code.

    Hello, we sincerely apologize for this error you are getting.

    Can you make a little change to the plugin from the plugin editor in your dashboard?

    If you can, kindly follow these steps:

    1. Go to the plugin editor and select MailOptin.
    2. Under the plugin files section, Open this folder path: src/connections/SendinblueConnect/
    3. And click on Connect.php under the SendinblueConnect folder.
    4. Locate line 155, where you see this $double_optin_templates = [];
    5. From that line 155, replace the code from line 155 till 166 with this particular code:

    $double_optin_templates = [];
    
    if (isset($response['body']->templates) && ! empty($response['body']->templates)) {
    
       foreach ($response['body']->templates as $template) {
          $double_optin_templates[$template->id] = $template->name;
       }
    }
                
    return $double_optin_templates;

    6. Then click on the Update File Button below to effect changes. This would clear up the error.

    But if you can’t make the changes yourself, please send us a developer login to our support email ([email protected]) to assist. We would love to help.

    Let me know if this works.

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    Issue resolved in the latest update.

    Using mailoptin lite with Elementor and WP 5.6. There is an issue with the popup – when you close the popup, it goes to a black screen with a little gray X at the top right. You can’t close out of it and have to return to the site again. I have deactivated the popup for now as it’s an ecommerce site and can’t afford to have it down, but hoping it’s a quick fix.

    The site is Transferrails.com

    Plugin Author Collins Agbonghama

    (@collizo4sky)

    Please share a screenshot of the issue via https://mailoptin.io/support

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘Critical Error / Latest WordPress / Elementor Pro’ is closed to new replies.