• Resolved studiochef

    (@studiochef)


    The plugin works only when I disable the plugin “WPML Multilingual CMS”, when this plugin is active (which is very important for the site), and go to the Payement Gateway and when I want to change the settings the next line appears:

    “there is a critical error on your website, check your mail for instructions.”

    In the mail I recieve this message:

    An error of type E_ERROR was caused on line number 15 of the file /root/website.nl/wp-content/plugins/events-manager-pro/add-ons/emails/custom-emails-admin-ml.php. Errormessage: Uncaught Error: Call to undefined method EM_ML::switch_to_lang() in /root/website.nl/wp-content/plugins/events-manager-pro/add-ons/emails/custom-emails-admin-ml.php:15
    Stack trace:
    #0 /root/website.nl/wp-includes/class-wp-hook.php(288): EM_Custom_Emails_Admin_ML::after_gatweay_custom_emails(Object(EM_Gateway_Mollie), Array, Array, Array, Array)
    #1 /root/website.nl/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
    #2 /root/website.nl/wp-includes/plugin.php(478): WP_Hook->do_action(Array)
    #3 /root/website.nl/wp-content/plugins/events-manager-pro/add-ons/emails/custom-emails-admin.php(328): do_action(‘after_gatweay_c…’, Object(EM_Gateway_Mollie), Array, Array, Array, Array)
    #4 /root/website.nl/wp-includes/class-wp-hook.php(288): EM_Custom_Emails_Admin::em_gateway_settings_footer(Object(EM_Gateway_Mollie))
    #5 /root/website.nl/wp-includes/class-wp-hook.php(312): WP_Hook->apply_filters(”, Array)
    #6 /roo

    • This topic was modified 4 years, 11 months ago by studiochef.
    • This topic was modified 4 years, 11 months ago by studiochef.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    I’m sorry, but as the error clearly states, this is not caused by this add-on. It refers to a missing (undefined) function in a EM Pro file.

    It points to a function in the EM_ML class, which is defined in the file /wp-content/plugins/events-manager/multilingual/em-ml.php (free version)

    Upon inspection, I found that it only occurs in combination with EM, EM Pro, WPML. EM wants to translate an email, calls a non-existent function and WordPress throws in an error.

    I checked it for you, and indeed there is no function ‘switch_to_lang()’ in that class.

    The EM dev team has made a lot of changes concerning WPML in their last update. It seems you found a bug and need to report that to the EM team, as they need to solve this. I can not add a function to their code ??

    Thread Starter studiochef

    (@studiochef)

    Thanks a lot for the response!

    I will report it!

    Greets Wilfred

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Uncaught Error with WPML plugin’ is closed to new replies.