failed openings in new theme design
-
I am new to programming and have been tasked with developing a new theme for work. After doing some research and reading some books I put together a basic theme and uploaded it to my localhost for testing. I get several errors that immediately show up and I am unsure of how to correct them:
Warning: include(C:\wamp\www\wordpress\wp-content\themes\DNN_Theme\functions.php): failed to open stream: Permission denied in C:\wamp\www\wordpress\wp-settings.php on line 323
Warning: include(): Failed opening ‘C:\wamp\www\wordpress/wp-content/themes/DNN_Theme/functions.php’ for inclusion (include_path=’.;C:\php\pear’) in C:\wamp\www\wordpress\wp-settings.php on line 323
Warning: require_once(C:\wamp\www\wordpress\wp-content\themes\DNN_Theme\sidebar.php): failed to open stream: Permission denied in C:\wamp\www\wordpress\wp-includes\template.php on line 441
Fatal error: require_once(): Failed opening required ‘C:\wamp\www\wordpress/wp-content/themes/DNN_Theme/sidebar.php’ (include_path=’.;C:\php\pear’) in C:\wamp\www\wordpress\wp-includes\template.php on line 441
I have posted some of the code including the header, index, sidebar, and functions.php to pastebin here:
http://pastebin.com/7T8cRXuythanks,
Rob
-
Why are you using
include
andrequire_once
in your theme’s template files? That’s not the way in which most themes are put together. Nor does it comply with best practice WPORG theme recommendations. Have you reviewed Theme Development?The theme was built off the Blank-Template where I converted a static HTML page to a word press theme by inserting the HTML code with the needed loops and a featured content slider. I looked through my code and have not seen an ‘include’ or ‘require_once’ command unless WP is looking for something I did not put into the file.
Ha, found the problem. One of the files I uploaded to the localhost was encrypted, ie, green text, in one of the folders. Rewrote the code into clean php files and I am good to go.
- The topic ‘failed openings in new theme design’ is closed to new replies.