• Resolved callumk

    (@callumk)


    I have followed this guide (https://docs.ultimatemember.com/article/1516-templates-map) to attempt to create a custom template for the ultimate-member account.php file within my own theme.

    In doing so, I have created the following directory ‘/wp-content/themes/mytheme/ultimate-member/templates/account.php’. I have also copied the exact contents of the original template from the plugin directory with an added heading tag to test if it was picking up the correct template.

    However, when I have added this and go to the front end of the website. I am met with a blank template, despite the content existing within the file. I have tested and this happens for all custom template overrides for this plugin ( I have also been using JobBboardWP, which this functionality works fine for ), for example, I intend to use it for account.php, but I get the same results attempting to override login.php.

    I have also been able to see that within the plugins settings, under the ‘Install Info’ tab, it recognises it as a UM custom template.

Viewing 8 replies - 16 through 23 (of 23 total)
  • @callumk

    Yes please post all of the output here in the forum, there are no site secrets in the report.

    Thread Starter callumk

    (@callumk)

    UM folder permissions 2.2.0
    WP Standard permissions:
    Folder permission not less than 0755 octal
    File permission not less than 0644 octal
    get_template	enigmabase
    get_stylesheet	enigmabase
    get_theme_root	ABSPATH/wp-content/themes
    get_stylesheet_directory	ABSPATH/wp-content/themes/enigmabase
    Themes
    enigmabase	Enigma Base Theme	1.0
    jobs-test	jobs-test	1.0	Parent: Enigma Base Theme
    twentytwentyone	Twenty Twenty-One	1.7
    twentytwentythree	Twenty Twenty-Three	1.0
    twentytwentytwo	Twenty Twenty-Two	1.3
    NOTICE: Try to create a child theme by using the
    Child Theme Configurator plugin.
    Child-theme active	no
    UM active	yes version 2.5.3
    UM update installed	2023-01-20 10:01:41
    Code Snippets plugin active	no
    Multi site	no
    WP Version	6.1.1
    PHP Version	7.4.30
    PHP built on OS	Linux
    PHP server API	fpm-fcgi
    Web Server	Apache/2.4.54 (Debian)
    WP Frontend Memory Limit	40M
    WP Backend Memory Limit	1280M
    PHP Memory Limit	1280M
    Memory Limit allows raising	yes
    ABSPATH character length	24
    Active theme’s functions.php
    Last update	2023-02-08 14:24:16
    File size	2Kb
    add_action	4
    add_filter	3
    remove_action	0
    remove_filter	0
    do_action	0
    apply_filters	0
    add_shortcode	0
    function	6
    Deprecated: UM 2.5.0 and removed since UM 2.7.0
    UM()->query()->get_users_by_status	0
    UM()->user()->get_pending_users_count	0
    UM()->user()->remove_cached_queue	0
    …/themes/enigmabase
    Folder
    Permission	0755
    Updated	2023-02-06 16:53:20
    UID	1000
    GID	1000
    Total of 7 files in this folder with these permissions
    0644	7
    …/themes/enigmabase/ultimate-member
    Folder
    Permission	0755
    Updated	2023-02-06 16:53:00
    UID	1000
    GID	1000
    No templates found
    …/themes/enigmabase/ultimate-member/email
    Folder not found
    …/plugins/ultimate-member/templates/email
    Folder
    Permission	0755
    Updated	2023-01-20 10:01:41
    UID	1000
    GID	1000
    13 Templates
    UM	notification_new_user.php	0644	2023-01-20 10:01:41
    UM	approved_email.php	0644	2023-01-20 10:01:41
    UM	changedpw_email.php	0644	2023-01-20 10:01:41
    UM	rejected_email.php	0644	2023-01-20 10:01:41
    UM	welcome_email.php	0644	2023-01-20 10:01:41
    UM	resetpw_email.php	0644	2023-01-20 10:01:41
    UM	changedaccount_email.php	0644	2023-01-20 10:01:41
    UM	notification_review.php	0644	2023-01-20 10:01:41
    UM	pending_email.php	0644	2023-01-20 10:01:41
    UM	notification_deletion.php	0644	2023-01-20 10:01:41
    UM	checkmail_email.php	0644	2023-01-20 10:01:41
    UM	deletion_email.php	0644	2023-01-20 10:01:41
    UM	inactive_email.php	0644	2023-01-20 10:01:41
    …/themes/enigmabase/ultimate-member/templates
    Folder
    Permission	0755
    Updated	2023-02-14 08:44:19
    UID	1000
    GID	1000
    1 Templates
    UM	account.php	0644	2023-02-14 09:18:40
    …/themes/enigmabase/ultimate-member/profile
    Folder not found
    …/uploads
    Folder
    Permission	0755
    Updated	2023-01-20 10:02:42
    UID	1000
    GID	1000
    No templates found
    …/uploads/ultimatemember
    Folder
    Permission	0755
    Updated	2023-01-20 10:40:16
    UID	1000
    GID	1000
    No templates found
    …/uploads/ultimatemember/temp
    Folder
    Permission	0755
    Updated	2023-01-20 10:39:44
    UID	1000
    GID	1000
    No templates found
    …/uploads/ultimatemember/1
    Folder not found

    @callumk

    Thanks for the output and it seems to be OK.

    Have you been in contact with your web hosting support about this issue?

    • This reply was modified 1 year, 9 months ago by missveronica.
    Thread Starter callumk

    (@callumk)

    @missveronicatv

    This is my local development site. Given that I have been able to replicate this on multiple sites with a variety of conditions (no other plugins installed, updating file permissions, etc), is it not possible that this error is plugin related rather than that of site setup?

    Plugin Support andrewshu

    (@andrewshu)

    Hello @callumk

    Sorry for the late answer. I can’t reproduce this issue. Try to ask your hosting support.

    Regards.

    Plugin Support andrewshu

    (@andrewshu)

    Hi @callumk

    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

    I know this is late to the party, but hopefully it helps someone else. I was having the same issue as Callum and eventually worked out it’s because my file structure has some symlinks. Specifically I am using a bitnami stack, and WP is installed in /opt/bitnami/wordpress but the wp-content directory points to /bitnami/wordpress.

    The issue is in load_template inside class-shortcodes.php. The if test at the end of this function will only load the template file if the directory structure exactly matches the expected normalised path – mine doesn’t because of the symlinks. I just commented out the if test here so that the file is always included, and got my custom template to load fine.

    Obviously this is not ideal since I will have to re-make the change whenever there’s an update. Am hoping the UM team see this and can implement a proper fix, but hopefully it helps others in the meantime.

    @jobatkin

    Thanks,
    excellent to get more info for this bug report.

    https://github.com/ultimatemember/ultimatemember/issues/1112

Viewing 8 replies - 16 through 23 (of 23 total)
  • The topic ‘Template Overrides not working’ is closed to new replies.