• Resolved Hsu ChihFan

    (@billxu)


    Conflict with the Fairy theme, after installing the Fairy theme, there is a continuous loading state when using the Member Directories function on the front-end page.

    After cross-checking the front-end and code, it is suspected that #154 in members.php did not execute properly, resulting in the lack of scripts for the template in the page.

    foreach ( $args['view_types'] as $type ) {
    	$basename = UM()->member_directory()->get_type_basename( $type );
    	UM()->get_template( 'members-' . $type . '.php', $basename, $args, true );
    }
    UM()->get_template( 'members-header.php', '', $args, true );
    UM()->get_template( 'members-pagination.php', '', $args, true );
Viewing 6 replies - 1 through 6 (of 6 total)
  • @billxu

    I tried with the default version of the “Fairy theme” without any issues in the UM Members Directory.

    You can try to enable PHP error logging, read this guide: “How to enable debug logging”

    https://docs.ultimatemember.com/article/1751-enable-debug-logging

    You will probably get a PHP log file with notices and errors in /wp-content/debug.log when you list the Members Directory at your site.

    Post the content of this file here in the Forum ( use CODE formatting ) and we can give you a PHP error explanation.

    • This reply was modified 1 year, 8 months ago by missveronica.
    Thread Starter Hsu ChihFan

    (@billxu)

    Thank you for your response. After discovering this issue on the production server, I installed UM and the Fairy theme on a separate testing environment and found the aforementioned problem, so I reported it.

    I will first try your suggestions and see if there are any related error messages.

    Thank you for your response. I will update with any information as it becomes available.

    This is the link to the theme where we found the conflict: https://www.candidthemes.com/themes/fairy/

    Here is the screenshot

    • This reply was modified 1 year, 8 months ago by Hsu ChihFan.
    • This reply was modified 1 year, 8 months ago by Hsu ChihFan.
    Thread Starter Hsu ChihFan

    (@billxu)

    Additionally, errors were found on Chrome, and it was observed from the HTML that some scripts were not loaded correctly.

    wp-util.min.js?ver=6.1.1:2 Uncaught Error: Template not found: #tmpl-um-member-grid-47553
        at wp-util.min.js?ver=6.1.1:2:371
        at um_build_template (um-members.min.js?ver=2.5.4:1:5797)
        at Object.success (um-members.min.js?ver=2.5.4:1:4919)
        at c (jquery.min.js?ver=3.6.1:2:28327)
        at Object.fireWith [as resolveWith] (jquery.min.js?ver=3.6.1:2:29072)
        at Object.<anonymous> (wp-util.min.js?ver=6.1.1:2:1230)
        at c (jquery.min.js?ver=3.6.1:2:28327)
        at Object.fireWith [as resolveWith] (jquery.min.js?ver=3.6.1:2:29072)
        at l (jquery.min.js?ver=3.6.1:2:80045)
        at XMLHttpRequest.<anonymous> (jquery.min.js?ver=3.6.1:2:82499)
    <script type="text/template" id="tmpl-um-member-grid-47553">
    <script type="text/template" id="tmpl-um-members-header">
    <script type="text/template" id="tmpl-um-members-pagination">
    Thread Starter Hsu ChihFan

    (@billxu)

    Unfortunately, after I enable the Debug mode, I didn’t find any error logs, but I’m pretty sure it’s related to the fairy theme.

    I can reproduce this conflict state on different WordPress hosts (like local and shared hosting….etc).

    Plugin Support andrewshu

    (@andrewshu)

    Hello @billxu

    I checked the basic version of this theme and find this code in wp-content/themes/fairy/candidthemes/assets/custom/js/theia-sticky-sidebar.js

    o.sidebar.find('script').remove(); // Remove <script> tags, otherwise they will be run again on the next line.
    

    This code removes the script tag and without this tag the member directory not working – this is a JS template for ajax load members.

    You need to ask about this code this theme support.

    Regards.

    Thread Starter Hsu ChihFan

    (@billxu)

    Thank you for your response, it has been very helpful for me. Based on the situation mentioned above, I have attempted to take the following actions:
    Appearance -> Customize -> fairy option -> Sidebar Options -> disable Sticky Sidebar Option

    Without deleting any code, the member directory can function properly.
    I will report this issue to the Fairy team. Thank you very much!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Member Directories conflict with the Fairy theme’ is closed to new replies.