• 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 15 replies - 1 through 15 (of 23 total)
  • @callumk

    I am met with a blank template

    Sounds like you have got a PHP error and PHP stopped displaying the template.
    Will the template be blank if you remove your “an added heading tag”?

    If still a blank template you may have a PHP error, 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 display your account template from the frontend.

    Post the content of this file here in the Forum and we can give you a PHP error explanation.

    Thread Starter callumk

    (@callumk)

    Removing the h2 that I had within the template override has not resolved the issue, the site appears just the same, with a blank template. I have debugging enabled and see no issues related to the plugin appearing within the logs upon a refresh of the account page which I am overriding

    @callumk

    You may have a conflict with your Theme or another Plugin.
    Read this guide about “How to do a plugin/theme conflict test?”

    https://docs.ultimatemember.com/article/96-how-to-do-a-plugin-theme-conflict-test

    Thread Starter callumk

    (@callumk)

    I have gone through this process, removing all but the following plugins.

    • Ultimate Member
    • Ultimate Member – JobBoardWP integration
    • JobBoardWP

    I have also disabled the theme which I was using, however this would then remove the overriden template file which I am attempting to use. So I temporarily added this template override to an otherwise untouched ‘Twenty Twenty-Three’ WordPress theme. When going to the account page which uses this template, the issue still persists.



    @callumk

    What are the folder permissions for the “ultimate-member” folder set to?

    Read this guide about “Email Templates”
    and look at the “Image – Directory permissions for the “ultimate-member” folder.”

    https://docs.ultimatemember.com/article/1335-email-templates

    Thread Starter callumk

    (@callumk)

    The permissions I have set up for the ‘ultimate-member folder within my theme are as follows

    drwxr-xr-x

    @callumk

    What permissions do you get on the account.php file?

    Thread Starter callumk

    (@callumk)

    The permissions for account.php are

    -rw-r--r--
    Plugin Support andrewshu

    (@andrewshu)

    Hello @callumk

    Did you try to create a simple file account.php in your theme folder? For example, try to remove (please create a backup) all code from this file in your theme and paste a simple text without PHP. For example:

    This is account page

    This way we will check if this file is readable.

    Regards.

    Thread Starter callumk

    (@callumk)

    @andrewshu

    I have attempted this previously and still have no joy, it would appear that the plugin does recognise the account.php within my theme as a template override, this can be seen from within the Ultimate Member install info tab within settings, it just appears that none of the file contents are being used?

    Thread Starter callumk

    (@callumk)

    I have now attempted this on 3 different sites, an in each case, adding a template to override the original within childtheme/ultimate-member/templates/ has resulted in nothing rendering to the screen where I would expect that template.

    @callumk

    Try to use this plugin if it will find your issue.

    https://github.com/MissVeronica/um-folder-permissions

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

    (@callumk)

    Below is the permissions for the for the folder and file I am having issues with

    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

    @callumk

    You should get more output from this plugin.

    Thread Starter callumk

    (@callumk)

    Yes I have the full output, is there any particular part you’re in need of seeing or shall I paste the full output?

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