• Resolved tuteplays

    (@tuteplays)


    Hi,

    last week I updated my whole WP site (WP, PHP, Elementor Pro, Ultimate Member, …) and now I am not able to edit the E-Mail templates any more. There is just an toggle to enable the mail.

    ErrorMessage if I enable WP_DEBUG: “Notice: Function WP_Scripts::add was called incorrectly. The script with the handle “um_select2_locale” was enqueued with dependencies that are not registered: select2. Please see Debugging in WordPress for more information. (This message was added in version 6.9.1.) in /usr/www/users/businebn/BusinessLeasingMarkt/wp-includes/functions.php on line 6131

    This is the link structure: wp-admin/admin.php?page=um_options&tab=email&email=approved_email

    My current tech stack:

    • WordPress 6.9.1
    • Ultimate Member 2.11.2
    • Ultimate Member – reCAPTCHA 2.3.8
    • Elementor 3.35.5
    • Elementor Pro 3.35.1
    • PHP 8.4.17

    Can anyone provide me some kind of support or has this to be fixed be the team?

    Many thanks and kind regards

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Yurii

    (@yuriinalivaiko)

    Hi @tuteplays,

    The “Subject” and “Email Content” settings may be hidden if there is a critical JavaScript error on the page. Please open the browser developer tools (press the “F12” key in the Chrome or Firefox browser) and go to the “Console” tab. Reload the page and reproduce an error. Are there errors in the console?

    The PHP Notice you mentioned indicates that there is a conflict related to the scripts loading. Seems that some third-party plugin removes the select2 script added by the Ultimate Member plugin.
    Do you use third-party plugins that load their own version of the select2 script? Try running a conflict test to find out which plugin is causing the conflict.

    Regards

    Plugin Support Yurii

    (@yuriinalivaiko)

    Hi @tuteplays

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help.

    Regards

    Thread Starter tuteplays

    (@tuteplays)

    Hi @yuriinalivaiko, thanks for your assistance.

    The conflict happens with the theme “MyListing” Version 2.15 https://themeforest.net/item/mylisting-directory-listing-wordpress-theme/20593226

    The related rows in the theme are:

    //File includes/assets.php

    /**
    * Select2 - first use wp_deregister_script to unset select2 loaded
    * by other plugins, then register it again to use the latest version.
    */
    wp_deregister_script( 'select2' );
    wp_register_script( 'mylisting-select2', c27()->template_uri( 'assets/vendor/select2/select2.js' ), ['jquery'], '4.0.13', true );
    wp_register_style( 'mylisting-select2', c27()->template_uri( 'assets/vendor/select2/select2.css' ), [], '4.0.13' );

    If I remove these rows, the e-mail-editor in UM works fine. But the site frontend is no longer loading. Is this a fix you should implement or should I contact the theme creator?

    Many thanks and kind regards
    Leon

    Plugin Support Yurii

    (@yuriinalivaiko)

    Hi @tuteplays

    Thank you for this information. The select2 library is required for the settings, form fields and filters. Please do not disable this library.

    Investigate a theme to find a hook that triggers this code. There might be a way to fix this via a hook, you shouldn’t modify the theme files directly. You need to replace this code with a less conflicting one using a code snippet.

    Check what happens if scripts select2 and mylisting-select2 are both loaded. They might not conflict if loaded with different loading strategies. Try to defer the mylisting-select2 script loading. See https://developer.ww.wp.xz.cn/reference/functions/wp_register_script/

    Try disabling script select2 only on those pages where script mylisting-select2 is used.

    Regards

    Plugin Support andrewshu

    (@andrewshu)

    Hi @tuteplays

    This thread has been inactive for a while so we’re going to go ahead and mark it Resolved.

    Please feel free to re-open this thread if any other questions come up and we’d be happy to help. 🙂

    Regards

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

You must be logged in to reply to this topic.