nitro338 Posted July 2, 2009 Share Posted July 2, 2009 I recently uploaded a new theme to my account but here is the problem I have. Please help me fix this. Thanks in advance. Warning: include(layouts/) [function.include]: failed to open stream: Operation not permitted in /hosted/subs/ulmb.com/a/r/artnetwork/public_html/wp-content/themes/freshnews/index.php on line 13 Warning: include(layouts/) [function.include]: failed to open stream: Operation not permitted in /hosted/subs/ulmb.com/a/r/artnetwork/public_html/wp-content/themes/freshnews/index.php on line 13 Warning: include() [function.include]: Failed opening 'layouts/' for inclusion (include_path='.:/usr/local/share/pear') in /hosted/subs/ulmb.com/a/r/artnetwork/public_html/wp-content/themes/freshnews/index.php on line 13 HERE IS THE ACTUAL INDEX.PHP : <?php get_header(); ?> <div id="centercol" class="grid_10"> <?php if (get_option('premiumnews_show_blog') == false) { ?> <?php include(TEMPLATEPATH . '/includes/featured.php'); ?> <?php $layout = get_option('premiumnews_layout'); include('layouts/'.$layout); ?> <?php } else { include(TEMPLATEPATH . '/includes/stdblog.php'); } ?> </div><!--/centercol--> <?php get_sidebar(); ?> <?php get_footer(); ?> Quote Link to comment https://forums.phpfreaks.com/topic/164467-indexphp-problem-on-my-wordpress-theme/ Share on other sites More sharing options...
Bendude14 Posted July 7, 2009 Share Posted July 7, 2009 often servers don't allow absoulte paths for includes but wordpress offers other alternatives to include the file. take a look here for an alternative to TEMPLATEPATH http://codex.wordpress.org/Template_Tags/get_bloginfo Quote Link to comment https://forums.phpfreaks.com/topic/164467-indexphp-problem-on-my-wordpress-theme/#findComment-870290 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.