• Resolved mr-niceguy-1

    (@mr-niceguy-1)


    Hey guys, I am customizing the default theme, but am getting an error when I create a new template. The code at the top of my new template is:

    <?php
    /**
     * @package WordPress
     * @subpackage Default_Theme
     */
    
    /*
    Template Name: Calculator
    */
    ?>

    However as soon as it gets uploaded, in the sidebar I get this right above the dropdown to select a template:

    Warning: file(/home/mepstein/public_html/reversemortgage/wp-content/themes/default/._calculator.php) [function.file]: failed to open stream: Permission denied in /home/mepstein/public_html/reversemortgage/wp-admin/includes/theme.php on line 132
    
    Warning: implode() [function.implode]: Invalid arguments passed in /home/mepstein/public_html/reversemortgage/wp-admin/includes/theme.php on line 132
    
    Warning: file(/home/mepstein/public_html/reversemortgage/wp-content/themes/default/._calculator.php) [function.file]: failed to open stream: Permission denied in /home/mepstein/public_html/reversemortgage/wp-admin/includes/theme.php on line 132
    
    Warning: implode() [function.implode]: Invalid arguments passed in /home/mepstein/public_html/reversemortgage/wp-admin/includes/theme.php on line 132

    The template doesn’t show up in the dropdown menu, is this a problem with my server or am I doing something wrong creating this template file?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Did you call your new template file ._calculator.php? If so, rename it to calculator.php.

    Thread Starter mr-niceguy-1

    (@mr-niceguy-1)

    no of course not, I also tried shortening the name of the file to calc.php, and I tried getting it to work in the classic theme with the same results, which leads me to believe that it is a problem with our testing server…

    What is odd, however, is that I have used this same server in the past and had no issues with adding new template files to my themes, the only variable I can think of that is different with this site is the database, I just need someone to tell me what it is exactly that is causing this so I can get it fixed

    Or it’s something in the code of the new template file itself?

    Thread Starter mr-niceguy-1

    (@mr-niceguy-1)

    file permissions were the problem, our testing server is wacky and likes to mess with me

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘can’t add new templates?’ is closed to new replies.