Support » Plugin: Ultimate Member - User Profile & Membership Plugin » Overriding Templates Breaking after Plugin Updates

  • 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 1 replies (of 1 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.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.