• Resolved Mike

    (@mduschak)


    Question to the plugin authors:
    Is there a better way to structure template files so that we do not continue to have our overriding templates break whenever a template file is updated in the plugin?

    We have had two instances where plugin updates have impacted our sites membership directory.

    In each case we have a custom theme overriding members-grid.php following the recommendation here:
    https://docs.ultimatemember.com/article/1516-templates-map

    Our most recent breakage was the result of the following line being added to members-grid.php:
    $unique_hash = substr( md5( $args['form_id'] ), 10, 5 );

    $unique_hash is used throughout the members-grid.php file update.

    This is a problem because $unique_hash is not in our overriding members-grid.php file.

    The result is that our directory no longer displays any members and we have an error:
    Cannot read property 'replace' of undefined

    I am nervous about continuing using Ultimate Members if this continues to happen after the plugin is updated.

    Any help or guidance is greatly appreciated.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Dhali

    (@dhali)

    I would also like to know what the Ultimate Member team recommends for the proper way to update template files after a big update i.e. old template -> new template

    a place to see the updated template files before the update is released or in general would be great as well.

    Plugin Contributor Champ Camba

    (@champsupertramp)

    Hi @mduschak @dhali

    Sorry for the late response.

    Please see this doc for overriding the UM templates: https://docs.ultimatemember.com/article/1516-templates-map

    Feel free to re-open this thread if there’s any question that may come up.

    Regards,

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Overriding Templates Breaking after Plugin Updates’ is closed to new replies.