open_basedir restriction in effect. File(/) is not within the allowed path(s):
-
Hello, im using types plugin and after ~2 weeks i get this error in my site.
Warning: file_exists() [‘function.file-exists’>function.file-exists]: open_basedir restriction in effect. File(/) is not within the allowed path(s): (/home/website/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/website/domains/domainname.com/public_html/wp-includes/functions.php on line 1335
The eror comes with this code line: <?php echo(types_render_field(“slaiderio-nuotrauka”, array(“alt”=>”Product image”))); ?>
Full loop:
<?php $loop = new WP_Query( array( ‘post_type’ => ‘slaider’, ‘posts_per_page’ => 1, ‘order’=> ‘ASC’) ); ?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
<div class=”item active”>
<?php echo(types_render_field(“slaiderio-nuotrauka”, array(“alt”=>”Product image”))); ?>
<div class=”container”>
<div class=”carousel-caption”>
<h1><?php the_title(); ?></h1>
<p><?php the_content(); ?></p>
“>Su?inoti daugiau
</div>
</div>
</div><?php endwhile; ?>
Maybe someone can help fix this error. I have this error in all of my websites where i use this custom image field, the eror appears in about two weeks after i upload the custom image.
I have tried in different web hosts.
- The topic ‘open_basedir restriction in effect. File(/) is not within the allowed path(s):’ is closed to new replies.