Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.