Jump to content

Index.php problem on my wordpress theme.


nitro338

Recommended Posts

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(); ?>

Link to comment
https://forums.phpfreaks.com/topic/164467-indexphp-problem-on-my-wordpress-theme/
Share on other sites

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.