WordPress.org

Ready to get started?Download WordPress

Forums

Types - Custom Fields and Custom Post Types Management
open_basedir restriction in effect. File(/) is not within the allowed path(s): (2 posts)

  1. modeman
    Member
    Posted 1 year ago #

    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.

    http://wordpress.org/extend/plugins/types/

  2. brucepearson
    Member
    Plugin Author

    Posted 1 year ago #

    This should be fixed now in the latest 1.2 release of Types.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.