Adding new template cause error message in admin
-
Hey guys,
I consider myself reasonably savvy with wordpress, I use it all the time for my client’s sites, but I have run into a problem that I have never seen before and I am not sure what the cause for it is.
I am trying to add a new template file for my theme, called calculator.php, however, the minute it gets uploaded to the server, in the page creation page in the admin section, I am getting an error message on the right above the dropdown for choosing the template:
Warning: file(/blah/wp-content/themes/default/._calculator.php) [function.file]: failed to open stream: Permission denied in /blah/wp-admin/includes/theme.php on line 132 Warning: implode() [function.implode]: Invalid arguments passed in /blah/wp-admin/includes/theme.php on line 132 Warning: file(/blah/wp-content/themes/default/._calculator.php) [function.file]: failed to open stream: Permission denied in /blah/wp-admin/includes/theme.php on line 132 Warning: implode() [function.implode]: Invalid arguments passed in /blah/wp-admin/includes/theme.php on line 132
the top of the template file is right as far as I can tell:
<?php /** * @package WordPress * @subpackage Default_Theme */ /* Template Name: Calculator */ ?>
Now I’ve added template pages in the past, and never had this come up before, any ideas why I am getting this? Also, it doesn’t actually affect the functionality, I can still set the template to calculator and it works, but I can’t send this live with this error.
ftr this is the first time I’ve used 2.8, was there a change between 2.7 and 2.8 that affects this?
- The topic ‘Adding new template cause error message in admin’ is closed to new replies.